I don’t understand the discussion .
It’s Home Assistant, so automate it.
Thanks @jaaem for the automation.
I modified it a bit to rule all pwned notifications.
- alias: persistent_notification_clear_pwned
mode: parallel
trigger:
- platform: event
event_type: call_service
event_data:
domain: persistent_notification
service: create
condition:
- condition: template
value_template: >
{{ 'supervisor_issue_pwned' in trigger.event.data.service_data.notification_id }}
action:
- service: persistent_notification.dismiss
data:
notification_id: >
{{ trigger.event.data.service_data.notification_id }}
# Remove this after testing :-)
- service: persistent_notification.create
data:
title: Dismissed notification
message: >
{{ trigger.event.data.service_data.notification_id }}