←back to thread

378 points nkko | 4 comments | | HN request time: 0.622s | source
1. leobg ◴[] No.42481030[source]
Can I use this, if I have an iPhone, to trigger actions on a server based on my location?

For example, “When I come home, fetch the latest electricity prices and notify me if I should plug in my Tesla”.

I tried that using Shortcuts, but they won’t run location based without confirmation. (There are some workarounds, but they, too, don’t work reliably in my experience.)

replies(3): >>42481331 #>>42481860 #>>42483559 #
2. cruffle_duffle ◴[] No.42481331[source]
Stupid question but couldn’t you just always plug it in and then automate the bit where it actually energizes the outlet?
3. malmeloo ◴[] No.42481860[source]
Technically, yes! I have an experimental Home Assistant integration here, if you're into that stuff: https://github.com/malmeloo/hass-FindMy

However, do note that AirTags put themselves into "nearby" mode when they're near an owner device, at which point they become untraceable to the FindMy network (the system where other iPhones are finding your AirTag and uploading its location). That also makes it invisible to this library. It is however still possible to detect it using the BLE signal it is broadcasting in nearby state, which is supported by the library but not yet by the HA integration.

4. enlightens ◴[] No.42483559[source]
If you literally mean when you return home, I’ve been running Shortcut automations triggered by leaving home and arriving home, using the built in “My Home” triggers. They don’t require confirmation and as best as I can tell have been completely reliable.