I am monitoring a group of 20 temperature sensors and would like to display if each temp is either increasing or decreasing in color, similar to what is found on a stock ticker.
I know I can change the style using the card_mod HACS integration, but I don’t know if there’s a CSS interpretation that monitors a value change.
Thank you, I think I’m halfway there. I created a statistics helper to monitor the last 2 sensor values and have the positive/negative result. Next step is to add that to the card_mod CSS styling as an if statement for color style on whether positive/negative.
Changing the quotes to the “hui-generic-entity-row” style did not change the output.
I tried the below in the card after seeing the correct output in Dev Tools and it doesn’t change the color of the value. Is “text-content:not(.info)” the incorrect parameter?
card_mod:
style:
hui-generic-entity-row:
$: |
text-content:not(.info) {
color:
green
}
I am not getting, I told about quotes for the template, not for the “hui-generic-entity-row” word.
Suggest to go to the main card-mod thread, check the 1st post → link at the bottom titled “fantastic” and then ask ANY card-mod-related questions THERE.
Apologies for not being specific. I was using your advice to also change the quotes to my previous post above your reply/correction. I’m attempting to change just the color of the value returned (data) and not the text.