Turn light on 30 minutes before sunset with Blockly (Solved)

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
jeroenvdpoll
Posts: 3
Joined: Tuesday 18 October 2016 15:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Turn light on 30 minutes before sunset with Blockly (Solved)

Post 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
Last edited by jeroenvdpoll on Thursday 20 October 2016 21:01, edited 1 time in total.
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Turn light on 30 minutes before sunset with Blockly

Post by Egregius »

Just use a timer, or go scripting and let your imagination go... :mrgreen:
jeroenvdpoll
Posts: 3
Joined: Tuesday 18 October 2016 15:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Turn light on 30 minutes before sunset with Blockly

Post by jeroenvdpoll »

I don't want to invest in learning the LUA scripting language if it's not necessary. :shock:

This is basically the only thing I cannot figure out with purely using blockly.

Can you explain how to use a timer?
jeroenvdpoll
Posts: 3
Joined: Tuesday 18 October 2016 15:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Turn light on 30 minutes before sunset with Blockly (Solved)

Post 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
lolomin
Posts: 21
Joined: Sunday 11 October 2015 16:48
Target OS: Linux
Domoticz version:
Contact:

Re: Turn light on 30 minutes before sunset with Blockly (Solved)

Post 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
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Turn light on 30 minutes before sunset with Blockly (Solved)

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
lolomin
Posts: 21
Joined: Sunday 11 October 2015 16:48
Target OS: Linux
Domoticz version:
Contact:

Re: Turn light on 30 minutes before sunset with Blockly (Solved)

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

Who is online

Users browsing this forum: No registered users and 1 guest