Переглянути джерело

powerworld_pw58410_waterheater: make fault sensor optional

Newer firmware does not seem to send the 0 fault sensor value.

- do the same for the 58330 and the hvaconly variant of 58410

Issue #5210
Jason Rumney 1 місяць тому
батько
коміт
406504c200

+ 4 - 0
custom_components/tuya_local/devices/powerworld_pw58330_waterheater.yaml

@@ -131,13 +131,17 @@ entities:
     dps:
       - id: 15
         type: bitfield
+        optional: true
         name: sensor
         mapping:
           - dps_val: 0
             value: false
+          - dps_val: null
+            value: false
           - value: true
       - id: 15
         type: bitfield
+        optional: true
         name: fault_code
   - entity: sensor
     name: Inlet temperature

+ 4 - 0
custom_components/tuya_local/devices/powerworld_pw58410_hvaconly.yaml

@@ -172,13 +172,17 @@ entities:
     dps:
       - id: 15
         type: bitfield
+        optional: true
         name: sensor
         mapping:
           - dps_val: 0
             value: false
+          - dps_val: null
+            value: false
           - value: true
       - id: 15
         type: bitfield
+        optional: true
         name: fault_code
       - id: 199
         type: integer

+ 4 - 0
custom_components/tuya_local/devices/powerworld_pw58410_waterheater.yaml

@@ -163,13 +163,17 @@ entities:
     dps:
       - id: 15
         type: bitfield
+        optional: true
         name: sensor
         mapping:
           - dps_val: 0
             value: false
+          - dps_val: null
+            value: false
           - value: true
       - id: 15
         type: bitfield
+        optional: true
         name: fault_code
       - id: 199
         type: integer