Skip to content

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 👇

🏆 MONTHLY BEERS
Harald

🥈 10 BEERS
Rüdiger
Andrea Donno
Fabian

🥉 5 BEERS
Someone
Dieter
SA Energy
and other heroes

⭐ 3 BEERS
Hubert
Someone
Mark
and other heroes

⭐ 2 BEERS
Liam
Kristian
Dave
and other heroes

⭐ 1 BEERS
Someone
lmz
Someone
and other heroes

Want to join the Club?

"Buy Me A Coffee"
ko-fi

About

Restore the Persistent notifications after a HomeAssistant reboot

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages