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

feat (devices): add support for Avonflow AFD14-H thermostat

Issue #4420
Jason Rumney 1 өдөр өмнө
parent
commit
3775e28dd7

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1288,3 +1288,4 @@ Further device support has been made with the assistance of users. Please consid
 - [lweikit](https://github.com/lweikit) for contributing support for Yu Home Yu Turbo laundry drying rack.
 - [lweikit](https://github.com/lweikit) for contributing support for Yu Home Yu Turbo laundry drying rack.
 - [AlbertoMarziali](https://github.com/AlbertoMarziali) for contributing support for Nivian NVS-A6WG alarm panel.
 - [AlbertoMarziali](https://github.com/AlbertoMarziali) for contributing support for Nivian NVS-A6WG alarm panel.
 - [TheAdamGalloway](https://github.com/TheAdamGalloway) for contributing support for Curv alarm panel that was merged to the Nivian above.
 - [TheAdamGalloway](https://github.com/TheAdamGalloway) for contributing support for Curv alarm panel that was merged to the Nivian above.
+- [LeeRuMax](https://github.com/LeeRuMax) for assisting with support for Avonflow AFD14-H thermostat.

+ 1 - 0
DEVICES.md

@@ -226,6 +226,7 @@ devices # Supported
 - Atorch AT4PTW DIN rail thermostat
 - Atorch AT4PTW DIN rail thermostat
 - Atorch S1TW thermostat smart switch
 - Atorch S1TW thermostat smart switch
 - Avatto ME81, WS20R and WT100 thermostats
 - Avatto ME81, WS20R and WT100 thermostats
+- Avonflow AFD14-H radiator thermostat
 - Awow/Mi-heat TH213 thermostat (two variants)
 - Awow/Mi-heat TH213 thermostat (two variants)
 - Beca BAC-002, BAC-006, BAC-2005ALW, BHT-002/3000, BHP-6000 thermostats
 - Beca BAC-002, BAC-006, BAC-2005ALW, BHT-002/3000, BHP-6000 thermostats
 - Beca BHT-12 thermostat smartplug
 - Beca BHT-12 thermostat smartplug

+ 98 - 0
custom_components/tuya_local/devices/avonflow_afd14h_radiator.yaml

@@ -0,0 +1,98 @@
+name: Radiator controller
+# products:
+#   - id: UNKNOWN
+#     manufacturer: Avonflow
+#     model: AFD14-H
+entities:
+  - entity: climate
+    translation_key: thermostat
+    dps:
+      - id: 1
+        type: boolean
+        name: hvac_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            value: heat
+      - id: 2
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: hot
+            value: boost
+          - dps_val: eco
+            value: eco
+          - dps_val: timer
+            value: Timer
+          - dps_val: program
+            value: program
+      - id: 16
+        type: integer
+        name: temperature
+        unit: C
+        range:
+          min: 7
+          max: 35
+      - id: 24
+        type: integer
+        name: current_temperature
+        mapping:
+          - scale: 10
+  - entity: number
+    translation_key: temperature_calibration
+    class: temperature_delta
+    category: config
+    dps:
+      - id: 27
+        type: integer
+        name: value
+        unit: C
+        range:
+          min: -8
+          max: 8
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 40
+        type: boolean
+        name: lock
+  - entity: number
+    name: Boost time
+    category: config
+    icon: "mdi:rocket-launch"
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        unit: h
+        range:
+          min: 1
+          max: 9
+  - entity: select
+    name: Window open timeout
+    translation_key: timer
+    icon: "mdi:window-open-variant"
+    category: config
+    dps:
+      - id: 103
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: immediate
+          - dps_val: "60"
+            value: "1h"
+          - dps_val: "90"
+            value: "1h30m"
+  - entity: text
+    name: Program
+    category: config
+    icon: "mdi:calendar-clock"
+    hidden: true
+    dps:
+      - id: 110
+        type: base64
+        optional: true
+        name: value