(I have read Changing mdi icon depending on sensor state which does this using a template sensor)
Some sensors (probably those coming from an integration which took care of it?) do this out of the box.
Is creating an own (new/additional) template sensor (or doing the math in the UI) the only way to change the icon of a sensor?
E. g. contact sensor of type (device_class
“door”) automatically use
for state OPEN and
for state CLOSED
There’s no specific icon set manually ().
Is it maybe possible to define these state based icons using customize.yaml?