balloob/home-assistant — pull request #2 by fingon (2014-04-21 19:55:25+00:00)
Title: Added LuciDeviceScanner to scan OpenWrt Luci-RPC enabled router's state.

Just to play with it, implemented tracker for devices on Luci-based router.

For the time being, just getting MAC addresses from ARP table, and name->MAC mappings from dhcp configuration. As I'm planning to write my own logic backend for which this is sufficient, it's enough for me, but it may not work that well with the vanilla logic (due to ARP entries having short lifetime and quiet devices not sending any).

I'm not sure there's any low-power approach how to ensure that devices are present in the first place though.. (DHCP leases for example aren't that good way to track presence of hosts either.)