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

Becasmart watering device: changes from review

- Add product name from original PR description.
- Add additional dps based on @illuzn modifications
Jason Rumney 2 лет назад
Родитель
Сommit
f927bfad31
1 измененных файлов с 42 добавлено и 3 удалено
  1. 42 3
      custom_components/tuya_local/devices/smart_watering_device.yaml

+ 42 - 3
custom_components/tuya_local/devices/smart_watering_device.yaml

@@ -1,13 +1,30 @@
 name: Smart watering device
 products:
   - id: abzzvtulukkwzynv
+    name: Becasmart BAF-908 
 primary_entity:
   entity: switch
   dps:
     - id: 1
       name: switch
       type: boolean
+    - id: 48
+      type: string
+      optional: true
+      name: schedule
 secondary_entities:
+  - entity: select
+    name: Mode
+    icon: "mdi:auto-mode"
+    dps:
+      - id: 2
+        type: string
+        name: option
+        mapping:
+          - dps_val: auto
+            value: Auto
+          - dps_val: manual
+            value: Manual
   - entity: number
     name: Timer
     icon: "mdi:timer"
@@ -30,8 +47,30 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: "PumpA"
-            value: "A"
+            value: "Pump A"
           - dps_val: "PumpB"
-            value: "B"
+            value: "Pump B"
           - dps_val: "PumpAB"
-            value: "AB"
+            value: "Both pumps"
+  - entity: number
+    name: Repeat interval
+    icon: "mdi:repeat"
+    category: config
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        unit: h
+        range:
+          min: 0
+          max: 60
+  - entity: sensor
+    name: Runtime
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 10
+        type: integer
+        name: value
+        unit: min
+        optional: true