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

Moes star projector: move "color" switch to "background" light.

"Background" light's switch is actually a master for the whole device, to
switch the background you need the "Color" switch.

The UI would be better with these reversed so the Master switch is separated
out, and the "Background" light switch only affects itself.

Issue #821
Jason Rumney 2 лет назад
Родитель
Сommit
2eb5b64c16
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      custom_components/tuya_local/devices/moes_star_projector.yaml

+ 4 - 4
custom_components/tuya_local/devices/moes_star_projector.yaml

@@ -7,7 +7,7 @@ primary_entity:
   name: Background
   icon: "mdi:projector"
   dps:
-    - id: 20
+    - id: 103
       type: boolean
       name: switch
     - id: 21
@@ -17,7 +17,7 @@ primary_entity:
         - dps_val: white
           value: white
         - dps_val: colour
-          value: rgbw
+          value: hs
         - dps_val: scene
           value: Scene
     - id: 24
@@ -71,10 +71,10 @@ secondary_entities:
           min: 10
           max: 1000
   - entity: switch
-    name: Color
+    name: Master
     category: config
     dps:
-      - id: 103
+      - id: 20
         type: boolean
         name: switch
   - entity: number