smart_watering_device.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. name: Smart watering device
  2. products:
  3. - id: abzzvtulukkwzynv
  4. name: Becasmart BAF-908
  5. primary_entity:
  6. entity: switch
  7. dps:
  8. - id: 1
  9. name: switch
  10. type: boolean
  11. - id: 48
  12. type: string
  13. optional: true
  14. name: schedule
  15. secondary_entities:
  16. - entity: select
  17. name: Mode
  18. icon: "mdi:auto-mode"
  19. dps:
  20. - id: 2
  21. type: string
  22. name: option
  23. mapping:
  24. - dps_val: auto
  25. value: Auto
  26. - dps_val: manual
  27. value: Manual
  28. - entity: number
  29. name: Timer
  30. icon: "mdi:timer"
  31. category: config
  32. dps:
  33. - id: 56
  34. type: integer
  35. name: value
  36. unit: min
  37. range:
  38. min: 0
  39. max: 360
  40. - entity: select
  41. name: Pump
  42. icon: "mdi:pump"
  43. category: config
  44. dps:
  45. - id: 28
  46. type: string
  47. name: option
  48. mapping:
  49. - dps_val: "PumpA"
  50. value: "Pump A"
  51. - dps_val: "PumpB"
  52. value: "Pump B"
  53. - dps_val: "PumpAB"
  54. value: "Both pumps"
  55. - entity: number
  56. name: Repeat interval
  57. icon: "mdi:repeat"
  58. category: config
  59. dps:
  60. - id: 101
  61. type: integer
  62. name: value
  63. unit: h
  64. range:
  65. min: 0
  66. max: 60
  67. - entity: sensor
  68. name: Runtime
  69. class: duration
  70. category: diagnostic
  71. dps:
  72. - id: 10
  73. type: integer
  74. name: value
  75. unit: min
  76. optional: true