Explorar el Código

Add support for Netmostat N-1 thermostats.

Issue #353
Jason Rumney hace 3 años
padre
commit
bc19128a4e

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -158,3 +158,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [s3anyboy](https://github.com/s3anyboy) for assistance supporting Dual power monitoring smartplug (Geex).
 - [FritsOV](https://github.com/FritsOV) for assistance supporting Hysen HY08ACF thermostats.
 - [Andreasjkoch](https://github.com/Andreasjkoch) for contributing support for Eeese Carl dehumidifiers.
+- [ppprpd](https://github.com/ppprpd) for contributing support for Netmostat N-1 thermostats.

+ 1 - 0
DEVICES.md

@@ -83,6 +83,7 @@
 - Moes BHT-002 thermostat (without external temp sensor)
 - Moes MS-103 temperature and humidity switch (partial functions, temperature only)
 - Nashone MTS-700-WB thermostat smartplug
+- Netmostat N-1 (RTAFN1) thermostat
 - Owon PCT513 thermostat
 - RYRA TYTE-D1 thermostat with energy monitoring
 - Saswell C16 thermostat _(rebadged as Warmme, Klima and others)_

+ 59 - 0
custom_components/tuya_local/devices/netmostat_n1_thermostat.yaml

@@ -0,0 +1,59 @@
+name: Netmostat N-1 thermostat
+primary_entity:
+  entity: climate
+  dps:
+    - id: 1
+      type: boolean
+      name: hvac_mode
+      mapping:
+        - dps_val: true
+          value: heat
+        - dps_val: false
+          value: "off"
+    - id: 2
+      type: integer
+      name: temperature
+      range:
+        min: 50
+        max: 350
+      mapping:
+        - step: 5
+          scale: 10
+    - id: 3
+      type: integer
+      name: current_temperature
+      mapping:
+        - scale: 10
+    - id: 4
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: smart
+          value: comfort
+        - dps_val: antifreezing
+          value: Anti-freeze
+secondary_entities:
+  - entity: lock
+    name: Child lock
+    icon: "mdi:hand-back-right-off"
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: "0h"
+            value: "off"
+          - dps_val: "1h"
+            value: "1 hour"
+          - dps_val: "2h"
+            value: "2 hours"