Преглед изворни кода

feat (andersson_gsh_heater): add compatible Devola model

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

PR #3924
Jason Rumney пре 3 месеци
родитељ
комит
ad3e6ea8fc
1 измењених фајлова са 11 додато и 0 уклоњено
  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
   - id: qAmsenZuNF74vRvj
     manufacturer: Devola
     manufacturer: Devola
     model: Intelligent
     model: Intelligent
+  - id: laagtqcj40q1uwg8
+    manufacturer: Devola
+    model: Designer Glass Panel Heater
 entities:
 entities:
   - entity: climate
   - entity: climate
     translation_only_key: heater
     translation_only_key: heater
@@ -25,6 +28,14 @@ entities:
         range:
         range:
           min: 5
           min: 5
           max: 35
           max: 35
+        mapping:
+          - constraint: preset_mode
+            conditions:
+              - dps_val: af
+                value: 5
+                range:
+                  min: 5
+                  max: 5
       - id: 3
       - id: 3
         name: current_temperature
         name: current_temperature
         type: integer
         type: integer