Parcourir la source

Add support for Moes zigbee dual dimmer module

Issue #2039
Jason Rumney il y a 1 an
Parent
commit
26b2038271
3 fichiers modifiés avec 162 ajouts et 0 suppressions
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 160 0
      custom_components/tuya_local/devices/moes_dual_dimmer.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -615,3 +615,4 @@ Further device support has been made with the assistance of users. Please consid
 - [tk627](https://github.com/tk627) for assisting with Minoston 6-preset timer switch.
 - [MobilettoSoft](https://github.com/MobilettoSoft) for contributing support for Wada Power Q8 EV charger.
 - [josiasmontag](https://github.com/josiasmontag) for contributing support for RainPoint water timer.
+- [DefinitelyADev](https://github.com/DefinitelyADev) for contributing support for Moes zigbee dual dimmer module.

+ 1 - 0
DEVICES.md

@@ -797,6 +797,7 @@ entity types as sub devices.
 - LoraTap SC500ZB-V2 curtain controller
 - Loratap SS9600ZB 6 button remote control
 - Moes BRT-100-TRV radiator valve
+- Moes dual dimmer module
 - Moes RGBCW lightbulb
 - Moes ZHT-002 thermostat
 - MultiIR MIR-TE100-TY temperature and humidity sensor

+ 160 - 0
custom_components/tuya_local/devices/moes_dual_dimmer.yaml

@@ -0,0 +1,160 @@
+name: Dual dimmer
+products:
+  - id: bxoo2swd
+    name: Moes ZM-105B-M-MS
+primary_entity:
+  entity: light
+  name: Light 1
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      name: brightness
+      type: integer
+      range:
+        min: 10
+        max: 1000
+secondary_entities:
+  - entity: light
+    name: Light 2
+    dps:
+      - id: 7
+        type: boolean
+        name: switch
+      - id: 8
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+  - entity: number
+    name: Minimum brightness 1
+    category: config
+    icon: "mdi:lightbulb-on-30"
+    dps:
+      - id: 3
+        type: integer
+        name: value
+        optional: true
+        range:
+          min: 10
+          max: 1000
+  - entity: number
+    name: Maximum brightness 1
+    category: config
+    icon: "mdi:lightbulb-on-90"
+    dps:
+      - id: 5
+        type: integer
+        name: value
+        optional: true
+        range:
+          min: 10
+          max: 1000
+  - entity: number
+    name: Minimum brightness 2
+    category: config
+    icon: "mdi:lightbulb-on-30"
+    dps:
+      - id: 9
+        type: integer
+        name: value
+        optional: true
+        range:
+          min: 10
+          max: 1000
+  - entity: number
+    name: Maximum brightness 2
+    category: config
+    icon: "mdi:lightbulb-on-90"
+    dps:
+      - id: 11
+        type: integer
+        name: value
+        optional: true
+        range:
+          min: 10
+          max: 1000
+  - entity: select
+    name: Light type 1
+    category: config
+    dps:
+      - id: 4
+        type: string
+        name: option
+        icon: "mdi:lightbulb-alert"
+        mapping:
+          - dps_val: led
+            value: LED
+            icon: "mdi:lightbulbon-50"
+          - dps_val: incandescent
+            value: Incandescent
+            icon: "mdi:lightbulb-variant-outline"
+          - dps_val: halogen
+            value: Halogen
+            icon: "mdi:lightbulb-spot"
+  - entity: select
+    name: Light type 2
+    category: config
+    dps:
+      - id: 10
+        type: string
+        name: option
+        icon: "mdi:lightbulb-alert"
+        mapping:
+          - dps_val: led
+            value: LED
+            icon: "mdi:lightbulbon-50"
+          - dps_val: incandescent
+            value: Incandescent
+            icon: "mdi:lightbulb-variant-outline"
+          - dps_val: halogen
+            value: Halogen
+            icon: "mdi:lightbulb-spot"
+  - entity: number
+    translation_key: timer
+    name: Timer 1
+    category: config
+    dps:
+      - id: 6
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: number
+    translation_key: timer
+    name: Timer 2
+    category: config
+    dps:
+      - id: 12
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: select
+    name: Initial state
+    icon: "mdi:toggle-switch"
+    category: config
+    dps:
+      - id: 14
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: "off"
+            value: "Off"
+          - dps_val: "on"
+            value: "On"
+          - dps_val: memory
+            value: Last state