I have multiple sensors that are practically binary in nature, but use 0/255 or on/off for their states to represent open/closed. Also, I have a custom value template on an energy monitor that converts floats < 5 (watts) as “off”, otherwise “on”.
What single method works best for all three use cases so that I can set custom state icons?
For example, my 0/255 sensor is just always an eye. My default on/off contact sensor defaults to a door (ironically, since the former sensor can basically only be a door sensor, while this one is in my mailbox…). And then the energy monitor is a washing machine. So I want to set the first as mdi:door-open/mdi:door-closed, the second as the mailbox versions of open/closed, and the latter as the appropriate washing machine mdi icons.
It looks like I could create a binary sensor for all three, but I also thought I could add stuff to customize.yml to modify them though that doesn’t seem to be working. Might be user error/syntax issues. My binary sensor template works fine, but I’m adding yet another entity just so I can add stupid icons, and that seems messy and wasteful. This is really dumb if I’m layering it on top of an already custom state sensor, though I guess refactoring is what I should be doing anyway.
Anyway, what’s the best way to do this? To phrase the root question another way, what’s the best way to customize icons without unnecessarily creating extra entities?