Selaa lähdekoodia

loratap is now cover

Paszkal Bojti 3 vuotta sitten
vanhempi
commit
048037999b
1 muutettua tiedostoa jossa 8 lisäystä ja 26 poistoa
  1. 8 26
      custom_components/tuya_local/devices/loratap_curtain_switch.yaml

+ 8 - 26
custom_components/tuya_local/devices/loratap_curtain_switch.yaml

@@ -3,34 +3,16 @@ product:
   - id: tuh2eatk4hsq336s
     name: SC500W-V1
 primary_entity:
-  entity: button
-  name: Open
-  icon: "mdi:curtains"
+  entity: cover
+  class: blind
   dps:
     - id: 1
+      name: control
       type: string
-      name: button
       mapping:
         - dps_val: "1"
-          value: true
-secondary_entities:
-  - entity: button
-    name: Close
-    icon: "mdi:curtains-closed"
-    dps:
-      - id: 1
-        type: string
-        name: button
-        mapping:
-          - dps_val: "2"
-            value: true
-  - entity: button
-    name: Stop
-    icon: "mdi:stop-circle-outline"
-    dps:
-      - id: 1
-        type: string
-        name: button
-        mapping:
-          - dps_val: "3"
-            value: true
+          value: open
+        - dps_val: "2"
+          value: close
+        - dps_val: "3"
+          value: stop