Просмотр исходного кода

Add support for Smart Watering device

Becasmart BAF-908 Flower Waterer
https://www.becasmart.com/product/44.html
mmib 2 лет назад
Родитель
Сommit
3ec28a1bd3
1 измененных файлов с 44 добавлено и 0 удалено
  1. 44 0
      custom_components/tuya_local/devices/smart_watering_device.yaml

+ 44 - 0
custom_components/tuya_local/devices/smart_watering_device.yaml

@@ -0,0 +1,44 @@
+name: Smart watering device
+products:
+  - id: abzzvtulukkwzynv
+primary_entity:
+  entity: switch
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+      mapping:
+        - dps_val: true
+          icon: mdi:scent
+          value: ON
+        - dps_val: false
+          icon: mdi:scent-off
+          value: OFF
+secondary_entities:
+  - entity: number
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 56
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 360
+  - entity: select
+    name: Pump
+    icon: "mdi:pump"
+    category: config
+    dps:
+      - id: 28
+        type: string
+        name: option
+        mapping:
+          - dps_val: "PumpA"
+            value: "A"
+          - dps_val: "PumpB"
+            value: "B"
+          - dps_val: "PumpAB"
+            value: "AB"