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

Add support for Moes dimmer switch

Issue #368
Jason Rumney 3 лет назад
Родитель
Сommit
7983a9b42b
3 измененных файлов с 34 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 32 0
      custom_components/tuya_local/devices/moes_dimmer.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -167,3 +167,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [larueli](https://github.com/larueli) for contributing improvements to unavailable device detection when using persistent connections.
 - [austinhodak](https://github.com/austinhodak) for contributing support for generic dimmable lights.
 - [x5500](https://github.com/x5500) for contributing support for Loonas curtains.
+- [mypixies](https://github.com/mypixies) for assisting with support for Moes dimmer switch.

+ 1 - 0
DEVICES.md

@@ -216,6 +216,7 @@ generic configurations known to work with multiple brands of device.
 - Atomi smart color string light
 - Deta/Arlec motion sensor lights (DET100HA/DET102HA/MAL315HA)
 - Dual-mode magic light string controller
+- Moes dimmer switch
 - Space Dog Music Lamp
 
 ### Covers

+ 32 - 0
custom_components/tuya_local/devices/moes_dimmer.yaml

@@ -0,0 +1,32 @@
+name: Moes dimmer
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      name: brightness
+      type: integer
+      range:
+        min: 10
+        max: 1000
+
+    - id: 13
+      name: work_mode
+      type: string
+secondary_entities:
+  - entity: number
+    name: Minimum brightness
+    category: config
+    icon: "mdi:brightness-percent"
+    dps:
+      - id: 
+        type: integer
+        name: value
+        unit: percent
+        range:
+          min: 10
+          max: 1000
+        mapping:
+          - scale: 10