News for hackers. Stuff that matters.
Re:Slightly Intelligent Home by bombolo on Wednesday March 08, 2023 @01:45AM (#35066005)
> 3. When all of our phones have left the house, the security system arms itself. Also disarms when we get home.

How did you pull this off? My phones go in powersaving mode (disconnecting themselves) even when I set them to not do that. The only way seems to keep the charger plugged.

Re:Slightly Intelligent Home by osr on Wednesday March 08, 2023 @02:25AM (#35066227)
I use Home Assistant with the Unifi integration that checks if a specific device is connected to my wifi, and since I and my girlfriend always have wifi on at home, this is working very good.
Re:Slightly Intelligent Home by bombolo on Wednesday March 08, 2023 @05:54PM (#35075914)
I know I know. Basically checks the ARP table. But in my experience phones disconnect the wifi when idle, even when told not to do so.
Re:Slightly Intelligent Home by thereisnospork on Wednesday March 08, 2023 @02:58AM (#35066439)
I send my phone a ping every few seconds to see if it is on the network[0], possibly that is enough activity to keep it from disconnecting? I use node-red personally but probably not a big difference there. Could maybe try just rigging a 'ping -n 1000000' from the command line overnight to see if that keeps the phone awake?

Although I will say it is sometimes frustratingly slow to first connect to wifi, as if it is only scanning every 30 seconds or more when not connected to a network.

[0]For lighting and ambient music to come on when I get home from work.

Re:Slightly Intelligent Home by Nextgrid on Wednesday March 08, 2023 @05:20AM (#35067266)
Wouldn't that affect battery drain?
Re:Slightly Intelligent Home by LtWorf on Wednesday March 08, 2023 @06:00PM (#35075979)
Yes, but a ping every few second shouldn't make much difference. The problem is that phones go into power saving mode.

When using whatsapp from the website, that requires (required? Haven't used it in a while) the phone to be online, I occasionally had to wake up the phone.

Re:Slightly Intelligent Home by tmerc on Wednesday March 08, 2023 @10:13AM (#35069952)
I can't remember the details, but I had mobile detection reliably working using arp on my router.
Re:Slightly Intelligent Home by LtWorf on Wednesday March 08, 2023 @05:58PM (#35075959)
I made a software to do actions when devices appear/disappear from the LAN.

https://github.com/ltworf/lapdog

It sends pings and uses the mac addresses.

Re:Slightly Intelligent Home by cjdoc29 on Wednesday March 08, 2023 @03:16PM (#35074165)
Do you have iPhones? My solution is specific to the Apple ecosystem, but did indeed require some workaround with Homebridge to get it to be truly automated.
Re:Slightly Intelligent Home by bombolo on Wednesday March 08, 2023 @05:53PM (#35075906)
No, android.