소스 검색

feat (andersson_gsh_heater): add compatible Devola model

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

PR #3924
Jason Rumney 6 달 전
부모
커밋
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
     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