Forráskód Böngészése

RGBCW lightbulb: add a fixed list of scenes to choose from.

These are the default scenes from the Tuya app.  No guarantees that they
will work with every lightbulb.

Was used for debugging the previous change.
Jason Rumney 3 éve
szülő
commit
e704bf16b2

+ 34 - 0
custom_components/tuya_local/devices/rgbcw_lightbulb.yaml

@@ -97,3 +97,37 @@ secondary_entities:
         mapping:
           - scale: 60
             step: 60
+  - entity: select
+    name: Scene
+    icon: "mdi:palette"
+    category: config
+    dps:
+      - id: 25
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: "000c0d0000000000000000c80000"
+            # color: brown, static
+            value: Night
+          - dps_val: "010e0d0000840000000003e801f4"
+            # color: white, static
+            value: Read
+          - dps_val: "020e0d0000e80383000003e803e8"
+            # color: lt cyan, static
+            value: Working
+          - dps_val: "030e0d00001403e8000001f401f4"
+            # color: grey, static
+            value: Leisure
+          - dps_val: "04464602007803e803e800000000464602007803e8000a00000000"
+            # color: G+DkG, Breath, Mid speed
+            value: Soft
+          - dps_val: "05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000"
+            # color* R+G+B+Y+C+V, Flash, Mid speed
+            value: Colorful
+          - dps_val: "06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000"
+            # color* R+G+B, Flash, Mid speed
+            value: Dazzling
+          - dps_val: "07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000"
+            # color* R+G+B+Y+C+V, Breath, Mid speed
+            value: Gorgeous