Hi, I would like to code a helper but I unfortunately I don‘t know what is the best way
If entity A is higher then B a helper should show a „Yes“. Else the helper should show a „No“. Both entities are humidity sensors which display the absolute humidity in g/m3. It would ideal if there is a way to work with colours instead of „yes“ and „no“. That means, if A is bigger then B the helper shows a green circle.
What kind of helper is appropiate and how could look the code? It would be great if I could get support.
An entity’s state value is displayed by a card. However, the standard set of cards don’t provide control of the value’s color (other than the Markdown card, using an HTML Font tag).
Certain custom cards support it and I believe, a custom ‘card helper’ called card-mod.
Let me know when you have created the Template Sensor helper and we can take it from there.