this post was submitted on 18 Jul 2024
22 points (100.0% liked)
homeassistant
12181 readers
24 users here now
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Go to your phone WiFi settings and turn off the random Mac address security feature on your wifi, then set up your router in HA as an integration. This will make device trackers for each mac address on your lan.
Then you can set that device tracker in your person.entity to track yourself.
That way, when you get home and on your WiFi, your router will mark you home
I didn't know that existed integrations for routers. I'm installing the one for OPNsense and I'll try this method. by the way, I've just noticed that the wifi SSID to which I'm connected changes instantly in HA, I've no idea why! ๐
In the companion app, where you choose the update interval, there's a banner of text that explains it.
Some sensors update instantly (such as connected WiFi SSID), others update on an interval (such a battery level or pressure sensor).
The maximum update interval applies to non-instantaneous sensors.
When you select which sensors to enable you can see whether it's an instantly updating one or one on a timer
I missed that piece of information, thanks a lot!
The router polling integration is probably a bit superfluous for devices that have the companion app installed.
Although, it's still helpful for other devices like guests' phones, or non android/ios devices.
Not sure how helpfully to your use case these will be, but a few ideas...
It's been a while since I tinkered, but I think you can also assign multiple devices to a person and track the person's presence instead of a specific device.
You can also create a group of persons, which is handy for some use cases.
As an example, I have a
group.us
which containsperson.me
andperson.mypartner
. The group's status ishome
if either of us are home and only changes to away if neither of us are home.Similarly, I have a
group.guests
which contains guests who sometimes spend the night.If any guests are home, my goodnight automation ignores the bathroom and the guest bedroom lights.
group.guests:
I have an input boolean that changes input_text.manual_guest_tracker to home/not_home if we wanna enable "guests mode" without having to track a device.
Single person with multiple trackers:
person.fren: