github rhizomatics/supernotify v2.15.0

4 hours ago

🐛 Bug fixes

  • title was missing as a top level field in the archived notification, now appears next to message fields 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 target or custom_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 target mapping with an invalid value, such as a mistyped entity_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 called entity_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: notification is what opens when the notification itself is tapped or clicked. It needs a uri or uri_template, and can be in the actions of a notification or in an action group
    • Mobile Push sends it as url for iOS and clickAction for Android, and ntfy, Gotify and HTML5 as their click url
    • An explicit url, clickAction, ntfy_click, gotify_click or html5_url wins over it
    • Where there's more than one, the action on the notification wins, then its action groups, then the first scenario
  • uri_template can be used for an action in an action group, as action_template and title_template can
  • camera is a new variable for conditions and templates, with the entity_id of the notification's camera and anything configured for it under cameras:, such as camera.alias
  • action_template, title_template and uri_template are 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

Don't miss a new supernotify release

NewReleases is sending notifications on new releases.