I would like to have something resembling a "virtual" device with a state.
The state could be controlled and moved from one to the other.
at each transaction I would like to trigger certain actions and refer to the current state to enable and disable certain automation.
Is there anything resembling what I would like to do?
I think it might be possible to achieve the same result with an action but having something representing a proper state I think might have its benefits.