Explorar o código

fix(madimack_inverflow_pro): don't use pump flow unit as indicator of AI availability

Device used pump flow units to indicate availability of many features found on
fully specified devices, but not on the cut down version without AI mode.

But pump units were not being proactively sent by the device, leading to these features
being unavailable after an HA restart until the unit was changed (which basically is never
in normal use).

Instead only use the unit as condition on sensors requiring the unit, and use dp 102
for the AI mode itself.

Issue #5636
Jason Rumney hai 1 semana
pai
achega
e093fdc269

+ 6 - 6
custom_components/tuya_local/devices/madimack_inverflow_pro.yaml

@@ -45,8 +45,8 @@ entities:
             available: aiflow_available
             available: aiflow_available
           - dps_val: "backwash"
           - dps_val: "backwash"
             value: "Boost"
             value: "Boost"
-      - id: 110
-        type: string
+      - id: 102
+        type: integer
         optional: true
         optional: true
         name: aiflow_available
         name: aiflow_available
         mapping:
         mapping:
@@ -225,8 +225,8 @@ entities:
         range:
         range:
           min: 30
           min: 30
           max: 120
           max: 120
-      - id: 110
-        type: string
+      - id: 102
+        type: integer
         optional: true
         optional: true
         name: available
         name: available
         mapping:
         mapping:
@@ -309,8 +309,8 @@ entities:
         type: boolean
         type: boolean
         optional: true
         optional: true
         name: sensor
         name: sensor
-      - id: 110
-        type: string
+      - id: 114
+        type: boolean
         optional: true
         optional: true
         name: available
         name: available
         mapping:
         mapping: