I am new to HA, and I am currently trying to customise my dashboard and I am a little bit confused on how to do it.
I have currently sensor that detect door open and door closed. they are working fine and the following code entered in the UI is working well
Now I would like to have the icon changed based on state and I cannot find a way to do it. I read the documentation about template but it is not clear for me what to use and how to make it work. Should I enter the code in the UI, shoud I create a file and reference it in may config file with the customize tag?
Sorry I am not sure which information you want.
This is a zigbee sensor, I added via the deCONZ UI interface
It is working fine as it shows open and closed status.
The things now is that I don’t understand from the documentation how to have the icon changed based on the status on/off
Yes I did reload, but the icon doesn’t change, it only changes the color of the door.
Reading you message I should use “template” with the icon_template tag to implement this behaviour?
If yes how do I link my sensor with the template?
Should I put this template in the configuration file?
Thanks again for the time you spend answering my questions, I really apreciate