rmoesbergen / openwrt-ha-device-tracker

OpenWRT device tracker for Home Assistant that actually works
105 stars 18 forks source link

Fix polling loop bug and mark devices as away faster #9

Closed lbschenkel closed 2 years ago

lbschenkel commented 2 years ago

Hi. Thanks for this script, very useful!

I have made 2 improvements (please read the individual commit messages for full explanation):

  1. fix the polling loop so if offline_after is set to 1 devices don't go away and come back on every poll
  2. if offline_after is set to 1 (or less), then there's no need to wait so devices are marked as away immediately
rmoesbergen commented 2 years ago

Awesome, thanks!