Page 1 of 1

Re: dimmer blockly

Posted: Tuesday 05 February 2019 15:21
by waaren
sander815 wrote: Tuesday 05 February 2019 14:42 it seems to be working, but no matter what i set in for ... minutes, the script goes to 15% after one minute
My guess is that your motionsensor sends an off signal after one minute. Your Blockly will /does react to that.

Re: dimmer blockly

Posted: Tuesday 05 February 2019 18:18
by tozzke
None of these blockly's will trigger... ever...
because there is NEVER a moment on any given day when it's past sunset and simultaniously before sunrise. When you want to do something between sunset and sunrise you'll have to use 'time > sunset OR time < sunrise'.

And the 'fox x minutes' (why use the xx:xx blockly and not the single/double/triple/etc digit blockly?)... It won't always go off after the set time, in stead it goed back to the state it was before the trigger. If it was already on, it'll turn "back" on. If you want to turn it off after x minutes, you'll have to use:

Code: Select all

Do Set lamp = On
   Set lamp = Off after 300 seconds
This way it'll always turn off after the time you set.