Просмотр исходного кода

BHT-002 GALW: make some dps optional for GBLW compatibility

Missing factory reset (button, so likely write-only) and hvac_action (maybe only because it is off in the log).

Two additional dps: 102: 500 and 101: 10, but no info on what they are.

Issue #1593
Jason Rumney 2 лет назад
Родитель
Сommit
758357a7a7
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      custom_components/tuya_local/devices/bht002_galw_thermostat.yaml

+ 7 - 0
custom_components/tuya_local/devices/bht002_galw_thermostat.yaml

@@ -1,4 +1,7 @@
 name: Thermostat
+products:
+  - id: v5214objiaepcaer
+    name: BHT-002 GBLW
 primary_entity:
   entity: climate
   dps:
@@ -21,6 +24,7 @@ primary_entity:
     - id: 3
       name: hvac_action
       type: boolean
+      optional: true
       mapping:
         - constraint: hvac_mode
           conditions:
@@ -32,6 +36,8 @@ primary_entity:
                   value: idle
                 - dps_val: true
                   value: heating
+                - dps_val: null
+                  value: idle
     - id: 16
       name: temperature
       type: integer
@@ -60,6 +66,7 @@ secondary_entities:
     dps:
       - id: 39
         type: boolean
+        optional: true
         name: button
   - entity: switch
     name: Window detect