Persistent notification inside alert section

Hello! Someone know if inside the notify section is it possible to add a persistent notification???
(without create an automation related to this alert…)

f.e.:

  battery:
    name: Battery is Low
    entity_id: binary_sensor.alarm_battery
    repeat: 5
    notifiers:
      - fra_phone
      HERE I WOULD ADD A PERSISTENT NOTIFICATION

Thanks a lot

Kind of. Alerts only take ‘notify’ components. persistent_notificaiton is not a notify component.

But, you can create a notify.restful to generate persistent notifications for you.

Just copy what they did. Create the restful notify component that simply writes to persistent_notification and use that in your alert list.

thanks a lot man!!!

From that topic it looks like you wont have to use that method once 0.118 is released:

1 Like

hi! i’m using 0.116 in this moment…
could you explaine to me the changes/implemenation??

thanks a lot

When 0.118 is released it is very likely that persistent notifications will be used exactly like any other notify service. So no need for the work-around.

thanks a lot!

Hi,
Is this implemented yet? I can’t seem to use it:

- platform: persistent_notification 
  name: browser_notification

throws me an error:

Platform error notify.persistent_notification - No module named 'homeassistant.components.persistent_notification.notify'