Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
2eb5b64c16

+ 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