Просмотр исходного кода

Update lsc_smart_ceiling_light.yaml

Changed initial_state to select and inverted options
a-r-j-a-n 1 год назад
Родитель
Сommit
1b1e0aacbb
1 измененных файлов с 8 добавлено и 4 удалено
  1. 8 4
      custom_components/tuya_local/devices/lsc_smart_ceiling_light.yaml

+ 8 - 4
custom_components/tuya_local/devices/lsc_smart_ceiling_light.yaml

@@ -64,14 +64,18 @@ secondary_entities:
         mapping:
           - mask: "00000000FFFF"
 
-  - entity: switch
-    name: Light off after power restore
-    icon: "mdi:power-sleep"
+  - entity: select
+    translation_key: initial_state
     category: config
     dps:
       - id: 34
         type: boolean
-        name: switch
+        name: option
+        mapping:
+          - dps_val: true
+            value: "off"
+          - dps_val: false
+            value: "on"
 
   - entity: select
     name: Scene