Checking if anyone is home (PowerShell script)
Posted: Fri Mar 17, 2023 9:45 am
There are probably many ways of doing this, but I thought I could share my way of doing it here aswell.
I made a post about it on my blog at:
http://dollarunderscore.azurewebsites.net/?p=2851
It's basically a script that runs every 1 or 5 minutes that checks which of our phones are connected to WiFi and writes the current status to file and changes a device in Telldus Live! to enable filtering on events.
I use it to for example light up all the lights when the first person comes home (the trigger is a IR-sensor), but if someone else has already arrived it just lights up the lamp at the door.
I also use it to set our "friday mood scene" when the whole family comes home on fridays (dimming the lights, turn on the stereo with a special playlist in spotify and so on...).
Just thought someone else here might have use for it
Feel free to ask questions if you need help configuring it!
I made a post about it on my blog at:
http://dollarunderscore.azurewebsites.net/?p=2851
It's basically a script that runs every 1 or 5 minutes that checks which of our phones are connected to WiFi and writes the current status to file and changes a device in Telldus Live! to enable filtering on events.
I use it to for example light up all the lights when the first person comes home (the trigger is a IR-sensor), but if someone else has already arrived it just lights up the lamp at the door.
I also use it to set our "friday mood scene" when the whole family comes home on fridays (dimming the lights, turn on the stereo with a special playlist in spotify and so on...).
Just thought someone else here might have use for it
Feel free to ask questions if you need help configuring it!