Change http sensor color based on value

Hi All,

I have a bunch of HTTP sensors that are coming from some wireless tag sensors. They give values like temperature, humidity, etc. I would like to change the color of the sensor readings based upon if the sensor has not been updated in x minutes. I found a way to test the last updated time, but everything that I can find that talks of using RGB to change the color uses the sensor’s entry in the “sensors” section of the configuration.yaml. My problem is that these sensors are created on the fly by the HTTP sensor platform so they don’t have an entry in the sensors section. Is there a way to do this? Ideally I would like to do one generic template somehow so that any new sensor I get would automatically use the same rules.

Thanks!

Rob