šŸ“ State Notifications & Actions

@ajcletus500

When an automation is triggered it is normally by an entity. So you can have multiple entity and then know what entity triggered the automation. Example you may have all your window sensor added in. Then if the automation is triggered you can say Family room window is open!. This is the FAQ for this click here

But your question was, ’ is possible to list multiple entities in a single notification’… i am not sure / understand the question and what your doing.

Blacky :grinning:

this BP can have multiple entities for the trigger… it will trigger immediately when one of them occurs. Thus, that run of the automation only knows about that one trigger, and will send info based on that one trigger (not all of the entities you have that -could- trigger it)

So, if you want to send a notification with an Entity List (example: a list of all open windows) you have multiple options…

  1. create a Template that creates the full logic and notification itself, place in Actions section of the BP
  2. create a Script, then call the script from any Action in any Automation.
  3. create an Automation (aka, a script with a trigger built-in) and call it from any Action in any Automation or use the trigger itself (any trigger you define)

#3 is the most flexible option and my favorite since its more visible and usable IMO.

Also, for #3, you can call automations created by other blueprints… like ā€œRepeating Notification Alertsā€ so you can set a repeat pattern for things like doors, windows, garages, etc… so you get ā€˜reminders’.

I would also love to have recurring notifications and the possibility to send them to notification groups.
Now i use Alerts for this, but I would rather have the logic in automations for better control (and stop having to restart HA with every change)
@Blacky would you consider adding this to this great Blueprint?

Looking to see if there is a way that I’m setting this up wrong. I want to get a notification when my garage door is open for so many minutes and have an action to close. If use the actual opener device and use the ā€œONā€ or ā€œOFFā€ trigger in this blueprint, it never sends a notification. However, if I create a separate automation using a helper binary input and use the helper with this blueprint, it works great–has anyone else gotten a garage door opener to work with this automation? I’m a relatively new HA user, but I feel like I’m doing something wrong!

@PaNiCo

Yes I have recurring on my list to do…

Blacky :grinning:

@brenthaag

You will need a contact sensor so HA knows when the door is closed (contact sensor together) then you would use that sensor in the automation. Some people call them door / window sensors.

Blacky :grinning:

1 Like

@Blacky another amazing blueprint! love your work. One quick question, is there any way to set a url in the notification so that I can open a particular dashboard/view when I click on the notification?

Eg: Opening a URL

@lennon101

Currently that is not supported.

Blacky :grinning:

Hello, I am a big fan of this blueprint and I have a request: Would it be possible to implement a ā€˜Notification Tag’ when you get a chance?

@Mike.Hellracer

Already on my list to do… Thanks for your suggestion.

Blacky :grinning:

New Update 1.7

State Your Trigger: Turn State Changes Into Notifications and Actions! :rocket:

New Feature :new:

Start & End Notify

Notification Tags - Use a tag to keep your notifications organized. When a new notification with the same tag is sent, it replaces the old one, preventing clutter from multiple notifications for the same appliance.

Notification Icon & Icon Colour - Android Only - This allows you to replace the default Home Assistant icon with one of your choice and set the colour for Start Notify, End Notify, or Watchdog.

If you like this blueprint? Consider hitting the :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

I don’t know if it’s due to our Redmi 12 and 14 smartphones, but the action buttons 1, 2, and 3 are displayed, but the cancel button is missing. If I omit 3, for example, it appears… no matter how long the text is.

@zumheulen

I tested this with both an iPhone and an older Samsung device:

  1. On iPhone, all 4 buttons are displayed. (Apple allows up to 10 actions, though they may appear in a grouped menu rather than all as visible buttons.)
  2. On Samsung (Android), only 3 buttons are displayed. This is due to an Android limitation… notifications can only show up to 3 action buttons.

So if you’re using Android, keep in mind you’ll only see the first three actions, while iOS has more flexibility.

Blacky :grinning:

I’d like to be notified when my freezer is too warm and show the current temperature. Can your blueprint show the current temp in the notification?

@jwelvaert

Yes, you can see the value it was when triggered. Put this into the message.

The freezer temp is {{ trigger.to_state.state }}°C

I also use a 15 min delay in the trigger Time Delay to stop a false triggers.

Blacky :grinning:

Do I need to adjust that template with my sensor info? My sensor is:
sensor.garage_freezer_sensor_air_temperature

Nope because we are looking at the trigger. Your sensor.garage_freezer_sensor_air_temperature must be the trigger.

Blacky :grinning:

Hey, is anyone else seeing timer issue with the blueprint??

I want my action to start or change a timers duration. When doing so via the blueprint action button, it resets the timer to the max timer duration rather then the duration specified in the action.

I can’t quite pin down this issue but it only seems to occur in the Blueprint, normal automation action works fine.

I even tried having the action run the functioning automation with no success.

Any ideas what is causing this?

@jherden84

Could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on ā€œ</>ā€ and paste code in there.

Blacky :grinning:

Hi! Thanks for your blueprints, they’re awesome!

I have an issue, my action buttons don’t work.

I have action button 1 set up to open an url on my phone, but it does nothing, it simply closes the notification.

But this same action, if i turn on auto action, it works (not the button, but the auto action), so when the trigger is triggered, my url opens on my phone.

I’m sorry i didn’t read all the thread, but i’m pulling my hair, i can’t make it work.

Note that the same action button works with your battery notification blueprint