Actually i’m trying to capture machine state using esp32 and the powerful thinger platform.
My purpose is to send from esp32 machine state that could be two values: on or off.
My esp32 is sending on & off values to Text widget in dashboard, the problem is that if esp32 loose connection or stop sending values,my dashbord hold the last value that is not the real machine state value.
My question is how can I set a default value to the dashboard that will be shown if dashboard no longer receive value from esp32 after a given time.
I think that is better the dashboard asks every minute, 30 seconds or even every second to the device the status of the variable (instead the device sent the status when changes), and if the devices losses connections you will know because the dashboard widget will show a right after the widget’s title.