This integration use the HomeAssistant core to store persistent notifications in a sensor entity, when the system is rebooted the persistent notifications are restored.
Persistent notifications are saved when the following actions are triggered:
- persistent_notification.create
- persistent_notification.dismiss
- persistent_notification.dismiss_all
- notify.persistent_notification
When a persistent notification is retrieved, the following suffix is added after the message body:
<!--- restored -->The added suffix will not be shown in the HomeAssistant persistent notifications panel, but it is useful for automations or other operations such as:
...
- condition: template
value_template: |-
{{ not (notify_message is search('<!--- restored -->')) }}
...Using HACS
- Go to HACS section;
- Search and install Restore Persistent Notification from the HACS integration list;
- Add this integration from the Home Assistant integrations.
Manually
- Download this repository;
- Copy the directory custom_components/restore_persistent_notifications on your Home Assistant config/custom_components/restore_persistent_notifications;
- Restart HomeAssistant;
- Add this integration from the Home Assistant integrations.
The latest heroes who believe in this project 👇
🏆 10 BEERS
Andrea Donno
Fabian
🥈 5 BEERS
Dieter
SA Energy
Phil S
and other heroes
🥉 3 BEERS
SupaChris
DrBrochmann
Jeroen
and other heroes
⭐ 2 BEERS
Dave
Somebody
mggevaer
and other heroes
⭐ 1 BEERS
Someone
MR
Christof
and other heroes
