homebridge-xiaomi-roborock-vacuum
homebridge-xiaomi-roborock-vacuum copied to clipboard
One zone activated, all zones active.
…would it be possible to show the actual zone which has been activated?
If I "switch on" zone A, the Home-App shows all zones (A, B, C, D). (as shown here in homebridge)
I know I know. Guess I should put in the readme. I'll look into it, I always use my voice so it never bothered me.
no huge issue, but if I schedule a cleaning I would like to know where the vaccum is working at the moment, when I peek into the HomeApp.
It is because you created multiple instances for the device, all listen to "cleaning: true/false" message. I'm looking into the code and trying to see if I can do zone clean with one device. I believe the only way to do it is to maintain the zone clean state in code.
ya you just need to store the name of the zone being cleaned and compare it to find the status of each zone. But then you run into issues with what if you start to clean another zone, it will think it can so it needs to check the true and false value still. It would ideally mark them as disabled or something I guess
ya you just need to store the name of the zone being cleaned and compare it to find the status of each zone. But then you run into issues with what if you start to clean another zone, it will think it can so it needs to check the true and false value still.
Guess this would work:
- When zone clean is instructed, record the name of the zone to var cleaningZone.
- Keep getting state update, if the cleaningZone exist, only update the switch for that zone.
- When receiving command to turn on clean for other zones, check if the vaccum is cleaning, if yes then do nothing (or disallow the action, not sure how to)
- When the fan for the cleaningZone is turned off, go back to charge and reset cleaningZone to undefined One thing I need to know more about is the "stateChanged" message, right now it only tells me if the device is cleaning or not. But I know in the "state" object you can also see if the device is doing zone cleaning, is there a way to listen to that instead?
Well I don't have access to a house to test this (on a long trip, could be a while before I have a house) so I made a beta npm repository if anyone wants to be my test dummy https://www.npmjs.com/package/homebridge-xiaomi-roborock-vacuum-zones-beta
Hi,
I tried your Beta-Branch, but my Homebridge-Instance crashed instanly. "Module not registered, or something likely...".
Bummer.
Sorry about that, I'll have a space to test my vacuum soon. Will try and debug it myself then :)
Hi, Any news of the beta to show the actual zone that is cleaning? Looks great to me as well (-:
Sent with GitHawk
Sorry been absolutely hectic last few months. I won't be able to support this for at least the next few months as I am living the #vanlife and the vacuum won't fit :) If anyone wants to give it a shot I'm more then happy to approve PR's and publish new packages.
Tested out the zone-tracking branch on S5 with 3.5.7 FW. There's two bugs in the branch.
- miio-setCurrentSpeed needs to be this.setCurrentSpeed, otherwise it throws exceptions.
- when the vacuum is cleaning, turning the fan speed to zero, pauses the vacuum rather than return to dock.