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

feat(rgb_led_strip): add extra controls from rgbcw_lightbulb

- transfer Neuro-sama laval lamp here, as it only has RGB, no white LEDs.

Issue #6205
Jason Rumney 1 день назад
Родитель
Сommit
edd845f6ba
1 измененных файлов с 107 добавлено и 0 удалено
  1. 107 0
      custom_components/tuya_local/devices/rgb_led_strip.yaml

+ 107 - 0
custom_components/tuya_local/devices/rgb_led_strip.yaml

@@ -18,6 +18,9 @@ products:
     manufacturer: Serene
     model: ColorPlus
     name: Aquarium light
+  - id: iiwnhv4jk3u3tfcv
+    manufacturer: Neuro-sama
+    model: Lava lamp
 entities:
   - entity: light
     dps:
@@ -195,3 +198,107 @@ entities:
           - dps_val: "0866660200d7033402440000000066660200c603e801f400000000\
               666602011702b2023a00000000"
             value: "Aquarium deepwater"
+  - entity: switch
+    translation_key: do_not_disturb
+    hidden: unavailable
+    category: config
+    dps:
+      - id: 34
+        type: boolean
+        optional: true
+        name: switch
+        mapping:
+          - dps_val: null
+            value_redirect: remote_sw
+      - id: 34
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: true
+            constraint: remote_sw
+            conditions:
+              - dps_val: null
+                value: false
+          - value: true
+      # Remote switch has same function but reversed logic
+      - id: 41
+        type: boolean
+        optional: true
+        name: remote_sw
+        mapping:
+          - dps_val: false
+            value: true
+          - dps_val: true
+            value: false
+  - 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
+  - entity: text
+    name: Power memory
+    category: config
+    icon: "mdi:power-standby"
+    hidden: true
+    dps:
+      - id: 33
+        type: base64
+        optional: true
+        name: value