Change icon/color when sensor has not updated

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
gmccarthy
Posts: 14
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: United Kingdom
Contact:

Change icon/color when sensor has not updated

Post 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
Capture.JPG (12.86 KiB) Viewed 2872 times
The PIR sends updated every 5 mins so anything longer than 10 mins is problematic.
juankar
Posts: 221
Joined: Saturday 30 August 2014 20:20
Target OS: Linux
Domoticz version: 4.
Location: Spain
Contact:

Re: Change icon/color when sensor has not updated

Post 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.
gmccarthy
Posts: 14
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Change icon/color when sensor has not updated

Post by gmccarthy »

The screenshot I pasted was from dummy sensor I setup in March (When it last communicated). The title is not red. :(
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: Change icon/color when sensor has not updated

Post by G3rard »

Use the default Domoticz theme and it will probably work. Looks like the theme you are using is not supporting the colors.
Not using Domoticz anymore
gmccarthy
Posts: 14
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Change icon/color when sensor has not updated

Post 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)
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Change icon/color when sensor has not updated

Post 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
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Change icon/color when sensor has not updated

Post by Derik »

mm looks a great option..
Only is this option standard built in?
Or when i update Domoticz this setting is gone?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
gmccarthy
Posts: 14
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Change icon/color when sensor has not updated

Post by gmccarthy »

Sensor type: Dummy (Does nothing, use for virtual switches only)
Subtype: Alert
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: RE: Re: Change icon/color when sensor has not updated

Post 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
gmccarthy
Posts: 14
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Change icon/color when sensor has not updated

Post by gmccarthy »

Thanks for the info.

Would be nice to get dummy devices added in then as a feature.
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Change icon/color when sensor has not updated

Post 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
gmccarthy
Posts: 14
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Change icon/color when sensor has not updated

Post 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.
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Change icon/color when sensor has not updated

Post by gizmocuz »

it does here... maybe not for all sensor types (like from dummies), what type of hardware/sensor are they ?
Quality outlives Quantity!
gmccarthy
Posts: 14
Joined: Sunday 06 September 2015 22:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Change icon/color when sensor has not updated

Post 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)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest