So, i am trying to get an updated location status from iOS devices when HASS restarts.
I have the following notification setup to run 1 minute after the system restarts. I do see the notification come into my device showing the text specified, but no location update ever reaches HASS from any of mine or my wife devices.
Finally got around to trying this out on my setup. I have my script formatted just like yours @gazzer82 and I get the following error in my logs:
16-11-21 17:27:52 homeassistant.components.notify.ios: No target parameter was found in the notification payload.
So it seems like it is looking for a target field, but I thought that putting the device name after notify.ios did exactly that. I’m guessing it is a formatting issue.
I have been planning to modify sosumi so that it will provide my ios location to mqtt by simulation owntrack. Sosumi has worked great for me for many years providing location to my webpages and Alexa.
Finally got it working. Turns out my push notification token had expired or changed since I last tested iOS notifications. I am now able to force a location update when needed.
Just noticed in the original post that it was sending request_location_updates. The server only supported request_location_update (singular) until just now when I made it support either.