Companion app: force sensors update with intent
Companion app: force sensors update with intent
I'd like to use my smartphone WiFi SSID to determine if I'm home or not. When I'm home the alarm (kinda, just notifications from some sensors) needs to be shut off and a light needs to be turned on. Since the sensors update can be forced at maximum 1 minute (but I'd prefer to leave it at 15 minutes to preserve battery) and since 1 minute is too much, is there a way to send an intent to HA companion app to send a sensors update? I would use Tasker to send the intent.
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