4
0
Эх сурвалжийг харах

feat (devices): add Zephir ZMW4000V wall heater

Issue #4063
Jason Rumney 3 сар өмнө
parent
commit
ea9ac5912f

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1147,3 +1147,4 @@ Further device support has been made with the assistance of users. Please consid
 - [jaredhobbs](https://github.com/jaredhobbs) for contributing support for TCL AirMax that was merged with Daizuki heatpump.
 - [o-mega](https://github.com/o-mega) for contributing support for EARU EAMPDW-TY-63 3-phase energy monitoring breaker, Funai Fuji ERW-150 Ultimate ventilation fan.
 - [soonbolee](https://github.com/soonbolee) for assisting with support for Miro Q-Tower humidifier.
+- [leoogermenia](https://github.com/leoogermenia) for assisting with support for Zephir ZMW4000V wall heater.

+ 1 - 0
DEVICES.md

@@ -77,6 +77,7 @@
 - Wärme Designer wall panel heater
 - WarmeHaus AFD-02-TJ thermostatic towel rail element
 - Wetair WCH-750 heater
+- Zephir ZMW4000V wall heater
 
 ### Air Conditioners / Heat pumps
 

+ 156 - 0
custom_components/tuya_local/devices/zephir_zmw4000vsmart_heater.yaml

@@ -0,0 +1,156 @@
+name: Heater
+products:
+  - id: j13qydx3msgu6vnq
+    manufacturer: Zephir
+    model: ZMW4000V
+entities:
+  - entity: climate
+    translation_only_key: heater
+    dps:
+      - id: 1
+        name: hvac_mode
+        type: boolean
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            value: heat
+            hidden: true
+            constraint: preset_mode
+            conditions:
+              - dps_val: "off"
+                value: fan_only
+              - dps_val: "1"
+                value: heat
+      - id: 2
+        name: temperature
+        type: integer
+        unit: C
+        range:
+          min: 10
+          max: 49
+      - id: 3
+        name: current_temperature
+        type: integer
+      - id: 5
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: "off"
+            value: none
+          - dps_val: "1"
+            value: eco
+          - dps_val: "2"
+            value: boost
+          - dps_val: "auto"
+            value: comfort
+      - id: 102
+        name: swing_mode
+        type: boolean
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            value: "on"
+  - entity: light
+    translation_key: display
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Open window detector
+    category: config
+    icon: "mdi:window-open"
+    class: switch
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 11
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: cancel
+          - dps_val: "1"
+            value: "1h"
+          - dps_val: "2"
+            value: "2h"
+          - dps_val: "3"
+            value: "3h"
+          - dps_val: "4"
+            value: "4h"
+          - dps_val: "5"
+            value: "5h"
+          - dps_val: "6"
+            value: "6h"
+          - dps_val: "7"
+            value: "7h"
+          - dps_val: "8"
+            value: "8h"
+          - dps_val: "9"
+            value: "9h"
+          - dps_val: "10"
+            value: "10h"
+          - dps_val: "11"
+            value: "11h"
+          - dps_val: "12"
+            value: "12h"
+          - dps_val: "13"
+            value: "13h"
+          - dps_val: "14"
+            value: "14h"
+          - dps_val: "15"
+            value: "15h"
+          - dps_val: "16"
+            value: "16h"
+          - dps_val: "17"
+            value: "17h"
+          - dps_val: "18"
+            value: "18h"
+          - dps_val: "19"
+            value: "19h"
+          - dps_val: "20"
+            value: "20h"
+          - dps_val: "21"
+            value: "21h"
+          - dps_val: "22"
+            value: "22h"
+          - dps_val: "23"
+            value: "23h"
+          - dps_val: "24"
+            value: "24h"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 12
+        type: integer
+        optional: true
+        name: sensor
+        unit: min
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 13
+        type: bitfield
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 13
+        type: bitfield
+        optional: true
+        name: fault_code