瀏覽代碼

added dp 101 as a button (as tuya uses it)

Victor Maznev 2 年之前
父節點
當前提交
98f580c94a
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      custom_components/tuya_local/devices/moes_touch_curtain_switch.yaml

+ 10 - 0
custom_components/tuya_local/devices/moes_touch_curtain_switch.yaml

@@ -36,3 +36,13 @@ secondary_entities:
         range:
           min: 10
           max: 120
+  - entity: button
+    name: Stop button
+    category: config
+    icon: "mdi:stop"
+    optional: true
+    dps:
+      - id: 101
+        type: boolean
+        name: button
+        persist: false