I’m looking to display all notifications which are sent to my mobile on the dashboard, I don’t need them to be actionable or anything like that just displayed in a card.
It would be good if they had the time and date sent, and possibly be able to dismiss them individually.
1 Like
I use persistent notifications for this very purpose. The bonus is that I don’t have to clutter up my dashboard with another card and the notifications stay around as long as I need them to.
Yes, this would be perfect. How did you get this to work with the notifications sent to your mobile.
In my automations and scripts, I just add a call to persistent_notification.create
and have it mirror what was sent to my mobile. I keep meaning to make that bit into a script, but I haven’t gotten around to it yet.
Ahh brill thanks @code-in-progress. Just got to update all my notifications now 
1 Like
Anytime, happy to help.
Be smart! Create a script (I say as I STILL need to do that lol)… 
I am also using the persistant notification, but is there a way to display it on a dashboard (for example missed calls) instead of in the “notificaihons” menu on the left side of HA ?
Many thanks !
Coming back to this, and asking again, in case someone can answer … is there a way to “copy” a persistant notification to any card on a dashboard ?
For the moment I am getting the notifications in the persistant notification menu on the left … would like to have them as well on a dashboard …
Many thanks !!
I created a new way of doing this
First I use this integration to create a variable
enkama/hass-variables: Home Assistant variables component
Defined the variable as sensor.messages with the attribute history_1
then I created an automation to copy the notification into the attribute
alias: Benachrichtigungen
description: ""
triggers:
- event_type: call_service
event_data:
domain: persistent_notification
service: create
trigger: event
conditions: []
actions:
- action: variable.update_sensor
target:
entity_id: sensor.messages
data:
replace_attributes: false
value: Nachricht
attributes:
history_1: >-
{{ states.sensor.messages.attributes.history_1 }}
{{ now().strftime('%Y-%m-%d %H:%M:%S') }} - {{
trigger.event.data.service_data.title }}: {{
trigger.event.data.service_data.message }}
then I have a markdown card which shows the attribute
type: markdown
content: "{{ states.sensor.messages.attributes.history_1 }}"
and a script to clean it again
sequence:
- action: variable.update_sensor
target:
entity_id: sensor.messages
data:
replace_attributes: false
value: " "
attributes:
history_1: " "
- action: script.notify_clean_messages
metadata: {}
data: {}
alias: Benachrichtigungen leern
description: ""
I finally did it a bit differently.
I am writing the message I want in a text helper :
- action: input_text.set_value
metadata: {}
data:
value: |
{{ now().strftime('%d/%m/%Y %H:%M:%S') }} : {{ Réponse.text }}
target:
entity_id: input_text.generative_ai_doorbel
Then displaying this helper in a markdown card on the dashboard :
- type: markdown
content: |-
<center>
{{ states('input_text.generative_ai_doorbel') }}
card_mod:
style: |
ha-card {
background: transparent;
border-radius: 10px;
}
It does the job 