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

Hombli thermostat: dps 23, 104 are optional

Issue #1621

Contrary to the comment on #1424, it seems dp 104 is not regularly sent,
sso it is not suitable to use for hvac_action and need to be optional
along with dp 23 as highlighted in #1621.
Jason Rumney пре 2 година
родитељ
комит
e79fca6f53

+ 2 - 13
custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml

@@ -35,19 +35,6 @@ primary_entity:
           value: "away"
           value: "away"
         - dps_val: false
         - dps_val: false
           value: "home"
           value: "home"
-    - id: 104
-      type: integer
-      name: hvac_action
-      mapping:
-        - constraint: hvac_mode
-          conditions:
-            - dps_val: false
-              value: "off"
-            - dps_val: true
-              mapping:
-                - dps_val: 0
-                  value: idle
-                - value: heating
 secondary_entities:
 secondary_entities:
   - entity: switch
   - entity: switch
     name: Window check
     name: Window check
@@ -73,6 +60,7 @@ secondary_entities:
       - id: 23
       - id: 23
         type: string
         type: string
         name: option
         name: option
+        optional: true
         mapping:
         mapping:
           - dps_val: "c"
           - dps_val: "c"
             value: Celsius
             value: Celsius
@@ -136,5 +124,6 @@ secondary_entities:
     dps:
     dps:
       - id: 104
       - id: 104
         type: integer
         type: integer
+        optional: true
         name: sensor
         name: sensor
         unit: "%"
         unit: "%"