Page 1 of 1

my blockly does not want to work.

Posted: Saturday 02 February 2019 7:15
by salopette
Hello, I did a blockly script but it does not work for me.
Can someone help me there?

There are 6 lmpen to be turned on at the same time.

Re: my blockly does not want to work.

Posted: Saturday 02 February 2019 7:39
by salopette
It does not work that way.
If I take out or leave only a motion sensor then it works.

Re: my blockly does not want to work.

Posted: Saturday 02 February 2019 9:11
by tozzke
salopette wrote: Saturday 02 February 2019 7:39 It does not work that way.
If I take out or leave only a motion sensor then it works.
You have to specify the state for each switch seperately. So you'll get:

Code: Select all

If [ [ [Aqara Motion Sensor] = [On] ] or [ [Zigbee Stick - BWM1] = [On] ] ]
Do [Set [x] = [On] ]
   [Set [y] = [On] ]
This is basic blockly/programming and yet a lot of people seem to get it wrong :|