I recently upgraded from a VeraLite to a VeraPlus and was hoping that I could access the DHCP tables using Lua (or luup?).
On the VeraLite I used a ping sensor to determine which cell phones were currently connected my WiFi, the assumption being that if they are connected then a user is home and if they are not then that user is not home. This has worked well for me; the biggest issue has been the delay in detection. I was hoping that since the VeraPlus is able to act as a DHCP server I could change my setup so that cell phones connect to the VeraPlus’ WiFi and that I could use a DHCP table entry as a scene trigger.
Does anyone know of a way to use a DHCP table entry as the trigger for a Luup coded scene?
Tangentially related: What are some real world cons of the geo-fencing? Battery life?
There’s no such plugin at this time. You’d have to write your own script/plugin.
But, you can’t use the DHCP address lease database for presence detection. The leases are typically valid for at least 24 hours so, devices leaving the network will not have any effect on the address lease. Devices returning to the network before lease expiration will renew the lease, but that only tells one side of the story.
The issues with geofencing are, decreased battery life(marginal), less accurate than many people hope for, inability to use more than one geofencing device(Vera branded App, Proximity sensor does not suffer this).
The best presence detection right now, other than ping sensor, is Vera Proximity app with multiple boundaries and some PLEG logic. Search the forums for details on this solution.