nitaybz / homebridge-network-presence

Homebridge plugin that provides occupancy sensor for devices presence in your network
MIT License
43 stars 7 forks source link

Devices dropping off list #6

Open gdotp01 opened 3 years ago

gdotp01 commented 3 years ago

Hi, I tried moving to this plugin as I’ve been using the People plugin for a while successfully but this looked more modern and easier to configure via the homebridge UI. Well done for taking it on.

I saw that you’d added an Occupancy switch and this was really useful for home automation as I’ve been using similar in People to track people in and out the house to automate alarm and camera activations.

however I seem to have hit a snag. The plugin seems to find devices ok using the MAC address but then they seem to randomly loose connection, if they all go then the automation kick in the alarm turning on ( not good). I’ve triple checked , the Mac addresses are correct and I’ve even added the IPs which are addressed as fixed from my router. I’m now running the people plugin in //l with yours and one device as you can see is not showing up even though it’s on the network and connected. This plugin is in the Temp room and people is in Hubs.

28340007-58A9-4E8C-AC74-0D3E2D8D0E12

nitaybz commented 3 years ago

Try to increase the threshold... it's designed especially for that... devices are always connect and disconnects from the network when their screen is off so the threshold will make sure it does not disconnect on those drops

gdotp01 commented 3 years ago

I have the timeout as 15 mins which is the same as my other plugin. I did reduce the polling to every 60 seconds so I’ve reduced that to 10 now the same as my other and I’ll see what happens . Thx

gdotp01 commented 3 years ago

Ok so is set the polling time to 10 seconds and that appears to have stabilised it. Not sure why 10 secs is so different to 60 but still it seems ok now

gdotp01 commented 3 years ago

I’ve tested all day and there does appear to be an issue. Overnight my phone dropped off and did not return again even though in the people plugin it remained connected and I could ping it on the network. Then my sons phone did the same and again on testing it’s definitely connected. As a side issue I’ve also found that there appears to be a cross over between this and the people app as regardless of the names I give to each accessory it picks up full names (which is strange, it’s almost like it’s been cached somewhere) 4DDF27D1-290C-4232-8265-E399AEA9AE07

FD23AD52-B4B5-436D-8092-8CDB925D122E

nitaybz commented 3 years ago

Indeed strange. Those plugins have nothing in common... but maybe they do conflict some how, have you tried running only my plugin without the people plugin running along

gdotp01 commented 3 years ago

I can’t really. If I disable People I’ll have to reconfigure about 10 automations and I wanted to check yours was reliable first

gdotp01 commented 3 years ago

Even stranger. In the log file they have the correct names.

50520C3F-5C10-4FA8-8581-9F0CB72DDF14

nitaybz commented 3 years ago

Please try v1.2.0... I've optimize the network scanner and also did some change to (hopefully) better co-op with other similar plugins.