Przeglądaj źródła

feat (tongou_toqsyswt_breaker): expose dp 109 as a button

Assume that the function is the same as Tongou SA1 (which some TO-Q-SYS
devices match with), to enable real-time updates for a period.

Issue #3480
Jason Rumney 2 miesięcy temu
rodzic
commit
aacb63afbd

+ 11 - 0
custom_components/tuya_local/devices/tongou_toqsyswt_breaker.yaml

@@ -217,6 +217,17 @@ entities:
             value: true
           - dps_val: offline
             value: false
+  - entity: button
+    name: Live updates
+    category: config
+    icon: "mdi:wifi"
+    dps:
+      - id: 109
+        type: boolean
+        name: string
+        mapping:
+          - dps_val: online
+            value: true
   - entity: sensor
     translation_key: status
     class: enum