Notification with a timeout

Dear all,
I build a remote max7219 display based on esphome and I need to send notifications that automatically disappear after a specified amount of time.
Do you have some suggestions about ?
Thank you