🐛 Bug fixes
titlewas missing as a top level field in the archived notification, now appears next tomessagefields at the top- Unrecognized scenarios now only logged as warnings if they are
require_scenarios, otherwise logged at debug level. This makes it easier to auto generate scenarios from other components or automations and not have lots of log noise - A blank
targetorcustom_target, as an emptied field in the action's UI editor leaves behind, is now ignored. It was taken as an explicit target, so the default recipients were not used and nothing was delivered - A
targetmapping with an invalid value, such as a mistypedentity_id, is now refused with the validation error. It was silently turned into a list of its keys, so the notification went to a target calledentity_id - An empty list in YAML for targets is now explicitly handled, and treated as selecting no targets, and no default recipient targets. The notification will only be handled by deliveries that don't require targets, or where delivery or scenario configurations inject their own targets.
✨ Enhancements
Mobile Actions
- An action with
level: notificationis what opens when the notification itself is tapped or clicked. It needs aurioruri_template, and can be in theactionsof a notification or in an action group- Mobile Push sends it as
urlfor iOS andclickActionfor Android, and ntfy, Gotify and HTML5 as their click url - An explicit
url,clickAction,ntfy_click,gotify_clickorhtml5_urlwins over it - Where there's more than one, the action on the notification wins, then its action groups, then the first scenario
- Mobile Push sends it as
uri_templatecan be used for an action in an action group, asaction_templateandtitle_templatecancamerais a new variable for conditions and templates, with theentity_idof the notification's camera and anything configured for it undercameras:, such ascamera.aliasaction_template,title_templateanduri_templateare now rendered, with the same variables as scenario conditions. They were accepted but previously sent as they were as raw templates.
📝 Other changes
links:section of YAML that was never implemented now completely ignored.- The intended function of links has been subsumed some time ago into the mobile actions, which are now available for any transport. Mobile actions can be defined with only a URI.
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #280
- Move CodeQL to advanced setup to ignore generated diagram pages by @jeyrb in #281
Full Changelog: v2.14.0...v2.15.0