Ver Fonte

Move swing control to primary_entity

Marvin Beym há 1 ano atrás
pai
commit
f04d5bb7f8

+ 8 - 7
custom_components/tuya_local/devices/medion_life_p1002.yaml

@@ -43,6 +43,14 @@ primary_entity:
           value: low
         - dps_val: High
           value: high
+    - id: 15
+      type: boolean
+      name: swing_mode
+      mapping:
+        - dps_val: false
+          value: "off"
+        - dps_val: true
+          value: "on"
 secondary_entities:
   - entity: lock
     icon: "mdi:lock"
@@ -69,10 +77,3 @@ secondary_entities:
       - id: 101
         type: boolean
         name: switch
-  - entity: switch
-    icon: "mdi:arrow-oscillating"
-    name: Swing
-    dps:
-      - id: 15
-        type: boolean
-        name: switch