Browse Source

Add support for Deta dimmer switches.

Issue #409
Jason Rumney 3 years ago
parent
commit
4537e19fdf
3 changed files with 50 additions and 1 deletions
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 48 0
      custom_components/tuya_local/devices/deta_dimmer_switch.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -179,7 +179,7 @@ Further device support has been made with the assistance of users.  Please consi
 - [romicaiarca](https://github.com/romicaiarca) for contributing Aleco D12 Home dehumidifier support.
 - [spitfire](https://github.com/spitfire) for assistance supporting Gosund P1 powerstrips and Czajnik Setti+ kettles.
 - [berdahl](https://github.com/bergdahl) for contributing support for Stadler Eva humidifiers.
-- [dezinc57](https://github.com/dezinc57) for assistance supporting Fanco ceiling fan and light.
+- [dezinc57](https://github.com/dezinc57) for assistance supporting Fanco ceiling fan and light and Deta dimmer switch.
 - [hasio144](https://github.com/hasio144) for assistance supporting WF96L water level controllers.
 - [boekerolli](https://github.com/boekerolli) for assistance supporting VisorTech smoke alarms.
 - [ruaandeysel](https://github.com/ruaandeysel) for assistance supporting Skyfan DC fans.

+ 1 - 0
DEVICES.md

@@ -226,6 +226,7 @@ generic configurations known to work with multiple brands of device.
 - Generic RGBCW/RGBWW lightbulb (confirmed with Lijun branded bulb, expected to match others also). Two versions - with and without scene/music modes and timer.
 - Atomi smart color string light
 - Deta/Arlec motion sensor lights (DET100HA/DET102HA/MAL315HA)
+- Deta 6910HA series2 dimmer switch
 - Dual-mode magic light string controller
 - HDMI sync light
 - Moes dimmer switch

+ 48 - 0
custom_components/tuya_local/devices/deta_dimmer_switch.yaml

@@ -0,0 +1,48 @@
+name: Dimmer switch
+product:
+  - id: zdbapiyvwyi4wtrr
+    name: Deta 6910HA series2
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      name: brightness
+      type: integer
+      range:
+        min: 10
+        max: 1000
+      mapping:
+        - scale: 3.92
+secondary_entities:
+  - entity: number
+    name: Minimum brightness
+    category: config
+    icon: "mdi:lightbulb-on-50"
+    dps:
+      - id: 3
+        type: integer
+        name: value
+        range:
+          min: 10
+          max: 1000
+        unit: "%"
+        mapping:
+          - scale: 10
+  - entity: number
+    name: Timer
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 6
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60