You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
A routing table in the options: people (their notify services, their silence
entities, their wake time) and targets (identifier, name, importance by
default, watched alert.*, audience, presence rule, acknowledgement, snooze
durations, default data, observer mode).
notify.switchboard, plus one notify.switchboard_<slug> per target, so an alert: can name its target in notifiers:.
Routing decides per person: audience, presence rule, silence, running snooze,
a critical bypass and a refusal to call itself. Every drop carries a reason.
Companion buttons: Acknowledge when the target watches an alert and allows
it, and one Snooze n per configured duration. Acknowledging turns the
alert off; a snooze survives a restart.
Night deferral: a message that arrives while somebody is silenced is set aside
and delivered at their wake time, correctly across midnight and across a
daylight-saving change. One that came due while Home Assistant was down goes
out at the next start, not a day later.
Observer mode: watch a target's alert.* and route on its transitions without
being listed in its notifiers:.
Entities: binary_sensor.<person>_silenced, sensor.<person>_last_notification, sensor.<person>_active_snoozes, sensor.switchboard_routed_today, sensor.switchboard_dropped_today (with a reasons attribute), sensor.switchboard_deferred_today and event.switchboard_delivery. The counters reset at local midnight.
Warnings for an unknown target and for an output that has been unusable —
missing, or failing on every call — more than three times in a row.
A diagnostics dump with message bodies and every default-data value redacted,
plus the routing table, the snoozes, the deferrals and the last twenty
decisions.
Interface, warnings and button labels in English, French and Spanish.
Changed
The notify.switchboard entity is the degraded path: it routes to the target
used by default, with normal importance.
Upgrading from 0.0.1 reuses notify.switchboard instead of leaving an
unavailable entity beside a new notify.switchboard_2. Nothing to do by hand.