I am trying to figure out how to specify a state change condition in response to a global variable that be written and read. For example in Python, I would like to move to one state if SoftCode is 1 or exit if SoftCode is 2. Also I need to set SoftCode. This does not work but hopefully this example illustrates what I am trying to do.
` sma.add_state(
state_name="wait",
state_timer=0,
state_change_conditions={
"SoftCode1": "nextState",
"SoftCode2": "exit",
},
output_actions=[("SoftCode", 1)],
)`