I try to have templates on color & icon for a binary sensor (trend one).
Based on several posts (eg: Need help with sensor icon color based on state) , I added the following in my customize.yaml and made many variation of it.
I confirm that the state is indeed “on” or “off” from dev tools.
But it does not work.
Any idea or suggestion for further investigation ?
Same issue, nothing changed. Thank you for the proposal.
Good remark for the “3 possible states”: the “else” case is to manage startup case where the value is “Unknown” as the Trend platform requires at least 2 points.
There are at least three topics I’ve read that use this template trick that don’t mention custom-UI at all! No wonder @csacre was not aware it was required.
Import of extra_html_url (of the top of my head) is deprecated and no longer supported in nowadays HA. And since it is no longer maintained, there is no need to use the server variant either…