smart_watering_device.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. mapping:
  12. - dps_val: true
  13. icon: mdi:water-pump
  14. - dps_val: false
  15. icon: mdi:water-pump-off
  16. - id: 48
  17. type: string
  18. optional: true
  19. name: schedule
  20. secondary_entities:
  21. - entity: select
  22. name: Mode
  23. icon: "mdi:auto-mode"
  24. dps:
  25. - id: 2
  26. type: string
  27. name: option
  28. mapping:
  29. - dps_val: auto
  30. value: Auto
  31. - dps_val: manual
  32. value: Manual
  33. - entity: number
  34. translation_key: timer
  35. category: config
  36. dps:
  37. - id: 56
  38. type: integer
  39. name: value
  40. unit: s
  41. range:
  42. min: 0
  43. max: 360
  44. - entity: select
  45. name: Pump
  46. icon: "mdi:pump"
  47. category: config
  48. dps:
  49. - id: 28
  50. type: string
  51. name: option
  52. mapping:
  53. - dps_val: "PumpA"
  54. value: "Pump A"
  55. - dps_val: "PumpB"
  56. value: "Pump B"
  57. - dps_val: "PumpAB"
  58. value: "Both pumps"
  59. - entity: number
  60. name: Repeat interval
  61. icon: "mdi:repeat"
  62. category: config
  63. dps:
  64. - id: 101
  65. type: integer
  66. name: value
  67. unit: h
  68. range:
  69. min: 0
  70. max: 60
  71. - entity: sensor
  72. name: "Run time remaining"
  73. class: duration
  74. dps:
  75. - id: 102
  76. type: integer
  77. name: sensor
  78. unit: s
  79. - id: 10
  80. type: integer
  81. name: runtime
  82. unit: s
  83. optional: true