The first row of the label shows the friendly name and the second row shows the condition. I will rename the state from âtiltedâ to âGekipptâ, âopenâ to âGeĂśffnetâ and âclosedâ to âGeschlossen. And if the door is âGeĂśffnetâ (=open), i would like to change the state color to black.
Yes thatâs what I mean, now you just need to find the text attribute. I donât believe color is it. But the reason all your testing was failing was because youâre missing the ;.
Ok, thank you! Now i´m able to change the primary text color. But i didn´t know the name for the second row. I can´t change the state color in the second row.
Use chromes developer tools to inspect the element and figure out what color the text is using. Itâll also be listed in a theme, but youâll have to guess.
But I want the 2nd secondary text line below to show the text in Orange when it says âUpdate-Readyâ other wise in Green if value returns âUp-To-Dateâ
{{ 'Update-Ready' if not state_attr('switch.rajannas_docker_browserless',
'uptoDate') else state_attr('switch.rajannas_docker_browserless', 'uptoDate')
| title }}