Always on after some time

Moderator: leecollings

Post Reply
User avatar
Solderbro
Posts: 80
Joined: Tuesday 18 September 2018 15:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Hamburg, Germany
Contact:

Always on after some time

Post 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 509 times
Greets
Solderbro
Raspi 3B+RTC, SSD 128GB, Aeotec Gen5, Eurotronic SpiritZ, Fibaro FRGBW, Zipato PIR, Everspring AN180, Neo Coolcam Plug, Fibaro FGMS, Neo Coolcam Doorsensor, Popp Z-Weather
tozzke
Posts: 135
Joined: Friday 02 January 2015 9:22
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Always on after some time

Post 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]
User avatar
Solderbro
Posts: 80
Joined: Tuesday 18 September 2018 15:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Hamburg, Germany
Contact:

Re: Always on after some time

Post 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
Raspi 3B+RTC, SSD 128GB, Aeotec Gen5, Eurotronic SpiritZ, Fibaro FRGBW, Zipato PIR, Everspring AN180, Neo Coolcam Plug, Fibaro FGMS, Neo Coolcam Doorsensor, Popp Z-Weather
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest