Repository navigation
v2.4.0
Live Scenarios
- Scenarios can now expose their state as
binary_sensor, and compute that state both reactively as underlying entities change state, or optionally with a periodic re-compute - New Scenario Control configuration added, with initial usage for controlling live scenario state
Snoozes
- Active snoozes are now persisted across Home Assistant restarts, using standard Home Assistant storage for integrations, provided by @lollox80
Camera
- Camera and image snapping now uses direct entity calls rather than Home Assistant actions and polling for results, provided by @lollox80
- The previously hard-coded max wait time to snap an image of 20 seconds is now configurable with
snap_waitin the camera configuration.- This is different from the existing
camera_delayand PTZ controls in that its not a pause. If the camera snap is instant, then thesnap_waittime will never be used, its only an allowance for cameras that are slow to snapshot.
- This is different from the existing
Diagnostics
- Integration now has a standard Home Assistant Diagnostics option, gathering info previously provided by multiple diagnostics actions, provided by @lollox80
Tracing Activities
- Fixed missing contexts on downstream actions, a consequence of relying on code from the "legacy" Home Assistant Notification platform, which throws away context
- If no
contextis passed, Supernotify creates its own, so anything that happens thereafter has a trace
Fixes
- Notification with an unavailable attachment could fail, will now proceed with or without attachment
- Two messages with same title and message but different camera entities, or media URLs for attachments, will not be considered as dupes
- Additional actions now have documented options with translations, provided by @lollox80
Technical
- The main
SuperNotificationServiceno longer inherits fromBaseNotificationClassand the latter included only as a compatibility shim to ensure current usage as a Notification sub-platform doesn't break. notify.pyslimmed down by moving main engine toengine.py, delivery/transport/people/scenario functionality out to registries, actions out toactions.pyleaving only the Notify Entity / legacy Notification platform shims out tonotify_compatibility.py
What's Changed
- feat: expose evaluated scenario state on scenario binary_sensors by @lollox80 in #171
- test: cover the diagnostics flag on enquire_last_notification by @lollox80 in #179
- Add diagnostics.py for config entry diagnostics by @lollox80 in #181
- Add strings.json/translations entries for 12 undocumented services by @lollox80 in #183
- Persist snooze/silence state across Home Assistant restarts by @lollox80 in #185
- Fetch camera and image snapshots via HA's native camera/image APIs by @lollox80 in #184
Full Changelog: v2.3.1...v2.4.0