فهرست منبع

RGBW lightbulb v2: add more common attributes

Add Feit garage light product.
Split out scene into a select entity with some basic choices,
and text entity for full control.

PR #2949
Jason Rumney 1 سال پیش
والد
کامیت
34cc79b99e
2فایلهای تغییر یافته به همراه62 افزوده شده و 5 حذف شده
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 61 4
      custom_components/tuya_local/devices/rgbw_lightbulbv2.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -820,7 +820,7 @@ Further device support has been made with the assistance of users. Please consid
 - [DLV111](https://github.com/DLV111) for contributing product details for Arlec downlight matching RGBCW lightbulb.
 - [mikita-liaukovich-epam](https://github.com/mikita-liaukovich-epam) for contributing support for Clofte Duo 400 humidifier.
 - [tal6203](https://github.com/tal6203) for assisting with support for Delixing aroma diffuser.
-- [rclarkmorrow](https://github.com/rclarkmorrow) for contributing support for Powersav AHR-083 powerstrip (which was merged to generic quad powerstrip with timer) and Gosund WP9 powerstrip with USB, child lock and initial state.
+- [rclarkmorrow](https://github.com/rclarkmorrow) for contributing support for Powersav AHR-083 powerstrip (which was merged to generic quad powerstrip with timer), Gosund WP9 powerstrip with USB, child lock and initial state, and Feit garage light (merged with RGBW lightbulb V2).
 - [ralsinn](https://github.com/ralsinn) for contributing support for Absina Wallbox EV charger.
 - [ShawnBuckley](https://github.com/ShawnBuckley) for contributing support for OGACFO humidifier and improvements to TYTE-D1 thermostat switch.
 - [gurtjun](https://github.com/gurtjun) for contributing support for Sunred Triangle patio heater.

+ 61 - 4
custom_components/tuya_local/devices/rgbw_lightbulbv2.yaml

@@ -1,6 +1,10 @@
 name: RGBW lightbulb
 products:
   - id: dik6z7of4nailf94
+  - id: jpbst6n8suqi3rcw
+    manufacturer: Feit
+    model: "3 panel RGBW garage light"
+    model_id: ADJ4000
 entities:
   - entity: light
     dps:
@@ -44,10 +48,6 @@ entities:
             range:
               min: 0
               max: 1000
-      - id: 25
-        name: scene
-        type: string
-        optional: true
       - id: 27
         name: music
         type: string
@@ -56,6 +56,63 @@ entities:
         name: control_data
         type: string
         optional: true
+      - id: 30
+        name: rhythm_mode
+        type: string
+        optional: true
+      - id: 31
+        name: sleep_mode
+        type: string
+        optional: true
+      - id: 32
+        name: wakeup_mode
+        type: string
+        optional: true
+      - id: 33
+        name: power_memory
+        type: string
+        optional: true
+      - id: 210
+        name: random_timing
+        type: string
+        optional: true
+  - entity: text
+    translation_key: scene
+    category: config
+    hidden: true
+    dps:
+      - id: 25
+        name: value
+        type: hex
+        optional: true
+  - entity: select
+    translation_key: scene
+    category: config
+    dps:
+      - id: 25
+        name: option
+        type: string
+        optional: true
+        mapping:
+          - dps_val: null
+            value: none
+            hidden: true
+          - dps_val: "03323201000003e803e800000000323201007803e803e800000000"
+            value: Victory Day
+          - dps_val: "013232020084000003e800000000323202000003e803e800000000\
+                      323202012c03e803e800000000323202015e00fa03e800000000"
+            value: Easter
+          - dps_val: "02323202001903e803e800000000323202012c03e803e800000000"
+            value: Halloween
+          - dps_val: "03323201000003e803e800000000323201007803e803e800000000"
+            value: Christmas
+          - dps_val: "043232010084000003e800000000323201000003e803e800000000\
+                      323201001903e803e800000000323201007803e803e80000000032\
+                      320100b403e803e80000000032320100f003e803e8000000003232\
+                      01012c03e803e800000000323201015e00fa03e800000000"
+            value: party
+          - dps_val: "053232020078000003e800000000323202007803e8000a03e80000"
+            value: relax
   - entity: number
     translation_key: timer
     class: duration