I would like to have button that would show a different image based some entities value. It might be a boolean, or might be 3-state, or it might be numeric (where I would like to specify ranges). For at least 2 of these cases, I can approximate with visibility, but it's brittle and repetitive.
Is there something like that already?