Github Link
Hello, this is yet another blueprint script for notifications.
Inspiration:
- Need simple way to create confirmable notifications.
- There’s confirmable notifications, but did not have timeout actions.
- Focus was to add timeout feature - wait for X duration for response.
- Upon timeout, run other actions or dismiss notification.
- Make it easier to create multistep notification automations.
Notes:
- Use at your own risk, no guarantees provided; it’s my first publicly shared blueprint.
- Tag required for some features, any unique string will do the trick.
See notifications docs for details.
Version: 1.4
Forked from Home Assistant’s Confirmable Notifications
Features:
-
Sends a notification to a device with companion app installed.
-
First Action button with custom label and action
-
Second Action button with custom label and action
-
Timeout options with custom duration if no action response received.
-
Automatically dismiss notification if no response received after timeout.
Example usage:
When the last user leaves home, send a notification to last user:
Example
- Title:
My Awesome Home
- Message:
Turning off lights and appliances in 5 minutes
- First Action Text:
Leave it on
- First Action Action:
Do nothing
- Second Action Text:
Turn off now
- Second Action Action:
Run turn off script
- Timeout Duration:
5 minutes
- Timeout Action:
Run turn off script
- Clear on Timeout:
Clear Notification
Other examples:
Changelog
Version 1.4 - 7 Jul 2023
- Reverted: Send clear notification command - for iOS compatibility.
- Added:
subtitle
,group
,visibility
. - Refactor:
tag
is no longer recommended, will useentity_id
by default. - Fixed: During a timeout, the script throws error into logs due to checking attribs of
None
type.
Version 1.3.2 - 28 Jun 2023
Changelog
-
Added:
Action Icons
- iOS Only
- Thanks @ChrisMancini - Fixed: Missing default values for a couple of inputs
- Updated: Input description style
Known Issues:
- iOS Notifications do not respect
Clear after Timeout
, issue since version 1.3, slated for fix in version 1.4 (Mid July) - Scripts created from blueprint always defaults to
mode: single
, bug raised with Home Assistant and fixed, hopefully this will be resolved in future releases.
Update your instances manually if you’re facing any issues with sending multiple notifications within your timeout duration.
Version 1.3.1 - 10 Jun 2023
Changelog
- Fixed:
Enable Icon Color
- Updated:
Icon Color
hex template
Version 1.3 - 9 Jun 2023
Changelog
- Fixed: Incorrect property used for timeout enablement.
- Added: Icon Color picker -
Breaking Change
- Added: Notification Link - set a redirection link when you tap on the notification.
- Added: Device side notification clearing - clearing notifications will no longer get stuck!
Again, thanks to joe.cole1 for the insights in this minor release.
Also, thanks to RemyyB for identifying the incorrect variable and raising a PR, sorry for taking a week to fix this.
( Color picker is easy enough to configure, so it shouldn’t be absolutely breaking to warrant a major)
Version 1.2 - 30 May 2023
Changelog
- Added:
Icon
andIcon color
(Android Only) - Huge thanks to joe.cole1 - Added:
Enable Timeout
, controls command response timeout feature - Again, huge thanks to joe.cole1 for the insight
Version 1.1 - 25 March 2023
Changelog
- Updated:
Clear on Timeout
as boolean field - Fixed:
Persistent
notifications not working - Fixed:
Clear on Timeout
did not clear if a timeout happened
Version 1.0 - 24 March 2023
Changelog
- Initial Release