naofireblade / homebridge-neato

A Neato vacuum robot plugin for homebridge.
MIT License
69 stars 18 forks source link

Dock Sensor not working under iOS 11 beta #6

Closed CooperCGN closed 6 years ago

CooperCGN commented 6 years ago

Just to let you know, the plugin worked perfectly but with the latest iOS 11 beta I don't get the dock sensors to trigger. My two robots definitely are online, as I can start them from the home app on my iPad. Is there any way to check if it's on my side? Other sensors like motion and door are still doing their job as expected.

naofireblade commented 6 years ago

Hello CooperCGN,

homekit seems to be very unstable in the iOS beta versions. What device are you using as your homekit hub? Make sure, that this one is also on iOS 11. Also removing and re-adding the hub to homekit might help.

Do you see the correct state when you manually refresh the robot in the elgato eve app (pulling down)?

CooperCGN commented 6 years ago

Hi,

I'm actually running the latest betas on all my devices including my Apple TV4 as home hub. The state isn't updated in the eve app either when manually refreshing. Battery state is processed the right way, it's only the dock thats not working. I wonder if Neato changed anything in the API as they just updated the iOS app and introduced the D7 at IFA.

I'm going to setup a separate Homebridge service tomorrow with only the neato plugin activated to see if there's something unusual in the logs. Any suggestions what to look for? Are there any entries for docking or undocking when data is pulled from the neato cloud?

CooperCGN commented 6 years ago

Just checked the log again and it definitely shows two different entries for docked and not docked: Sep 03 18:54:17 raspberrypi homebridge[2398]: Sun, 03 Sep 2017 16:54:17 GMT homebridge-neato Erdgeschoss: Is docked: true Sep 03 19:00:58 raspberrypi homebridge[2398]: Sun, 03 Sep 2017 17:00:58 GMT homebridge-neato Erdgeschoss: Is docked: false

So I assume it's either a HomeKit problem or Apple changed something which causes a problem with homebridge. On the other hand my Eve Door sensors are working properly...

naofireblade commented 6 years ago

Ok good to know that. Maybe it's a problem with the underlying HAP-NodeJS. I will look into that as soon as iOS 11 is released.

CooperCGN commented 6 years ago

Have a look at this issue with homebridge: https://github.com/nfarina/homebridge/issues/1468 I tried going back to 0.4.22 but that crashes my homebridge-hue plugin as it requires 0.4.25, the sensors are working with 0.4.22, so it's in the homebridge code.

naofireblade commented 6 years ago

Indeed, I have the same problem after updating homebridge. Still running on iOS 10. I have contact and occupancy sensors from other homebridge plugins that are still working. I will check that.

CooperCGN commented 6 years ago

I went back to the hue plugin version that works under 0.4.22, guess we will have to wait till nfarina gets this fixed, at least the sensors are working again, as I need them in some rules.

naofireblade commented 6 years ago

I found the problem. The sensor state must be 1 or 0 now and no longer true or false. I published a fix in verson 0.4.5 to npm.

naofireblade commented 6 years ago

Is it working for you as well?

CooperCGN commented 6 years ago

Just installed it and yes it works for me as well, perfect. Thanks!

naofireblade commented 6 years ago

Great to hear that.