Skip to content

v2.20.0-beta1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Dec 14:14
· 14 commits to main since this release
Immutable release. Only release title and notes can be modified.

✨ Enhancements

  • Media: media can be a list, for more than one image in a notification, such as a close-up of a number plate, a recognised face, or another camera's view of the same visit. Each item has all the same choices as a single media section, which is the same as a list of one. The first item is the notification's own image, and Email attaches the others after it, in list order, while Mobile Push and the other transports send only the first, so what a phone shows doesn't change. A scenario's single media section overrides the notification's own image as before, while a scenario's list is added to the end of the notification's. Only the first item is compared for duplicates (#348), see More Than One Image
  • Media: crop crops an image, given as [x1, y1, x2, y2] in its own pixels, widened a little and enlarged if small, and desc describes it, as its caption and alternative text in Email. Where a delivery such as Mobile Push would pass snapshot_url on for the phone to fetch, a cropped image is fetched by Home Assistant and served from the media URL instead. A snapshot_image_path isn't cropped, see Cropping and Captions
  • Deliveries: websocket commands for a delivery editor on a dashboard, for administrators only, with the YAML still the one place deliveries are kept and still editable by hand. supernotify/delivery/get reads the deliveries as written, keeping templates, !secret, !env_var and !include as they are rather than resolving them, supernotify/delivery/validate checks them as at startup, and supernotify/delivery/save rewrites only the deliveries that changed, leaving comments in between alone, then reloads Supernotify. A save is refused if the file was changed since it was read, the file is backed up first, keeping the last 5 in supernotify/backups in the config folder, and if the new file doesn't load, the old one is put back. Deliveries spread over files with !include_dir_*, written in flow style, or using anchors, can be read but not saved (#337), contributed by @lollox80

🐛 Bug fixes

  • Actions: the supernotify.* actions, such as supernotify.notify and supernotify.snooze, are there from when Home Assistant starts, rather than only once Supernotify has loaded, so an automation using them no longer fails to validate while it starts, or if it failed to start. Until it has loaded, they say so with an error. Home Assistant's action-setup rule, needed for its Bronze quality level

📝 Other changes

  • Quality: Supernotify now meets every rule of Home Assistant's Integration Quality Scale up to Platinum, self-assessed, see quality_scale.yaml. The last were the actions being there from startup, the entities and troubleshooting documentation, and strict type checking with Home Assistant's own settings

📚 Documentation

  • The Seasonal Greetings recipe has a Christmas package, a single file to copy, with the days, doorbell tune and greeting then set from the Home Assistant UI
  • A page on Supernotify's entities, what each does and when it updates, and common problems on the Troubleshooting page, each with its cause and fix

What's Changed

  • README: quality scale badge (Silver, self-assessed) by @jeyrb in #343
  • docs: pin the left nav from 960px wide, with a button to hide it by @jeyrb in #344
  • fix: register supernotify.* actions in async_setup (quality scale action-setup) by @jeyrb in #345
  • docs: entities page and common problems (quality scale Gold docs rules) by @jeyrb in #346
  • feat: strict type checking with Home Assistant's settings, Platinum quality scale by @jeyrb in #347
  • Bump astral-sh/setup-uv from 10.3.3 to 10.4.0 in the astral group by @dependabot[bot] in #350
  • Bump the actions group with 5 updates by @dependabot[bot] in #351
  • Bump home-assistant/actions/hassfest from 86d4564712fa02543c808e3a693dd04f9d3f8361 to 9e9565e68f5a70d874202871f4c4064d23814235 by @dependabot[bot] in #352
  • feat: websocket API for a YAML round-trip delivery editor (#337) by @lollox80 in #353
  • feat: media as a list, for more than one image, with crop and desc (#… by @jeyrb in #356

Full Changelog: v2.19.1...v2.20.0-beta1