I am designing something using virtual switches where it would be handy for the object under control to “trip” the switch — to not just turn the switch to “off”, but also indicate a state that requires additional attention before simply flipping the switch back to “on”.
Is there a canonical way to handle switches that work like circuit breakers with three states — on, off, and tripped? https://www.home-assistant.io/integrations/switch/ describes a switch as having on and off states, and most of my searches have come up with “Do not attempt to control circuit breakers with HA” — some very solid advice, but not applicable when I’m dealing with a virtual switch that controls a software component and not something that could burn down my house.
One option I’m considering is a separate trip switch that is set to on when the primary switch is set to off in a tripped condition. The trip switch would need to be reset before the primary switch could be turned on again, but that seems a little clumsy. Are there better alternatives? Thanks!