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

Add support for Hysen HY08ACF thermostat.

This is much more limited in features than the HY08WE2 that is already
supported.  Since the diagrams show both hot and cold water pipes
being controlled by the device, but there is no selection at protocol
level, I assume that the "on" position is automatically selecting (or
even mixing) which pipe to open based on current temperature vs target
temperature, therefore the on position is set as heat_cool in Home Assistant.
Jason Rumney 3 лет назад
Родитель
Сommit
7836c706f4

+ 2 - 1
ACKNOWLEDGEMENTS.md

@@ -67,7 +67,7 @@ Further device support has been made with the assistance of users.  Please consi
  - [jdavidr17](https://github.com/jdavidr17) for assistance with discovering timer parameters for switches.
  - [miannelli516](https://github.com/miannelli516) for assistance with TR9B thermostats.
  - [edwinyoo44](https://github.com/edwinyoo44) for contributing support for JJPro JPD01 and JPD02 dehumidifiers and assistance with Poiema One purifiers.
- - [mpetcuRO](https://github.com/mpetcuRO) for assistance with Hysen HT08WE-2 thermometers.
+ - [mpetcuRO](https://github.com/mpetcuRO) for assistance with Hysen HT08WE-2 thermostats.
  - [Paul-C-S](https://github.com/Paul-C-S) for assistance with Ecostrad Accent iQ heaters and contributing support for iQ Ceramic radiators and INOW heating elements.
  - [WildeRNS](https://github.com/WildeRNS) for assistance with Nashone MTS-700-WB thermostat smartplugs, SmartMCB Energy meter.
  - [ishioni](https://github.com/ishioni) for contributing support for Eberg Cooly C32HD air conditioner.
@@ -156,3 +156,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [MoosJ80](https://github.com/MoosJ80) for assistance supporting PJ-1103 clamp power meters.
 - [david1111967](https://github.com/david1111967) for contributing Spanish translations.
 - [s3anyboy](https://github.com/s3anyboy) for assistance supporting Dual power monitoring smartplug (Geex).
+- [FritsOV](https://github.com/FritsOV) for assistance supporting Hysen HY08ACF thermostats.

+ 1 - 0
DEVICES.md

@@ -73,6 +73,7 @@
 - Beok TR9B thermostat _(rebadged as Vancoo and perhaps others)_
 - ETOP-HP thermostat (CH7100)
 - ETOP-HT thermostat
+- Hysen HY08ACF thermostat
 - Hysen HY08WE-2 thermostat
 - Inkbird ITC306A thermostat smartplug
 - Inkbird ITC308 thermostat smartplug

+ 69 - 0
custom_components/tuya_local/devices/hysen_hy08acf_thermostat.yaml

@@ -0,0 +1,69 @@
+name: Hysen HY08ACF thermostat
+primary_entity:
+  entity: climate
+  dps:
+    - id: 1
+      type: boolean
+      name: hvac_mode
+      mapping:
+        - dps_val: false
+          value: "off"
+        - dps_val: true
+          value: heat
+    - id: 2
+      type: integer
+      name: temperature
+      range:
+        min: 50
+        max: 500
+      mapping:
+        - scale: 10
+          step: 5
+    - id: 3
+      type: integer
+      name: current_temperature
+      mapping:
+        - scale: 10
+    - id: 5
+      type: string
+      name: fan_speed
+      mapping:
+        - dps_val: low
+          value: Low
+        - dps_val: high
+          value: High
+        - dps_val: auto
+          value: Auto
+    - id: 13
+      type: bitfield
+      name: fault_code
+secondary_entities:
+  - entity: lock
+    name: Child lock
+    icon: "mdi:hand-back-right-off"
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 13
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: switch
+    name: Sleep
+    category: config
+    icon: "mdi:power-sleep"
+    dps:
+      - id: 117
+        type: boolean
+        name: switch
+