dimmer blockly

Moderator: leecollings

Post Reply
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: dimmer blockly

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
tozzke
Posts: 135
Joined: Friday 02 January 2015 9:22
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands
Contact:

Re: dimmer blockly

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest