core: Notifications created by notify.persistent_notification can't be dismissed programmatically as they lack a notification_id
The problem
The notification platform notify.persistent_notification
doesn’t accept notification_id
similar to how the service persistent_notification.create
does. This means that you can not dismiss specific notifications reliably or at all via persistent_notification.dismiss
which accepts a notification_id
in order to know which notification to dismiss.
It also appears that no documentation was added for notify.persistent_notification
.
In particular, I need this feature because I’m trying to use notify.persistent_notification
with alert
’s.
What version of Home Assistant Core has the issue?
core-2022.3.7
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Persistent Notification
Link to integration documentation on our website
https://www.home-assistant.io/integrations/persistent_notification/
Anything in the logs that might be useful for us?
When attempting to call the services with a notification_id
:
Failed to call service notify.persistent_notification. extra keys not allowed @ data['notification_id']. Got None
Additional information
A relevant PR is https://github.com/home-assistant/core/pull/40638.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 16 (9 by maintainers)
Still valid and waiting PR #74822.
Still valid and waiting PR #74822.
Yeah, it never got reviewed, because I had left it in draft pending writing documentation. Then I was busy for a while, including being on vacation, and it managed to get closed. I’ve done the documentation, and recreated the Pull request as #74822 now, this time not as a draft, so it should be ok this time.