andreypopov / node-red-contrib-miio-roborock

Xioami Roborock node-red nodes
Apache License 2.0
32 stars 12 forks source link

Add state 18 - room cleaning #13

Closed SimplyRyan closed 4 years ago

SimplyRyan commented 4 years ago

Adds state 18 room-cleaning. On the S5 this state is used when a room is being cleaned. This is cosmetic however if you want to trigger off the status it's now possible. I had a guess 18 was room cleaning then went look on GitHub for a patched miio library and found one under the homebridge project[1].

Tested on Roborock S5 v.3.5.7_002008.

[1] https://github.com/homebridge-xiaomi-roborock-vacuum/homebridge-xiaomi-roborock-vacuum/blob/d77a0679d09338908084d4ee74e0aa7668fe9757/miio/lib/devices/vacuum.js#L82

As a side note [1] seems to be the new home for the miio library, lots of fixes and patches have been applied.

Before: image

After: image

SimplyRyan commented 4 years ago

@andreypopov can you merge when you are happy?