Persistant Android notification?

I was wondering if there is a way to make a non-dismissable Android notification? Our horse fences power is controlled by a switch, and often we need to turn the power off, and it would be nice to have a notification on your phone that stays there untill the switch is turned back on.

Is this possible ?

Not sure if that is what you’re asking, but you can create a persistent notification with, e.g.

  - service: persistent_notification.create
      message: CLOUD error !
      notification_id: cloud_error
      title: CLOUD has an issue 😨

and dismiss it with

    - service: persistent_notification.dismiss
        notification_id: cloud_error

And that reflects through the companion app (IIRC)