šŸ“ State Notifications & Actions

New Update 1.5

:warning: Some work is required with this update, so ensure you have time to edit your YAML files. The process is straightforward. Please see below for instructions on what to do.

:new: New Feature - Start and End Triggers

  • Triggers - Weā€™ve updated the start and end triggers for several reasons:

    1. Fixed an error log that required a new input.
    2. Added more trigger options, including button-triggered actions.
    3. Simplified usage with dropdown selections for trigger states, reducing errors.
    4. Improved layout for start and end triggers.
    5. Enhanced input descriptions for easier code management.
    6. Ensured continuity with other blueprints for a consistent experience.

:warning: :stethoscope: STEPS REQUIRED WHEN UPGRADING :white_check_mark:

If youā€™re unsure or uncomfortable with editing, you can delete your old automations and recreate them. However, if youā€™re confident with editing a bit of code, follow the steps below.

Best to record your settings by taking a screenshot or writing them down before updating the blueprint. We are only focusing on the trigger section.

  1. Navigate to Settings > Automation > Filters (top right) > Blueprints and select the State Notifications & Actions blueprint. This will display a list of automations using this blueprint.

    For each automation, click the three dots in the top right and select ā€œEdit in YAMLā€. Look for the following lines of code. If you donā€™t see these lines, you may not have selected the options, and the code might not be visible. Itā€™s okay if you canā€™t find all the lines.

    • entity_a_trigger:
    • entity_a_state:
    • below_vale_a_state:
    • above_vale_a_state:
    • time_delay_a_state:
    • entity_b_trigger:
    • entity_b_state:
    • below_vale_b_state:
    • above_vale_b_state:
    • time_delay_b_state:

    Review these settings, and either take note of your current configurations or copy the code for reference before deleting or modifying it.

  2. Delete all the code containing the lines shown above, including your selections. You may see additional code not listed here; only delete the specified lines and avoid removing any other code. Do not click ā€œSaveā€; instead, click on the three dots and select ā€œEdit in Visual Editorā€.

  3. Re-enter your inputs for both Start Trigger and End Trigger if you used these options.

  4. Click Save, and youā€™re done :partying_face:


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:

Is it possible to delete/cancel a notification sent with this blueprint?

What I mean:
Letā€™s say I watch the state of my front door and if left open for x minutes everyone in my family receives a notification via this blueprint.
So far no problem, thatā€™s easy.
But after someone closes the front door I donā€™t need the notification still showing in all mobile phones cause there is no longer any action needed.

@Eimeel

Yes you can do it through the start actions but you will need to set up your notifications there. It also depends on iOS or Android limitations.

Blacky :smiley:

1 Like

Iā€™m migrating from Node-RED to Blueprints because of your cool blueprints, thanks for making them! I would like to have one automation to report on either a dishwasher or washing machine leak and I would like to use the entity that triggered the automation in my notification with something like {{ entity }} similar to how you can also do this with your battery blueprint. Is that possible?

Is it also possible to add a follow up action? For example, I would like to disable the power socket when the dishwasher leak sensor turns on. I canā€™t seem to find that option in the Blueprint, but Iā€™m quite new to it and donā€™t know all the extension possibilities yet.

And a small thing: there are a few typoā€™s mentioning ā€œOpionā€ instead of ā€œOptionā€ :slight_smile:

Thanks!

@TheAutomator

Your welcome.

I have a FAQ for this.

FAQ: How do I include the sensor name that triggered the automation in the message?

A: Please follow these steps Click Here

You can use either action buttons or just the action itself. However, I recommend setting up a separate automation for each leak sensor. Since itā€™s a water leak sensor, relying on action buttons could delay your response. Instead, itā€™s better to trigger the action to turn OFF the power socket immediately when a leak is detected. You can also set up an end notification to confirm the power socket is OFF or trigger any other actions you need.

Once everything is configured, make sure to perform a dry run to test and ensure it works as expected.

Edit:

I canā€™t see where this is?

Blacky :smiley:

Aaah, I see now. I have picked the Notifications & Announcement blueprint instead of this one. Apologies! Now everything is clear, thank you! The typo is also in that blueprint.

@TheAutomator

Yeah I have a few blueprints.
Thanks for the info. If you update Notifications & Announcement blueprint the typo is fixed.

Blacky :smiley:

Thanks! I am using the blueprint now for my leakage sensors. I wanted to use the End trigger == OFF to report back if the leakage is solved but on every Home Assistant restart it now triggers the end trigger. Is there a way to ignore the state change on startup? Thanks!

@TheAutomator

Nice to know you all up and runningā€¦ thanks for the heads up, I will look into this.

Blacky :smiley:

1 Like

Thanks! Yes, all up and running thanks to your great blueprints! No idea how you are able to build and maintain these mega large blueprints, props!

1 Like

@ Blacky Thank you for your blueprint, it makes things a lot easier for me!

Would it be possible to set a ā€œproximityā€ function as a trigger?

If person ā€œAā€ is on the way to ā€œZone Xā€ does the automation start?

Perhaps with adjustable meters beforehand?

Iā€™m currently working with a different blueprint and Iā€™ve got completely confused :-))

@zumheulen

I havenā€™t tested it but you would probably use option 9 as the trigger (below X) and then set your value.

Test it out see if it works and maybe let us know how you go.

Blacky :smiley:

iā€™m looking at this one or sensor light add on strictly for smoke detectors. Would either still work if i grouped the smoke detectors? and is there a way in your blueprint to get a notifi on which smoke detector caused the alarm? Iā€™ve noticed there really isnā€™t a dedicated blueprint out there for smoke detectors at all. Yours seems closest.

@RogerB1

Use this one to be notified as the Sensor Light Add ON will not notify you.

Donā€™t group them just add them in separate then in the FAQ is shows you how you can be notified on which smoke detector caused the alarm. Click Here

Blacky :smiley:

You sir are a life saver.

1 Like

I have scoured through the posts and havenā€™t seen if this blueprint is set to repeat the Start Notify for x times every x seconds. If not that would be a great addition to this blue print. Is there another blueprint that you have that would be an add-on to this one for that purpose?

Thanks,

@rhino53150

Currently the blueprint does not have a repeat option. I will put this on the list to look at, thanks for your suggestion.

Blacky :smiley:

New Update 1.6

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

:apple: New Feature For iOS

  • Notification Sound - The Home Assistant app for iOS includes built-in notification sounds, and you can import sounds from your iOS device into the app. Custom sounds can also be added via iTunes or from your cloud storage.

For more information on using sounds in the Home Assistant app, click here.

Maintenance :toolbox:

  • From time to time, Home Assistant updates their YAML standards and coding practices. To align with their roadmap, weā€™ve updated the code accordingly. We will continue to apply these updates across all our blueprints as they are revised.

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:

Hi! Is there any way to add devices to monitor through a regular expression instead of one by one? thank you!

@rmanuelroldan

Currently you have to add them one by one.

Blacky :smiley: