By default, the notification sent from home assistant stays in the notification area indefinitely, until it’s removed by the user.
Is there any way to make the notification disappear automatically after some set period of time?
Thank you
By default, the notification sent from home assistant stays in the notification area indefinitely, until it’s removed by the user.
Is there any way to make the notification disappear automatically after some set period of time?
Thank you
I found the solution.
In the end of the script, add this:
- service: notify.mobile_app_<your_phone_name>
data:
message: clear_notification
data:
tag: same as the notification action tag
Before you post a question, please make sure you read the documentation first.
Most of the times it has the required information, or even better, examples of yaml that answers the actual question.
Posting questions without even checking the documentations first is weird.
And just to clarify, the link he posted goes here:
I tried timeout, but it doesn’t work. The only thing that actually worked was the command to remove the notification
did you wait the amount of defined seconds? its working well for me.