Hello everyone,
This is either a brilliant or stupid question, I’m not sure which yet. I utilize a few sensors from the mobile HA app on my Android for a few automation purposes (most prominently location and bluetooth) and I know that the updating of location is done automatically in the background with its settings in the App Configuration section.
In terms of automating leaving my residence and coming back, I came up with an idea of relying more on the bluetooth connection state (when my phone is paired to my car’s bluetooth MAC) than location, as I have found that to update more quickly and reliably than the app’s location sensors. So my new idea of that automation would be:
Leaving Home
Trigger: Bluetooth sensor state changes, now includes car’s MAC in connected paired devices
Action: Commence leaving home automations
Leaving Car
Trigger: Bluetooth sensor state changes, car’s MAC no longer listed in connected paired devices
Actions:
- Update mobile app’s GPS location (This is where my below question is relevant)
- If new location is within Home Zone, commence with returning home scripts
* Can add additional tests for if you want to add other zone automations
What I was wondering is is there a service call or something available that can force an update of that location sensor as a step in an automation process? The closest thing I could find was homeassistant.set_location, but I believe that simply updates the home location of your install instance, not the device location. If this isn’t possible I understand, but I figured I’d take a shot in the dark here.