Hello wonderful Hubitat community! I have been sprawling the community posts looking for a simple solution for this and either I'm missing something extremely basic or it's a lot more complicated than I think. I'd appreciate any help or just pointing me in the right direction!
Basically I have contact sensors for every door and window on a dashboard and I want to add the attribute "lastCheckin" to the bottom of the tile as I had a few sensors that rarely get opened stop working months ago and I didn't notice. Now I don't see an easy way to do that to the contact sensor tile so instead I created an attribute tile for the sensor with the lastCheckin data, removed the background, borders, customized the font to match the contact sensor formatting, and then put that tile over the contact sensor tile where I wanted the text to be. This works and updates as expected and with a little CSS magic it looks like it's natively part of the tile.
The issue I'm facing though that I'm hoping someone can point me in the right direction on is when the state of the contact sensor changes from closed to open, that contact tile changes from green to red which changes the text on the contact tile to white, but since the attribute tile doesn't have a state the text stays black. This is obviously an entirely cosmetic thing, but I was hoping to keep the text color in sync with whatever the contact sensor is set to. Does anyone know how to tie an attribute's tile text color to another tile's state or a way to pass the lastCheckin data and contact sensor state to the attribute tile?
Any help would be great! Thanks.


