action on mqtt connection/disconnection

action on mqtt connection/disconnection

Hello! How to trigger an action / change a widget properties based on the device mqtt conection status?
In the live data is possible to see this information but i didn't find how to use this information to check the device status. For me it's a important point/feature that will made me choose or not tagoio platform for my current development.

B.R