esp-insights icon indicating copy to clipboard operation
esp-insights copied to clipboard

Updating 'status' in Insights dashboard for each device.

Open gadget-man opened this issue 1 year ago • 1 comments

How can we provide data to update the 'status' colour next to each node on the Insights dashboard? Currently I only ever see either 'offline' or 'unknown', even when the device is connected to wifi (I'm using HTTPS REST not MQTT).

I'd like to be able to report the status as 'online', 'offline', and ideally also 'asleep'. Can I set this as a custom metric or variable on the device itself?

gadget-man avatar Aug 10 '24 13:08 gadget-man

Hello @gadget-man Sorry for the late reply. Since the MQTT connections are persistent and it is possible to detect if the device is online/offline using if the MQTT connection is alive or not. It is bit tricky for rest APIs as the device can chose not to report for long time.

I'd like to be able to report the status as 'online', 'offline', and ideally also 'asleep'. Can I set this as a custom metric or variable on the device itself?

The asleep and offline status won't be reported until the device is online next time. If you still want to do this in some form, please consider using custom variables.

vikramdattu avatar Sep 25 '24 05:09 vikramdattu