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?

1 Answer 1


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:

Switch Phone_WIFI   "Phone 1"   (Status, Network)   { nh="" }
Switch Phone2_WIFI   "Phone 2"   (Status, Network)   { nh="" }

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 :

rule "Wife back home - Lights On"
    Item Phone_WIFI received update ON
    // turn on all lights
    postUpdate(All_Lights, ON)

  • I have never used something like this. How do I install it at my home and how do I connect different devices to it? Nov 6, 2014 at 10:06
  • Hi, you can find a getting started here : openhab.org/gettingstarted.html but depending on what you want to do you might need to crawl the wiki to gather informations. Nov 6, 2014 at 10:13
  • 2
    Just noticed that you were also the person asking for temperature monitoring, this can be integrated aswell in OpenHAb - Wife back home -> Temperature < 20°C -> Heater On Nov 6, 2014 at 10:47
  • 1
    I am so going to try out OpenHAB, thanks for making me aware of it! Nov 7, 2014 at 11:43
  • 1
    No problem, it's a win-win here, that will be more ideas for my own home when you'll come with yours :D Nov 7, 2014 at 11:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.