Page 1 of 1
Turn light on 30 minutes before sunset with Blockly (Solved)
Posted: Thursday 20 October 2016 16:39
by jeroenvdpoll
Hello,
Not sure were to place this question.
Ik want to turn the lights in 30 minutes before sunset. (At sunset it is to late). How can I accomplish this with blockly? Currently I'm doing fine with blockly and don't want to invest in LUA.
Are there any tricks to accomplish this?
Regards,
Jeroen
Re: Turn light on 30 minutes before sunset with Blockly
Posted: Thursday 20 October 2016 19:42
by Egregius
Just use a timer, or go scripting and let your imagination go...

Re: Turn light on 30 minutes before sunset with Blockly
Posted: Thursday 20 October 2016 20:36
by jeroenvdpoll
I don't want to invest in learning the LUA scripting language if it's not necessary.
This is basically the only thing I cannot figure out with purely using blockly.
Can you explain how to use a timer?
Re: Turn light on 30 minutes before sunset with Blockly (Solved)
Posted: Thursday 20 October 2016 21:06
by jeroenvdpoll
I figured it out:
Created a dummy switch and set time 30 before sunset to turn switch on, at sunrise (before sunrise 0 minutes) it turns off.
This dummy switch now controls the lights.
Thanks for setting me on the right track
Re: Turn light on 30 minutes before sunset with Blockly (Solved)
Posted: Sunday 01 January 2023 17:46
by lolomin
Hi,
I know this is a pretty very old post but could you please explain how you achieve to do an action xx minutes before sunset please ?
Regards,
Laurent
Re: Turn light on 30 minutes before sunset with Blockly (Solved)
Posted: Monday 02 January 2023 10:00
by waltervl
lolomin wrote: ↑Sunday 01 January 2023 17:46
Hi,
I know this is a pretty very old post but could you please explain how you achieve to do an action xx minutes before sunset please ?
Regards,
Laurent
You do not need blockly for this but use the timer function (button Timer on device widget), see wiki
https://www.domoticz.com/wiki/Managing_ ... ice_Timers
Re: Turn light on 30 minutes before sunset with Blockly (Solved)
Posted: Monday 02 January 2023 15:41
by lolomin
waltervl wrote: ↑Monday 02 January 2023 10:00
lolomin wrote: ↑Sunday 01 January 2023 17:46
Hi,
I know this is a pretty very old post but could you please explain how you achieve to do an action xx minutes before sunset please ?
Regards,
Laurent
You do not need blockly for this but use the timer function (button Timer on device widget), see wiki
https://www.domoticz.com/wiki/Managing_ ... ice_Timers
Ah thks a lot, I didn't know this was possible directly with Timers in Domoticz.