Skip to content

Latest commit

 

History

History
87 lines (69 loc) · 2.64 KB

File metadata and controls

87 lines (69 loc) · 2.64 KB

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

⭐ 4 BEERS
Al

⭐ 3 BEERS
Hubert
Someone
Mark
and other heroes

⭐ 2 BEERS
Ludvik
Liam
Kristian
and other heroes

⭐ 1 BEERS
Someone
RapH
elektrofc@gmx.de
and other heroes

Want to join the Club?

"Buy Me A Coffee"
ko-fi