Bigtimer/Light Schedule all day schedule


#1

Ok so I've been having ome issue with Bigtimer/Schedex/schedule node. What I'm trying to achieve is that I want my lights to start at say 6 am and end when sun has risen. And then start again when sun set until 11.30 pm.

Can I solve this with Bigtimer? Tried to have to Bigtimer but the first said on to the light and the second said off so nothing happened.

Or can I solve this with Light Schedule Node? But this node sends a command every minut so if the lights are off according to schedule but it's cloudy so I want to turn them on manually I don't want them to go off the next minute the schedule node runs.

The image below kind of decribes how I want it with the Light Schedule and a switch wether it's a on or off message. (No connection between them due to above problem).

Hoping for some easy fix here that someone can share. Much appreciated.

Thanks!


#2

Well it depends on where you are in geographical means but I think you should also take account situations where sun rise occurs before 6 AM? Do you still want the lights to turn on? Also if sunset occurs after 11:30 PM ...

I have such kind of logic created for my "walk thru lights" . I don't use any of ready made scheduler nodes except the Sun events node. But as my flows do much more with time based events it is not directly exportable to share as example.

Basically you dont need any scheduler. Basic inject node can be set to emit at specified time.
image
Sun event node emits on surise and sunset (there is more sun related events of course if needed). By listening all those events you can make your own logic based on those events and current state of your lights, using built in Switch and Change nodes (or Function node).


#3

Like hotNipi, I don't use any ready made scheduler nodes, but I do use node-red-node-suncalc to determine sunrise/sunset which I've built into my flow.
It works pretty well, and by adding your lat/lon coordinates, it will be relevant to your location.


#4

Thank you for your replies. Although I'm a newbie to this so I'm won't get any further unfortunately. Anyone care to share a basic flow regarding this? Must be the absolut most common flow ever in my mind?!

I know I had the logic you saying hotNipi in my previous Domoticz rpi so you got a point there since the sun rise before 6 am during summer etc. Will need to find a way around this as well.


#5

The quickest way to learn is to try it for yourself. I also use the suncalc Paul has already recommended. It’s very easy to configure.

I also moved this thread to General as Share your projects is for projects you have completed as per the description


#6

I had a similar requirement: Switch the lights on in the morning for a certain amount of time, and then again in the evening, also for a certain amount of time.
The node I used is called BigTimer. It needs the latitude and longitude, then it calculates dawn and dusk. Clever.

I used two BigTimer nodes for this: A morning BigTimer and an Evening Bigtimer.
The trick is to prevent them to interfere with each other. At the very beginning of my experiments the 'morning BigTimer' sent out a message to switch the light on, and the 'evening BigTimer' said no, forget it, keep the lights off, it is not time yet to switch them on. It is fun to watch, but not what I wanted. The author of the BigTimer node already built in the solution: At the very bottom of the quite big configuration panel, uncheck the 'repeat output' and 'output at startup' options, then you are fine.

Regards,
Urs.


#7

Thank you all for your suggestions. A special thanks to @Urs-Eppenberger who had exactly what I was hoping for, too bad I didn't find myself.

Sure it's always best to try for yourself although I'm quite happy with trying and have made it so far that I now have a fully operational HA with several lights and Sonos to control but got stuck with a "simple" scheduling. After many hours of googling I was still stuck and hence saw no other option than to find an answer at a forum. So thank you for you extensive answer @ukmoose.

Peace HA'ers..