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

Add support for Malmbergs single dimmer module

Issue #1588
Jason Rumney 1 год назад
Родитель
Сommit
c577bf5eb9

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -668,3 +668,4 @@ Further device support has been made with the assistance of users. Please consid
 - [ekalle-swe](https://github.com/ekalle-swe) for assisting with support for Loeffen LFIM6000 ice cube maker.
 - [Athemis](https://github.com/Athemis) for contributing support for Aktobis WDH-310EK dehumidifier.
 - [carmelo42](https://github.com/carmelo42) for contributing support for Fujicool Yuzu heat pump.
+- [dkvk](https://github.com/dkvk) for contributing support for Malmbergs 1-way dimmer module.

+ 1 - 0
DEVICES.md

@@ -551,6 +551,7 @@ of device.
 - Loginovo TV sync backlight
 - LSC smart connect RGB CCT lightbulb (similar to older generic bulbs, so may work for others)
 - Lytmi Fantasy/Neo 3 HDMI sync backlight
+- Malmbergs QS-WIFI-D02-TRIAC 1-way dimmer module
 - Marpou RGBCW ceiling light
 - Mirabella Genio Pixel LED oval light
 - Moes dimmer switch

+ 28 - 0
custom_components/tuya_local/devices/malmbergs_single_dimmer.yaml

@@ -0,0 +1,28 @@
+name: Dimmer
+products:
+  - id: yrli99lsgtmebarq
+    name: Malmbergs QS-WIFI-D02-TRIAC
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 3
+      name: brightness
+      type: integer
+      range:
+        min: 25
+        max: 255
+secondary_entities:
+  - entity: number
+    name: Minimum brightness
+    category: config
+    icon: "mdi:lightbulb-on-40"
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        range:
+          min: 25
+          max: 255