Skip to content

andreadegiovine/homeassistant-restore-persistent-notifications

Repository files navigation

HomeAssistant - Restore Persistent Notification

Active installations
Last version

This integration use the HomeAssistant core to store persistent notifications in a sensor entity, when the system is rebooted the persistent notifications are restored.

Features

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 -->')) }}
...

Installation

Using HACS
  1. Go to HACS section;
  2. Search and install Restore Persistent Notification from the HACS integration list;
  3. Add this integration from the Home Assistant integrations.
Manually
  1. Download this repository;
  2. Copy the directory custom_components/restore_persistent_notifications on your Home Assistant config/custom_components/restore_persistent_notifications;
  3. Restart HomeAssistant;
  4. Add this integration from the Home Assistant integrations.

Support the project

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

Want to join the Club?

"Buy Me A Coffee"
ko-fi