Colour Code "datetime" to show how long since update?

I have a “Device Status” page that lists when devices are last updated. It works fine but I’d like to colour highlight items, eg: if the time last updated is:

  • Over 4hrs = Yellow
  • Over 24hrs = Red

Is there an easy way to do this?
Thanks
Nathan

Items:
    /* Last Seen */
    DateTime ZWave_Node01_LUD "LUD [%1$tH:%1$tM %1$td/%1$tm/%1$ty]" <time> {channel="zwave:serial_zstick:ef2f8db9:serial_sof" [profile="timestamp-update"]}
    DateTime ZWave_Node02_LUD "LUD [%1$tH:%1$tM %1$td/%1$tm/%1$ty]" <time> {channel="zwave:device:ef2f8db9:node2:color_color" [profile="timestamp-update"]}
    DateTime ZWave_Node03_LUD "LUD [%1$tH:%1$tM %1$td/%1$tm/%1$ty]" <time> {channel="zwave:device:ef2f8db9:node3:color_color" [profile="timestamp-update"]}
    DateTime ZWave_Node04_LUD "LUD [%1$tH:%1$tM %1$td/%1$tm/%1$ty]" <time> {channel="zwave:device:ef2f8db9:node4:color_color" [profile="timestamp-update"]}
    DateTime ZWave_Node05_LUD "LUD [%1$tH:%1$tM %1$td/%1$tm/%1$ty]" <time> {channel="zwave:device:ef2f8db9:node5:sensor_temperature" [profile="timestamp-update"]}
    DateTime ZWave_Node06_LUD "LUD [%1$tH:%1$tM %1$td/%1$tm/%1$ty]" <time> {channel="zwave:device:ef2f8db9:node6:sensor_temperature" [profile="timestamp-update"]}
    DateTime ZWave_Node07_LUD "LUD [%1$tH:%1$tM %1$td/%1$tm/%1$ty]" <time> {channel="zwave:device:ef2f8db9:node7:sensor_temperature"     [profile="timestamp-update"]}
        DateTime ZWave_Node09_LUD "LUD [%1$tH:%1$tM %1$td/%1$tm/%1$ty]" <time> {channel="zwave:device:ef2f8db9:node9:scene_number" [profile="timestamp-update"]}
        DateTime ZWave_Node10_LUD "LUD [%1$tH:%1$tM %1$td/%1$tm/%1$ty]" <time> {channel="zwave:device:ef2f8db9:node10:color_color" [profile="timestamp-update"]}

Sitemap
Text item=ZWave_Node01_LUD label="Node 01: ZWave Controller"
			Text item=ZWave_Node02_LUD label="Node 02: ZWave Repeater Garage"
			Text item=ZWave_Node03_LUD label="Node 03: ZWave Repeater TV Room"
			Text item=ZWave_Node04_LUD label="Node 04: ZWave Power Point Garage"
			Text item=ZWave_Node05_LUD label="Node 05: ZWave PIR Flood Freezer"
			Text item=ZWave_Node06_LUD label="Node 06: ZWave 6in1 Safe"
			Text item=ZWave_Node07_LUD label="Node 07: ZWave 6in1 Cellar"

No.
There are quite complicated ways.

You’d need to create a bunch of Items to “shadow” your timestamps with a duration value, this kind of thing.
Then you can base sitemap colours off those Item values

:slight_smile: that is what I thought!
Thanks
Nathan