Преглед изворни кода

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