This blueprint aims to be a full implementation of all options available for notifications on IOS.
No more thinkering with the settings until it works somehow and then redo everything for the next automation.
Just use this blueprint, attach some scripts to some actions and be happy.
Functions include:
All configuration options for notifications
Static attachments
Dynamic Attachments (Map and Camera) with full configuration options
Attaching Scripts to actions
Provide a text field upon clicking on an action (the reply is given as input for the script)
And many more!
Automation (Triggered by input boolean):
Script Template:
Note that the Script Template does not support markdown in the descriptions so it looks a bit… weird. But it fully works.
I will not post the blueprint here directly, since it has over 1500 lines. But you can see it (and modify it) here
If anything does not work, just write something here and I will look into it. There seem to be some options that simply wont work.
Quick note for everyone that wants to put pins on the map and template the input for that. I did not now that but if a template outputs something comma-seperated it will allways be treated as a list, not matter if you cast it to a string inside the jinja template. So if you now generate the lat and lon as comma seperated values as required, you will get an error because the blueprint assumes the output is a string, but it is a list. To circumentvent this you can add ~",," to your plueprint like so
Thank you for this. I have a question about the Trigger. I see that it is not possible to use a normal trigger. Understood. I have created a helper input_button but when I press that helper button the iOS notification is not triggered. Is the input_button meant to be just a dummy that does nothing?
I can push “RUN ACTIONS” within the automation and the iOS notification goes out. How should I be triggering the notification blueprint?
Hey, thanks for this.
I ran into a problem when using internal links - i am using this on iOS devices.
I enter URLs like “/lovelace/card-name” as values.
Every time i click them the companion app goes in the background and then opens the link correctly.
But i have to put the app to the foreground manually again - which renders this quite “uncomfortable”.
The action is marked as “foreground” and i tried several combinations with always the same outcome.
Any hint?
The most common use case would likely be to call these notifications from within other automations; a script seems the most straightforward way of doing this.
very true… I think this is not a script blueprint because these didnt exist when I made this? Not sure anymore. Anyway I think I will rework this any way and update.
Hi, I can’t get it to work with the script.
If I run the script, the notification comes, I select the option but it doesn’t run the second script.
This is my code:
Mhhh… this is indeed in the documentation, but I am quite sure that this was not possible when I designed the blueprint. I want to update this in the next few days because it is quite old now. Sorry for the inconvenience.
One other oddity: When I was testing this, I set up General Options but kept all 10 Actions off.
When I ran it, I successfully got my message. However, according to the Trace it was still “Waiting on 10 triggers”. Shouldn’t this only happen if Actions are utilized?
The reason this is an issue is that the script mode is SINGLE by default. It meant that subsequent runs of the test did not work, and this was initially puzzling.
A very minor issue that’s easily fixed at the script level, but wanted to pass this along as well.
Another addition to both the automation and script blueprint would be to implement grouping as well. As you aim to be a full implementation of all options, maybe tagging would be cool too.