Page 1 of 1

Visual TimedOut/Unreachable for all devices (eg Hue devices)

Posted: Friday 10 July 2020 22:48
by James83
Hi,

As many, i use the Hue bridge. Works perfect with domoticz, exept for the "reachable" state of it's connected devices.
The Hue app and some other apps show the unreachable state, but Domoticz does not. At least, i can not find it.
So a light could be shown as "On" in Domoticz, while actually it is not because the wall switch is turned off or a plug is not plugged in, so it is unreachable and can not be "On".
I could change it's state to "Off" by code because the "(un)reachable" state is easily retrieved by JSON but that would get confusing, because you would think it was not switched "On" in the first place.

I thought i could use a devices "timedOut" state which aparrently can be updated by DzVents by

Code: Select all

domoticz.devices('Somedevice').timedOut = false
domoticz.devices('Somedevice').timedOut = true
because that changes the output of:

Code: Select all

domoticz.devices('Somedevice').timedOut
However, it does not get visual in de GUI.
Also, when i test this on a sensor, it also does not get visually timedOud in the GUI

Is it possible to add the (visual) TimedOut for all devices, also when it is changed by code? Or am i missing somthing here?

Thx in advance.

Jimmy

Re: Visual TimedOut/Unreachable for all devices (eg Hue devices)

Posted: Friday 10 July 2020 23:53
by waaren
James83 wrote: Friday 10 July 2020 22:48 Is it possible to add the (visual) TimedOut for all devices, also when it is changed by code? Or am i missing somthing here?
I don't know of a way to, programmatically or via JSON, change the timedOut status of a domoticz device in domoticz.

timedOut is an attribute of a device calculated by domoticz and is only kept in memory and not in the database.

Changes to attributes like you did with timedOut only live within the script. Changes to device attributes are only propagated to domoticz when changed by a function (for example: switchOn(), dimTo(), setRGB(), etc..)