Page 1 of 1

Always on after some time

Posted: Tuesday 18 September 2018 16:09
by Solderbro
Have a RGB LED strip with the fibaro FGRGBWM and tried to combine it with the Zipato Multi Sensor. Idea is to have full light at day and reduced light in the night times. This blockly did it for the first day, after the first night the light is always on and won't never turn out. Where's the bug?
blockly-bad.png
blockly-bad.png (38.8 KiB) Viewed 512 times
Greets
Solderbro

Re: Always on after some time

Posted: Tuesday 18 September 2018 17:34
by tozzke
the '[[On] For [x] minutes]' blockly does exactly what it says. It turns a switch on for x minutes regardless the switch's state.
If the switch was off at the moment of triggering, it turns on and returns to off after the x minutes. Was it on at the moment of triggering... guess what happens... ;). It goes "back" to on (the state it was before the trigger happened), so it won't turn off indeed.

I'd set it to:

Code: Select all

[Set [switchA] = [On]]
[Set [switchA] = [Off] after [300] seconds]
This way it turns on and after 5 minutes it'll turn off

[edit]
btw... the 'Else if' will also run even though the 'If' triggers first, you'll have to add a time slot ([time >= [6:00]] and [time <= [22:00]]) as well to the 'Else if'. On with my Philips Hue results in the last setting, so if it was @ 20%, it'll go on at 20%. Perhaps you'll also have to set it to [level (%) [100]] or something like that
[/edit]

Re: Always on after some time

Posted: Wednesday 19 September 2018 18:30
by Solderbro
Got the clue, yes first try results to dimming up and down at day. Added sunrise and sunset to both statements now, this looks way better and is able to switch off after time. The Fibaro can be programmed to resume switched of or with the last setting.

Thanks for help :D