Prechádzať zdrojové kódy

feat (andersson_gsh_heater): add compatible Devola model

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

PR #3924
Jason Rumney 3 mesiacov pred
rodič
commit
ad3e6ea8fc

+ 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