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 👇
🏆 5 beers
Andy
Kenneth Henderick
Someone
and other heroes
🥈 3 beers
Sven
Martijn
John Woertman
and other heroes
🥉 2 beers
Grosi001
ryhaberecht
Tizian
⭐ 1 beers
Thomas
@hengelha
speedmops
and other heroes
