Step by step guide: Change icon based on state

I think you only can change an icon at the properties popup of an entity as shown here (my read-contact):


Or when you created a custom sensor you can use the icon_template
Regards

1 Like