Page 1 of 1

How to detect if a device is online

Posted: Tuesday 29 June 2021 11:50
by Wolly76
Hi all,

I would like to test if a device is online. More specifically a WiFi light bulb. I could retrieve the last-updated-time as well as the state, but both parameter give normal values when the device is on or offline (power is off).
A method might be to ping on the IP address but I couldn't find a way to retrieve the IP address of a certain device as it is handled using MQTT.

Domoticz itself adds a red bar on the device when it is offline, but how to get this information in dzVentz?

Does anybody know how to achieve this?

Thanks in advance.
Regards, Wolly

Re: How to detect if a device is online

Posted: Tuesday 29 June 2021 15:50
by waltervl
It should be the .timedOut device attribute that indicates that.

https://www.domoticz.com/wiki/DzVents:_ ... ll_devices

Re: How to detect if a device is online

Posted: Wednesday 30 June 2021 14:19
by Wolly76
Great! thanks. Life can be so easy, sometimes.

Re: How to detect if a device is online

Posted: Friday 25 August 2023 8:49
by ssk17051980
did you find a solution to find if a device it's offline ?
thx