Page 1 of 1
Change icon/color when sensor has not updated
Posted: Thursday 03 November 2016 23:33
by gmccarthy
Not sure if the following is possible, if not would be a useful feature.
When a sensor has not updated in x hours/days (Due to broken comms etc) then change the icon or colour so we can easily spot broken sensors.

- Capture.JPG (12.86 KiB) Viewed 3009 times
The PIR sends updated every 5 mins so anything longer than 10 mins is problematic.
Re: Change icon/color when sensor has not updated
Posted: Friday 04 November 2016 1:19
by juankar
When a sensor doesn't send data in a period of time the title color changes (to red) and when battery is low it changes too (to yellow).
But there is few info about it, i've found just a post and it says thet title becomes red after 3 days without data... it's not true, it changes to red after several hours.
It would be a good idea to allow config this behavior, so we could choice the interval without data that could be an issue.
Re: Change icon/color when sensor has not updated
Posted: Friday 04 November 2016 8:14
by gmccarthy
The screenshot I pasted was from dummy sensor I setup in March (When it last communicated). The title is not red.

Re: Change icon/color when sensor has not updated
Posted: Friday 04 November 2016 9:35
by G3rard
Use the default Domoticz theme and it will probably work. Looks like the theme you are using is not supporting the colors.
Re: Change icon/color when sensor has not updated
Posted: Friday 04 November 2016 9:53
by gmccarthy
I've set the theme back to default but still don't see any titles changing to red? (Tried FF/Chrome on Win10)
Domoticz is running on my R-Pi (v5859)
Re: Change icon/color when sensor has not updated
Posted: Friday 04 November 2016 15:33
by stlaha2007
I guess it depends on what kind of (dummy) sensor you use.
I have registered a nearby PIR, probably from neighbours, with is seen more then two weeks ago. It does not show a red mark.
However some nearby rain/temp sensors with last data from more then a 24hours are RED, also dummy's for temperature old nas-device.
Also working as explained above with ThinkPads Theme and Default Theme.
Sent from my K00C using Tapatalk
Re: Change icon/color when sensor has not updated
Posted: Friday 04 November 2016 16:30
by Derik
mm looks a great option..
Only is this option standard built in?
Or when i update Domoticz this setting is gone?
Re: Change icon/color when sensor has not updated
Posted: Friday 04 November 2016 18:11
by gmccarthy
Sensor type: Dummy (Does nothing, use for virtual switches only)
Subtype: Alert
Re: RE: Re: Change icon/color when sensor has not updated
Posted: Friday 04 November 2016 23:42
by stlaha2007
Derik wrote:mm looks a great option..
Only is this option standard built in?
Or when i update Domoticz this setting is gone?
Dummy Device is builtin and won't disappear after update.
Like i mentioned earlier, some get a red titled widget when they are last seen more then 1 hour ago, some aren't.
As i have a mix of dummies and nearby sensors, i can tell you weathersensors and utilitysensors get a red title bar after 1 hour. Some securitydevices wouldn't.
Sent from my D6603 using Tapatalk
Re: Change icon/color when sensor has not updated
Posted: Saturday 05 November 2016 9:54
by gmccarthy
Thanks for the info.
Would be nice to get dummy devices added in then as a feature.
Re: Change icon/color when sensor has not updated
Posted: Saturday 05 November 2016 10:12
by stlaha2007
Search the subforum script. Someone already did build a lua or other type of script to get notified about sensors seen longtime ago...
Sent from my D6603 using Tapatalk
Re: Change icon/color when sensor has not updated
Posted: Tuesday 22 November 2016 21:09
by gmccarthy
Like i mentioned earlier, some get a red titled widget when they are last seen more then 1 hour ago, some aren't.
Does anyone know what code to change to get the sensor label to turn red on utility sensors. Its working fine on temp sensors - turns red after not reporting for a while, but not for utility sensors.
Re: Change icon/color when sensor has not updated
Posted: Tuesday 22 November 2016 21:15
by gizmocuz
it does here... maybe not for all sensor types (like from dummies), what type of hardware/sensor are they ?
Re: Change icon/color when sensor has not updated
Posted: Tuesday 22 November 2016 21:17
by gmccarthy
gizmocuz wrote:it does here... maybe not for all sensor types (like from dummies), what type of hardware/sensor are they ?
Trying to use a dummy sensor (virtual switch)