Ver código fonte

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 anos atrás
pai
commit
758357a7a7

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

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