I am looking for a way to automate some stuff in my household depending on who entered home. The only way I can think of implementing this is by checking which device connected to the WiFi.
For example when I come home I want the water heater to start while when my girlfriend comes home she wants the oven to start preheating.
Now I want a way to recognize which device connected to the WiFi (maybe get the MAC address which is unique?) and from there send different commands to different appliances.
Now I am aware that this will start as soon as I park my car given that my garage is in range of the router but this is ok.
My question is, how would I implement such a service?
Best Answer
This heavily depends on your HA supervisor, for example with OpenHAB this can be done with the NetworkHealth binding : https://github.com/openhab/openhab/wiki/Network-Health-Binding.
The key here is to know your devices IP Address and monitor it.
Item in Openhab format:
More details for OpenHAB: the binding will check the connection status of a given device with it's IP Address, then you can use a rule such as :