It is not possible. You can add an automation on the state change, and use the set_state.py script to turn it off again.