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

Add support for Kiturami NCTR-100 water and heating thermostat

Issue #2349
Jason Rumney 1 год назад
Родитель
Сommit
082e2cae27
3 измененных файлов с 158 добавлено и 1 удалено
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 156 0
      custom_components/tuya_local/devices/kiturami_nctr100_thermostat.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -700,4 +700,4 @@ Further device support has been made with the assistance of users. Please consid
 - [cabmoomoo](https://github.com/cabmoomoo) for contributing support for Enbrighten curtain lights.
 - [cabmoomoo](https://github.com/cabmoomoo) for contributing support for Enbrighten curtain lights.
 - [eldi0s](https://github.com/eldi0s) for contributing support for Kesser IR heater with flood lights.
 - [eldi0s](https://github.com/eldi0s) for contributing support for Kesser IR heater with flood lights.
 - [willieseabrook](https://github.com/willieseabrook) for contributing support for Kogan KASMGPH glass panel heater.
 - [willieseabrook](https://github.com/willieseabrook) for contributing support for Kogan KASMGPH glass panel heater.
-- [VladimirTuzovGitHub](https://github.com/VladimirTuzovGitHub) for assisting with support for STL siren.
+- [VladimirTuzovGitHub](https://github.com/VladimirTuzovGitHub) for assisting with support for STL siren and Kiturami thermostats.

+ 1 - 0
DEVICES.md

@@ -182,6 +182,7 @@
 - Inkbird ITC306A thermostat smartplug
 - Inkbird ITC306A thermostat smartplug
 - Inkbird ITC308 thermostat smartplug
 - Inkbird ITC308 thermostat smartplug
 - Jiahong ET-72W thermostat
 - Jiahong ET-72W thermostat
+- Kiturami NCTR-100 water and heating thermostat
 - KKMoon knob thermostat
 - KKMoon knob thermostat
 - Ledlux thermostat
 - Ledlux thermostat
 - ME80 touchscreen thermostat
 - ME80 touchscreen thermostat

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

@@ -0,0 +1,156 @@
+name: Thermostat
+products:
+  - id: 7vjtrn5888247ol8
+    name: Kiturami NCTR100WR
+primary_entity:
+  entity: climate
+  translation_key: thermostat
+  dps:
+    - id: 2
+      type: string
+      name: hvac_mode
+      mapping:
+        - dps_val: Reservation
+          value: auto
+        - dps_val: OnDol
+          value: heat
+          hidden: true
+        - dps_val: Interior
+          value: heat
+        - dps_val: Bath
+          value: "off"
+        - dps_val: Summer
+          value: "off"
+          hidden: true
+        - dps_val: OutGoing
+          value: "off"
+          hidden: true
+    - id: 5
+      type: integer
+      name: temperature
+      range:
+        min: 10
+        max: 45
+      unit: C
+      mapping:
+        - constraint: hvac_mode
+          conditions:
+            - dps_val: Reservation
+              value_redirect: schedule_temperature
+              range:
+                min: 45
+                max: 85
+            - dps_val: OnDol
+              value_redirect: water_temperature
+              range:
+                min: 35
+                max: 60
+    - id: 6
+      type: integer
+      name: current_temperature
+    - id: 3
+      type: integer
+      name: water_temperature
+      range:
+        min: 35
+        max: 60
+    - id: 5
+      type: integer
+      name: room_temperature
+    - id: 103
+      type: integer
+      name: schedule_temperature
+      range:
+        min: 45
+        max: 85
+secondary_entities:
+  - entity: water_heater
+    dps:
+      - id: 1
+        type: boolean
+        name: operation_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            mapping:
+              - constraint: mode
+                conditions:
+                  - dps_val: Interior
+                    value: Radiator
+                  - dps_val: Reservation
+                    value: Scheduled
+                  - dps_val: OutGoing
+                    value: Underfloor heating
+                  - dps_val: Bath
+                    value: Hot water
+                  - dps_val: Summer
+                    value: Quick start
+                  - dps_val: OnDol
+                    value: away
+      - id: 2
+        type: string
+        name: mode
+        hidden: true
+      - id: 3
+        type: integer
+        name: temperature
+        range:
+          min: 35
+          max: 60
+        unit: C
+        mapping:
+          - constraint: mode
+            conditions:
+              - dps_val: Scheduled
+                value_redirect: scheduled_temperature
+                range:
+                  min: 45
+                  max: 85
+      - id: 103
+        type: integer
+        name: schedule_temperature
+        range:
+          min: 45
+          max: 85
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 20
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 20
+        type: bitfield
+        name: fault_code
+      - id: 104
+        type: integer
+        name: current_error
+  - entity: number
+    name: Scheduled runtime
+    category: config
+    translation_key: timer
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 20
+          max: 90
+  - entity: number
+    name: Scheduled idle time
+    category: config
+    translation_key: timer
+    dps:
+      - id: 102
+        type: integer
+        name: value
+        unit: h
+        range:
+          min: 1
+          max: 19