Dashboard: Tile Background Color based on Attribute Value

My solution is here

Dashboard: Sort Tiles based on an Attribute Value? - :toolbox: Built-In Apps and Drivers / Dashboard - Hubitat