Blockly triggering condition
Posted: Tuesday 13 July 2021 21:33
Hi,
I am asking for advice how to solve this.
I have two switches. One is active during daylight, second gets active (ON) when I come home and it's stays ON till I leave home.
I would like to trigger action (turn on light) when first switch is OFF (night) and when second switch goes to ON state (I come home).
Blockly: if switch 1 is OFF AND if switch 2 is ON, THAN turn on the light.
This works fine if I come at night.
The problem I would like to solve, that if I am already at home and first switch change it's state when day goes to night. This triggers this action too and I do not like that. Has anyone any idea how to solve this?
Summary: how to ignore when specific switch is changing its state and still have working AND condition when other switch changes state.
thank you for ideas and best regards.
I am asking for advice how to solve this.
I have two switches. One is active during daylight, second gets active (ON) when I come home and it's stays ON till I leave home.
I would like to trigger action (turn on light) when first switch is OFF (night) and when second switch goes to ON state (I come home).
Blockly: if switch 1 is OFF AND if switch 2 is ON, THAN turn on the light.
This works fine if I come at night.
The problem I would like to solve, that if I am already at home and first switch change it's state when day goes to night. This triggers this action too and I do not like that. Has anyone any idea how to solve this?
Summary: how to ignore when specific switch is changing its state and still have working AND condition when other switch changes state.
thank you for ideas and best regards.