Skip to content

v2.20.0-beta2

Pre-release
Pre-release

Choose a tag to compare

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

✨ Enhancements

Media

  • Can now supply a list of media items rather a single image.
    • Supports camera-autonotify new feature to get close-up of a number plate.
    • Could also be used for 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.
    • First item is the primary, and used for all notifications
    • Email transport is able to handle multiple attachments, so will use all supplied
      • Attached in list order
      • 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
  • New crop option to attach a rectangle cropped out of image
    • Given as [x1, y1, x2, y2] in its own pixels, widened a little and enlarged if small
    • 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
  • New desc option to describe images, as its caption and alternative text in Email.

Delivery Editing

  • New websocket commands for a delivery editor on a dashboard (administrators only)
    • YAML remains the one place where 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
    • 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
    • Implemented by (#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

  • Project standards: fix-spaces, gitleaks prek hooks by @jeyrb in #358
  • bandit: mark the SafeLoader yaml.load as safe (B506) by @jeyrb in #359
  • Commit package-lock.json, with the shared .npmrc cooldown by @jeyrb in #360
  • feat: log the deliveries each scenario switches on at startup by @jeyrb in #361

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