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

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
James83
Posts: 16
Joined: Thursday 28 November 2019 0:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

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

Post 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
RPI4, Philips Hue, Tradfri, Sonoff, MQTT, Zigbee2Mqtt, RFXCom 433, Octoprint,...
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

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

Post 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..)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest