浏览代码

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 4 月之前
父节点
当前提交
aacb63afbd
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      custom_components/tuya_local/devices/tongou_toqsyswt_breaker.yaml

+ 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