Parcourir la source

Summary: Hombli thermostat: Add valve opening sensor

Added as both numeric sensor (% opened) and hvac_action for climate entity.

Enhancment based on comment to PR #1424

Update docs for PR #1612
Jason Rumney il y a 2 ans
Parent
commit
854ba1fa5c

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -482,3 +482,4 @@ Further device support has been made with the assistance of users. Please consid
 - [scrampker](https://github.com/scrampker) for assisting with support for Ironzon fingerprint locks.
 - [sergeymatsay](https://github.com/sergeymatsay) for assisting with support for Avatto ME81 thermostats.
 - [hrenki](https://github.com/hrenki) for assisting with support for Tesla TAF series air conditioners.
+- [FSJHecker](https://github.com/FSJHecker) for contributing support for CleanAir 604B humidifiers.

+ 1 - 0
DEVICES.md

@@ -175,6 +175,7 @@
 - Casafan ECO Neo III ceiling fan with light
 - Cecotec ceiling fan with light
 - Chanfok ceiling fan with cool/warm white dimmable light
+- CleanAir 604B humidifier
 - Deta fan controller
 - Djive ARC humidifying fan
 - Duux Whisper Flex pedestal fan

+ 21 - 0
custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml

@@ -35,6 +35,19 @@ primary_entity:
           value: "away"
         - dps_val: false
           value: "home"
+    - id: 104
+      type: integer
+      name: hvac_action
+      mapping:
+        - constraint: hvac_mode
+          conditions:
+            - dps_val: false
+              value: "off"
+            - dps_val: true
+              mapping:
+                - dps_val: 0
+                  value: idle
+                - value: heating
 secondary_entities:
   - entity: switch
     name: Window check
@@ -117,3 +130,11 @@ secondary_entities:
       - id: 130
         type: boolean
         name: switch
+  - entity: sensor
+    name: Valve
+    category: diagnostic
+    dps:
+      - id: 104
+        type: integer
+        name: sensor
+        unit: "%"