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

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