I am trying to update my frontend to more clearly alert me if my theater room or garage temperatures go above 90 degrees. I’ve used the conditional card in the past when states change - but I’m struggling to get this to work with my temperature sensor. I think that my issue is that the conditional card is looking for a specific temperature (“75”), but won’t satisfy the condition if it’s 75.2 or 76.
I basically want the card to be visible with white text if the temp is below 90 degrees. If the temp is above 90 degrees, it should be red text.
Define a color by card-mod dependently on some entity’s state.
Any card may be used - glance, entities, entity, button.
For details: card-mod thread - 1st post - link at the bottom - chose any card you wish to use
I have a “tile card” that displays the temperature of a thermometer.
I set the icon color to orange to make the card stand out.
However, I have created a program to adjust the icon color according to the temperature. The program is correct and the changed card does not report a code error, but the color change does not work and still leaves the icon completely white.
Is there an error in my code or does this type of implementation simply not work?
Oh, sorry: I’m on a small screen without my glasses and I misread it thinking the last % in each line was referring to the value as a percentage - so sorry about that.