Jelajahi Sumber

feat (rgbled_garland): add Moes and Lampoteka versions

- add text entities for accessing the music and paint data advanced features

Issue #4028, #4030
Jason Rumney 2 bulan lalu
induk
melakukan
b3d61ee153
1 mengubah file dengan 25 tambahan dan 8 penghapusan
  1. 25 8
      custom_components/tuya_local/devices/rgbled_garland.yaml

+ 25 - 8
custom_components/tuya_local/devices/rgbled_garland.yaml

@@ -1,6 +1,11 @@
 name: Fairy lights
 name: Fairy lights
 products:
 products:
   - id: dpfvez4c2ui18yef
   - id: dpfvez4c2ui18yef
+  - id: kkeofybrzdqrg53p
+    manufacturer: Lampoteka
+  - id: myyutxuyqg6jz0mp
+    manufacturer: Moes
+    model: Smart Eaves
 entities:
 entities:
   - entity: light
   - entity: light
     icon: "mdi:led-strip"
     icon: "mdi:led-strip"
@@ -40,14 +45,6 @@ entities:
             range:
             range:
               min: 0
               min: 0
               max: 1000
               max: 1000
-      - id: 52
-        type: string
-        optional: true
-        name: dreamlightmic_music_data
-      - id: 61
-        type: string
-        optional: true
-        name: paint_color_data
   - entity: time
   - entity: time
     translation_key: timer
     translation_key: timer
     category: config
     category: config
@@ -120,3 +117,23 @@ entities:
             value: BRG
             value: BRG
           - dps_val: BGR
           - dps_val: BGR
             value: BGR
             value: BGR
+  - entity: text
+    name: Music
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 52
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Painting control
+    category: config
+    icon: "mdi:palette"
+    hidden: true
+    dps:
+      - id: 61
+        type: base64
+        optional: true
+        name: value