Skip to content

change icon of all window contacts depending on state #140

Closed Answered by bhessen
bhessen asked this question in Q&A
Discussion options

You must be logged in to vote

Solved it: I was missing the quotation marks in the return statement for the icon:
if (state === 'on') return 'mdi:window-open-variant';

device_class was already set for these entities. But the window device class uses the mdi:window-open/closed icon. I want to have the mdi:window-open/closed-variant icon for all my window entities

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Mariusthvdb
Comment options

Answer selected by bhessen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants