Variable only changes once
Posted: Saturday 05 February 2022 23:18
Hi All,
I have created a blockly where if one of us is at home after sunset, the living room lights turn on.
Also added a variable to be able to turn off the light. When I start the variable with OFF, it does switch to ON.
But when the mobile phones disconnect (simulating leaving home) it does not go to the OFF state. Am I missing something in the blocks?
I have created a blockly where if one of us is at home after sunset, the living room lights turn on.
Also added a variable to be able to turn off the light. When I start the variable with OFF, it does switch to ON.
But when the mobile phones disconnect (simulating leaving home) it does not go to the OFF state. Am I missing something in the blocks?