Create a pop-up alert for user in dashboards

Hello,

I am trying to create a pop up alert for the user in the top of a dashboard. It appears when a property called “state” of a device changes. Is it possible to do that? If the answer is yes, how could I do that? Is there any example?

Thank you so much!