Răsfoiți Sursa

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 1 săptămână în urmă
părinte
comite
e093fdc269

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

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