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

Add support for Dim2Warm Gold CCT lightbulb with 1800-2700K range

Issue #1080
Jason Rumney 2 лет назад
Родитель
Сommit
0d4d45f28f
3 измененных файлов с 38 добавлено и 1 удалено
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 36 0
      custom_components/tuya_local/devices/gold_cct_lightbulb.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -358,7 +358,7 @@ Further device support has been made with the assistance of users.  Please consi
 - [felipejfc](https://github.com/felipejfc) for contributing support for Loginovo zigbee mmwave presence sensors.
 - [cebik](https://github.com/cebik) for contributing support for Loratap 6 button remote controls.
 - [alexanderfschley](https://github.com/alexanderfschley) for assisting with support for Liectroux XR500[T3] vacuums.
-- [iindigoo](https://github.com/iindigoo) for assisting with support for MRC Magnum floor heating.
+- [iindigoo](https://github.com/iindigoo) for assisting with support for MRC Magnum floor heating and Dim2Warm G95 Gold lightbubs.
 - [suyashrai](https://github.com/suyashrai) for contributing support for WF520D dual dimmers.
 - [sityware](https://github.com/sitiware) for contributing support for CT20W motion detectors.
 - [Eduardoct](https://github.com/Eduardoct) for assisting with support for MatSee Plus bidirectional 2-channel clamp meters.

+ 1 - 0
DEVICES.md

@@ -347,6 +347,7 @@ of device.
 - Atomi smart color string light
 - Deta/Arlec motion sensor lights (DET100HA/DET102HA/MAL315HA)
 - Deta 6910HA series2 dimmer switch
+- Dim2Warm G95 Gold 1800-2700K CCT lightbulb
 - Dual-mode magic light string controller
 - Feit dimmer (may work with other brands that just have a switch, dimmer and
   optional minimum brightness and bulb type)

+ 36 - 0
custom_components/tuya_local/devices/gold_cct_lightbulb.yaml

@@ -0,0 +1,36 @@
+name: Gold lightbulb
+products:
+  - id: baf9tt9lb8t5uc7z
+    name: Dim2Warm G95 golden globe
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      name: brightness
+      type: integer
+      range:
+        min: 25
+        max: 255
+    - id: 3
+      name: color_temp
+      type: integer
+      range:
+        min: 0
+        max: 255
+      mapping:
+        - target_range:
+            min: 1800
+            max: 2700
+secondary_entities:
+  - entity: switch
+    name: Remote switch
+    icon: "mdi:remote"
+    category: config
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+        optional: true