2020-01-14, 21:30
:if ServiceOn: # normal operation
if x.stop_action == 3:
if x.initial_state == "off":
x.turnOff(player_state)
else:
x.turnOn(player_state)
elif x.stop_action == 2:
x.turnOn(player_state)
elif x.stop_action == 1:
x.turnOff(player_state)
:elif ServiceOn: # normal operation
if x.play_action == 2:
x.turnOn(player_state)
elif x.play_action == 1:
x.turnOff(player_state)
Okay, so from a quick comparison between these pieces of code, I figured out that manually changing the
to:<setting id="bulb_1_stop_action">2</setting>
might help but unfortunately it didn't. After the change, settings show 'None' and testing the bulb confirms that it is also processed as set to 'None' because nothing happens :/:<setting id="bulb_1_stop_action">3</setting>