4
0
Эх сурвалжийг харах

RGB Garland: expose scene data as text entity.

Issue #3009
Jason Rumney 1 жил өмнө
parent
commit
d8f4915804

+ 9 - 4
custom_components/tuya_local/devices/rgbled_garland.yaml

@@ -40,10 +40,6 @@ entities:
             range:
             range:
               min: 0
               min: 0
               max: 1000
               max: 1000
-      - id: 51
-        type: string
-        optional: true
-        name: dreamlight_scene_mode
       - id: 52
       - id: 52
         type: string
         type: string
         optional: true
         optional: true
@@ -68,6 +64,15 @@ entities:
         mapping:
         mapping:
           - scale: 60
           - scale: 60
             step: 60
             step: 60
+  - entity: text
+    translation_key: scene
+    hidden: true
+    category: config
+    dps:
+      - id: 51
+        type: string
+        optional: true
+        name: value
   - entity: number
   - entity: number
     name: LED count
     name: LED count
     category: config
     category: config