Przeglądaj źródła

fix (ilife_a30_pro_vacuum): invert the activate signal

Since the device defines this as "pause", it is inverted compared to an
actual activate dp found on some other vacuums.

This is a simpler change than the approaches used in kogan_lx8_vacuum
(combining pause with command), and kabum_smart700_v2023_vacuum (combining
switch_go with pause into a single activate dp) if it works.

PR #4109
Jason Rumney 2 miesięcy temu
rodzic
commit
8c94bac181

+ 5 - 0
custom_components/tuya_local/devices/ilife_a30_pro_vacuum.yaml

@@ -12,6 +12,11 @@ entities:
       - id: 2
         type: boolean
         name: activate
+        mapping:
+          - dps_val: true
+            value: false
+          - dps_val: false
+            value: true
       - id: 4
         type: string
         name: command