Version: 1.3 - 28 July-24 - Added collapsible sections, different confirmation messages for action buttons, and notification options for iOS and Android.
Version: 1.2 - 4 Jan-24 - Fixed a bug in “Start Trigger - Numeric State Above Option”.
Version: 1.1 - 12 Sep-23 - Added numeric state triggers, time delay & global conditions.
Added numeric state to start and end triggers. You can now select above and below values. Example: You could have a temperature sensor in your bedroom and when the temperature rises above your set value it will send you a message. You then can have 3 action buttons + cancel button to:
Close the blinds.
Turn The Fan ON
Close the blinds and turn the fan ON
Cancel do nothing
Added time delay to start and end triggers. The state trigger will only fire if the state holds for the set time delay. This helps to stop false triggers. Example: If you are using “unavailable” state sometime it can be “unavailable” for a few seconds to a few minutes and then go back online, or the temp in you bedroom must be above your set value for the time delay before the automation will fire.
Global conditions. You can now enter any global condition you would like to apply to the automation. Example; You could have motion sensors in your home. Then you could set a condition to only run when no one is home. If you detect motion it will send you a message. You then could have action buttons to
“Sound The Alarm” an play a voice recording “the Police have been called and are on their way”.
“Sound The Alarm”, turn on sensor light by-pass “Alarm” and strobe the lights for 10 minutes.
“Cancel do nothing”
Or you could have an Office with motion sensors & CCTV. You could set a time condition to only run out of hours. If motion is detected it can send you a message with 3 action buttons + cancel button to what you like.
There a lot things this blueprint can now do. Hope you find it useful
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
One minor bug in this that should be pretty easy to fix in the next release - when you create a blank automation using this Blueprint, the field for Start Trigger - Numeric State Above Option is instead of 0 like the other triggers. This causes an error when you try to save the automation unless you manually put a 0 (or other value) into the box. All the other boxes populate with a 0 value so if they are unused, the automation will save. Not a major issue, but definitely confused me for a bit when I wasn’t using those fields.
My notifications are a quick basic way. There are other blueprints that dig deeper into notifications. Must say I haven’t looked at it just because I dont need that blueprint but I know it is very active and the developer @SgtBatten supports it well so if that suits you better maybe try using it and ask the developer of that blueprint.
If you would like more complex way in your notifications I have seen @samuelthng blueprint. It creates a script with heaps of options you can have in a realy nice layed out way. Once you create a script with this blueprint you can use it in this blueprint in the custom action. In your action select call service / scripts: Turn on and select your script. That just may help you do what your looking for. Link to it is below.
Fixed a bug in “Start Trigger - Numeric State Above Option” where a defaul value was not set preventing you from saving the blueprint if nothing was selected. Thanks @jsp196 for giving us the heads up.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Question now that I’m going to use this for more things - I currently run HASS.Agent on a desktop computer. I can call the notify.computername service using the same format as the iOS app. It also supports actionable notifications. But this device does not show up in the picker of this blueprint for Start Notify - Devices To Notify. Is there a way to allow all notify-capable devices to work? I could see an instance where I would want my Alexa to say something or another device to receive the notification. Currently it only lists devices that are included in the Mobile App integration. Thanks!
I haven’t tested it but you could try to copy tour entity of the device you would like to otify then enter in mobile phone / then edit the automation in YAML (top right 3 dots) / the paste your entity replacing the mobile phone and save. Your device should be there.
One thing I think is missing is the ability to set the notification persistent and be able to dismiss from an action button.
I have this template binary_sensor that goes ON on specific trigger and can be reset from the press of an input_button. If I could present a persistent notification on my mobile device while binary sensor is in ON state and add an action to press the input_button (which subsequently sets back the binary_sensor to OFF), it would be perfect for my use case.
Error in ‘State Notifications & Actions’ trigger: In ‘numeric_state’ condition: entity switch.lazienka_switch state ‘on’ cannot be processed as a number