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

feat (rgbcw_lightbulb): add LT-T21 lamp, expose all entities

- Since this is the most common lightbulb/lamp config, expose everything
- Add matching product Hifree LT-T21 table lamp

Issue #4573
Jason Rumney 6 дней назад
Родитель
Сommit
e837d26607
1 измененных файлов с 64 добавлено и 21 удалено
  1. 64 21
      custom_components/tuya_local/devices/rgbcw_lightbulb.yaml

+ 64 - 21
custom_components/tuya_local/devices/rgbcw_lightbulb.yaml

@@ -37,6 +37,9 @@ products:
   - id: e8dhekwuvrdogter
     manufacturer: Cree
     model: CMA21-100W-AL-9ACK
+  - id: tuvcbzejusazsyaq
+    manufacturer: Hifree
+    model: LT-T21 table lamp
 entities:
   - entity: light
     dps:
@@ -96,26 +99,6 @@ entities:
             range:
               min: 0
               max: 1000
-      - id: 27
-        name: music_data
-        type: hex
-        optional: true
-      - id: 28
-        name: control_data
-        type: hex
-        optional: true
-      - id: 30
-        name: rhythm_mode
-        type: base64
-        optional: true
-      - id: 31
-        name: sleep_mode
-        type: base64
-        optional: true
-      - id: 32
-        name: wakeup_mode
-        type: base64
-        optional: true
   - entity: time
     translation_key: timer
     category: config
@@ -126,7 +109,7 @@ entities:
         optional: true
         range:
           min: 0
-          max: 86400
+          max: 86399
   - entity: switch
     translation_key: do_not_disturb
     hidden: unavailable
@@ -191,3 +174,63 @@ entities:
               03e803e800000000464602011303e803e800000000"
             # color* R+G+B+Y+C+V, Breath, Mid speed
             value: Gorgeous
+  - entity: text
+    name: Music
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 27
+        type: hex
+        optional: true
+        name: value
+  - entity: text
+    name: Control
+    category: config
+    icon: "mdi:tools"
+    hidden: true
+    dps:
+      - id: 28
+        type: hex
+        optional: true
+        name: value
+  - entity: text
+    name: Debug
+    category: config
+    icon: "mdi:bug"
+    hidden: true
+    dps:
+      - id: 29
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Rhythm
+    category: config
+    icon: "mdi:metronome"
+    hidden: true
+    dps:
+      - id: 30
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Sleep
+    category: config
+    icon: "mdi:bed-clock"
+    hidden: true
+    dps:
+      - id: 31
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Wakeup
+    category: config
+    icon: "mdi:weather-sunset-up"
+    hidden: true
+    dps:
+      - id: 32
+        type: base64
+        optional: true
+        name: value