Explorar el Código

feat (andersson_gsh_heater): add compatible Devola model

- add constraint on temperature for af mode (fixed temperature)

PR #3924
Jason Rumney hace 6 meses
padre
commit
ad3e6ea8fc
Se han modificado 1 ficheros con 11 adiciones y 0 borrados
  1. 11 0
      custom_components/tuya_local/devices/andersson_gsh_heater.yaml

+ 11 - 0
custom_components/tuya_local/devices/andersson_gsh_heater.yaml

@@ -6,6 +6,9 @@ products:
   - id: qAmsenZuNF74vRvj
     manufacturer: Devola
     model: Intelligent
+  - id: laagtqcj40q1uwg8
+    manufacturer: Devola
+    model: Designer Glass Panel Heater
 entities:
   - entity: climate
     translation_only_key: heater
@@ -25,6 +28,14 @@ entities:
         range:
           min: 5
           max: 35
+        mapping:
+          - constraint: preset_mode
+            conditions:
+              - dps_val: af
+                value: 5
+                range:
+                  min: 5
+                  max: 5
       - id: 3
         name: current_temperature
         type: integer