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

Add two types of CCT lightbulb.

- Laser SMT-WWDL53-L - matches cct_v1_lightbulb
- Connect CSH-GU53WW5W - offset by one from above (similar to old style RGBCW lights without the color dps)

Issue #1745
Jason Rumney 1 год назад
Родитель
Сommit
2d581e1417

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -718,7 +718,7 @@ Further device support has been made with the assistance of users. Please consid
 - [fotis3d](https://github.com/fotis3d) for assisting with support for Digoo HamB alarm.
 - [Igooris](https://github.com/Igooris) for contributing support for PZIOT E01 energy meter.
 - [shadowkora](https://github.com/shadowkora) for assisting with support for Moes Smart control panel mini IR/Bluetooth hub.
-- [megarch2021](https://github.com/megarch2021) for contributing support for Orion SWS07HA indoor siren.
+- [megarch2021](https://github.com/megarch2021) for contributing support for Orion SWS07HA indoor siren, CCT "modeless" lightbulbs (like v1 but reserve dp 2 for mode even though it is unused).
 - [markussiegert](https://github.com/markussiegery) for assisting with support for smoke detector.
 - [giacomitti](https://github.com/giacomitti) for contributing support for an unknown brand of energy meter.
 - [coutaq](https://github.com/coutaq) for contributing support for Point POPANW600 panel heater.

+ 26 - 0
custom_components/tuya_local/devices/cct_modeless_lightbulb.yaml

@@ -0,0 +1,26 @@
+name: CCT light
+products:
+  - id: ewrj9uit2axunpyn
+    name: Connect CSH-GU53WW5W
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 3
+      name: brightness
+      type: integer
+      range:
+        min: 25
+        max: 255
+    - id: 4
+      name: color_temp
+      type: integer
+      range:
+        min: 0
+        max: 255
+      mapping:
+        - target_range:
+            min: 2700
+            max: 6500

+ 2 - 0
custom_components/tuya_local/devices/cct_v1_lightbulb.yaml

@@ -8,6 +8,8 @@ products:
     name: Geeni GN-BW223-999
   - id: gbi4ljmlyrxx23mz
     name: Geeni GN-BW230-999
+  - id: xhkuywg6rwwqocl6
+    name: Laser SMT-WWDL53-L
 primary_entity:
   entity: light
   dps: