Page 1 of 1

Temp sensor widget background change color by temp?

Posted: Thursday 18 August 2022 18:23
by silliman
Hi everybody.

Is it possible to make temperature sensor's widget background color change when temperature changes above or below certain threshold? For an example, background goes red when sensor's temperature exceeds certain value.

I would like to know if it can be added and in the case if it could be added, then how? I ain't much of a coder, so examples are very appreciated.

Thanks in advance for all answers!


P.S. I have put an image with an red arrow in it as additional information, just in case.
widgetbox.png
widgetbox.png (7.94 KiB) Viewed 209 times

Re: Temp sensor widget background change color by temp?

Posted: Friday 19 August 2022 11:53
by waltervl
This is not possible. There is no function in Domoticz to set a background for a specific device nor on specific values.
You can send (popup/email/telegram/sms etc) notifications on specific values/thresholds with the notify button See wiki https://www.domoticz.com/wiki/Managing_ ... ifications

To add a function for changing background color will have to be a major change as it also needs to have to store the threshold values.
Perhaps it could be an addition to the notification functionality to change the widget background color?