KrzysztofHajdamowicz / home-assistant-vacuum-styj02ym

80 stars 25 forks source link

Fix robot not being able to vacuum with 2in1 box #6

Closed Acrobot closed 3 years ago

Acrobot commented 3 years ago

I was thinking that my robot started to be defective, since it always forced itself to the "vacuum and mop" mode and then complained about the missing attachment, even though I have chose it to just vacuum.

It turns out that in the previous logic, the robot was forced to the mop and vacuum mode if the 2 in 1 box has been available, even though the robot did not have the mopping attachment. This commit adds a few comments to the code and changes the logic so that it considers whether the mopping attachment is available or not as well as the box type.

I've tested different combinations of box types and the mopping attachment, it works on my STYJ02YM (EU).

Acrobot commented 3 years ago

Hi @KrzysztofHajdamowicz, any update on that?

KrzysztofHajdamowicz commented 3 years ago

Thanks for pointing out this issue! It's good to have device that behaves intuitively :)