Ver Fonte

Add support for Polytherm Polyalpha thermostat

Ruy García há 9 meses atrás
pai
commit
73ea732512

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -933,3 +933,4 @@ Further device support has been made with the assistance of users. Please consid
 - [orzeu](https://github.com/orzeu) for assisting with support for Parkside PPWD 30 A1 workshop vacuum.
 - [RudikHotValliant](https://github.com/RudikHotValliant) for assisting with support for Aeno EK7S kettle.
 - [sidkipper1](https://github.com/sidkipper1) for assisting with support for V-WIFI-DL01-ES energy meter.
+- [ruygargar](https://github.com/ruygargar) for assisting with support for Polytherm Polyalpha thermostat.

+ 1 - 0
DEVICES.md

@@ -209,6 +209,7 @@
 - Nashone MTS-700-WB thermostat smartplug
 - Netmostat N-1 (RTAFN1) thermostat
 - Owon PCT513 thermostat
+- Polytherm Polyalpha thermostat
 - Plikc Neve X W/RFW and Neve Pro W thermostats
 - Psmart T436 thermostat
 - RYRA TYTE-D1 thermostat with energy monitoring

+ 91 - 0
custom_components/tuya_local/devices/polytherm_polyalpha_thermostat.yaml

@@ -0,0 +1,91 @@
+name: Thermostat
+products:
+  - id: k2vv9hr0yumh0vo8
+    manufacturer: Polytherm
+    model: Polyalpha Thermostat
+entities:
+  - entity: climate
+    name: thermostat
+    translation_key: thermostat
+    dps:
+      - id: 1
+        name: hvac_mode
+        type: boolean
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: cool_heat
+            conditions:
+              - dps_val: false
+                value: cool
+              - dps_val: true
+                value: heat
+      - id: 2
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: manual
+            value: manual
+          - dps_val: auto
+            value: program
+      - id: 16
+        type: integer
+        name: temperature
+        unit: C
+        range:
+          min: 50
+          max: 350
+        mapping:
+          - step: 5
+            scale: 10
+      - id: 24
+        type: integer
+        name: current_temperature
+        mapping:
+          - scale: 10
+
+      - id: 36
+        name: hvac_action
+        type: string
+        mapping:
+          - dps_val: open
+            constraint: cool_heat
+            conditions:
+              - dps_val: false
+                value: cooling
+              - dps_val: true
+                value: heating
+          - dps_val: close
+            value: idle
+
+      - id: 104
+        type: boolean
+        name: cool_heat
+        mapping:
+          - dps_val: false
+            value: cool
+          - dps_val: true
+            value: heat
+  - entity: lock
+    name: child_lock
+    translation_key: child_lock
+    icon: "mdi:account-lock"
+    category: config
+    dps:
+      - id: 40
+        type: boolean
+        name: lock
+  - entity: light
+    name: backlight
+    translation_key: backlight
+    icon: "mdi:television-ambient-light"
+    category: config
+    dps:
+      - id: 105
+        name: brightness
+        type: integer
+        optional: true
+        range:
+          min: 0
+          max: 255