dep: Home Assistant.
This notification setup is in constant development and each iteration addresses a previous issue or improvement.
TLDR; We can use a switch to control the delivery of home assistant notifications to individual devices.
This setup allows for a multiple devices. Each device requires the creation of a virtual switch (input_boolean) that can be toggled from a dashboard widget, companion app action or iOS Shortcut.

There are 2 HA scripts, ‘regular_notification’ and ‘send_critical_notification’.

send_critical_notifications takes as arguments ‘title’ and ‘message’ and passes them along to ‘regular_notification’ script along the ‘critical’ and ‘volume’ parameters. Critical notifications are for Things that demand attention: Alarms, leaks, etc…
regular_notifications checks if the virtual switch for a device is on and it sends the notification defaulting to 0 if values are missing, does nothing if its off. This needs to be repeated for each device.
Triggers.
If an automation needs to send a notification, just calls the ‘regular_notification’ script with data parameters ‘title’ and ‘message’. if the device switch is on it will get the notifications.
It works in two levels, regular and critical notifications.
Leave a comment