If you want to enable Home Assistant persistent notifications this article is for you.

You can use notifications in Home Assistant for many different things. For example: to silently logging events, to show notifications on the Home Assistant web interface, or to inform you about state changes in your smart home, or even to display emergency messages that includes pictures from security cameras.

Home Assistant Persistent Notifications

Home Assistant support wide variety of platforms for notifications and I’m going to show you in the video above how-to configure and use persistent web notifications.

The persistent notifications can be used to show a notification on the front-end that has to be dismissed by the user. Just like on the screenshot below:

Home Assistant Persistent Notifications
Home Assistant Persistent Notifications

In the video I will also show you how to create an automation that will monitor for state changes of the Presence Sensor and when that happens a persistent web notification will be created

To complete this tutorial you will need:

  1. Working Home Assistant!
  2. A smashed Subscribe button on my YouTube channel!

If you don’t have Home Assistant yet you can read my article and watch my video – here

On the other hand, you can find a pretty good documentation with examples if you go to the Home Assistant home page.

Of course you can search for “Persistent” in the integration section or you can directly hit the following link – https://www.home-assistant.io/integrations/persistent_notification/

Try it yourself

Choose the Services tab from the Developer Tools sidebar item, then select the “persistent_notification.create” service from the “Service” dropdown. Enter something like the following JSON message into the Service Data field:

  "notification_id": "1234", 
  "title": "Subscribe to Kiril's YouTube channel", 
  "message": "And don't forget to hit the Like button" 

and press the CALL SERVICE button.

To automatically create notifications when a Presence sensor is updated you can use Home Assistant automation. This is my configuration example below that I also used in my video. You have to put these lines in your Automation.yaml file of your Home Assistant installation.

 - id: '1571544830794' 
  alias: I'm home 
  description: '' 
  - entity_id: person.kiril 
    from: away 
    platform: state 
    to: home 
  condition: [] 
  - data: 
      message: "and smash the notfication bell" 
      title: Hit the subscribe button 
    service: persistent_notification.create 


Most importantly, any sort of engagement on my YouTube channel does really help out a lot with the YouTube algorithm, so make sure you hit the Subscribe, Like and Bell buttons If you enjoy this post & video.

Also feel free to add me on Instagram, Snapchat and Twitter by searching for KPeyanski username. I post there (Twitter) pretty much daily.

I really hope that you manage to follow the steps in this video till the end and you have working Home-Assistant notifications at the moment.

Don’t forget to subscribe to my newsletter here – https://peyanski.com/newsletter/

Stay safe and see you next time.


Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *