Not yet, I’m a windows and android user, have 3 ipads for work only. Shortcuts app it’s a mistery for me, not very user friendly and the online documentation is very vague, to say something positive xd. When I get some results I will put it here to share it with everyone.
Thanks to @marco from aguacatec community i found the way to get the coordinates of the airtag and create a device tracker sensor you can use in your maps (check first post)
It seems yes, i didnt get it managed to automate the shortcut running at a specific time with a locked iphone. I must always confirm the shortcut to be executed.
Nice one! I have setup my two airtags and it seems to work as intended. However, one peculiarity is they both are showing is being Home (fine) but both with an address that is ca. 5 km from the house (definately not Home). I can see that the error is in the coordinates it fetches, which correspond to the address it displays which is not their current location (Home). Has anyone else experienced this?
Would inspect the “show results” mentioned for more info on the data message, but I simply cannot find that action - any advice? Sorry, first time using Shortcuts on iPhone
I assume you are using the last version of my code (since you can see the “Home” text). If this is your case, the coordinates come from this part of the code:
{% set home = “FULLADRESS” %}
Is it possible that you didn’t write your address properly?
I have the right address. As you can see from my code below, my street name is “Egholmvej” and the street name coming from the coordinates is “Øster Farimagsgade”, so not even close. It is approx. 5 km and in the same city and all, I just don’t see where it would fetch those coordinates from, as it shows correctly in the map on the Find app…?
- platform: rest
name: airtag_test
value_template: "{{ value_json.results[0].formatted }}"
json_attributes_path: "$.results[0]"
json_attributes:
- lon
- lat
- district
- city
- postcode
- street
- housenumber
- state
- country
- country_code
verify_ssl: true
scan_interval: 900 # every 15 min
resource_template: >
{% set address = states('input_text.airtag').split('Test')[1].split('•')[0] %}
{% if address == "Hjemme" %}
{% set home = "Egholmvej XYZ" %}
{{
"https://api.geoapify.com/v1/geocode/search?text="
+ home | urlencode
+ "&apiKey=MYAPI&format=json"
}}
{% else %}
{{
"https://api.geoapify.com/v1/geocode/search?text="
+ address | urlencode
+ "&apiKey=MYAPI&format=json"
}}
{% endif %}
It looks like Geoapify does not take your address propperly. I suggest you to get into this link and check it. Maybe you can adjust it in order to get the right coordinates.