Entity Icon color & custom icon color based on state (customise icon_color)

I usually thought bout starting a new/own feature request based on

As I found this topic and even it has a slightly other approach (doing stuff in YAML), I would like to show my idea (doing it in the UI which is more the modern HA way of doing things) here too:


Allow to change entity icon based on entity state (binary sensors)

For binary sensors this should be quite easy:

  • field “icon for state on”: mdi:led-on
  • field “icon for state off”: mdi:led-off

In a next iteration the “state” needs to be user defined, e. g. “15” or “running” etc.

As mentioned in Change entity icon based on state this already is implemented in the backend for sensors with supported device class, e. g. binary sensors like door, window etc.

This feature request is about bringing the config options for this to the UI allowing users do define this on their own.