Bigtimer/Light Schedule all day schedule

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!

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).

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.

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.

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

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.

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

hi there!
i´m not able to update bigtimer via node-red manage-palette.
So for the previous version (2.07) i did an updte via termnal ( sudo aprt-get install node-red-contrib-bigtimer).
For the new - version (2.0.8) this won´t work.
i get an error ( E: Unable to locate package node-red-contrib-bigtimer )
i update the packages before with apt-get upate as well.

Anyone an idea what i´m doing wrong?

using apt-get is your mistake

Node-RED nodes are generally installed using npm. As per most nodes ReadMe’s. Although you can install and upgrade using the Manage Pallete option inside Node-RED.

Thanks for fast reply.
I also tried this and get the notification that bigtimer is not installed locally.
That is why i tried to do it manually via terminal....

Find out where it is installed, remove it and then reinstall in the correct place via the palette.

Or, if you're on Node-RED 0.19.4 then you do not need to remove the existing one and just install it locally by running npm install node-red-contrib-bigtimer in the directory ~/.node-red.

thanks knolleary,
when i do this, i get the following warning:
npm WARN node-red-project@0.0.1 No repository field.
npm WARN node-red-project@0.0.1 No license field.

  • node-red-contrib-bigtimer@2.0.8
    added 2 packages from 2 contributors and audited 993 packages in 16.946s
    found 0 vulnerabilities

Sry - i´m not very familiar with the command line.....

Just a warning, nothing to worry about. The final line confirms it installed.

Restart Node-RED and you should have the updated version available - assuming you are on Node-RED 0.19.4 or later

ok - perfect. That´s it!
Thanks a bunch!

I have made a flow using bigtimer to control the heater in my garage. What I would like to do is have the timer turn on at 4am and off at 7am during the week days and turn on and off at different times on the weekend. Can this be done with just one timer or will I need to have two timers?

You would need to use two timers, one setup for the weekday and one for the weekend using the day of week options at the bottom of the node:
image

What I do is because I use the time of day for so many different aspects of my home automation (outside lights on/off - different lights for weekends vs weekdays, ceiling fan run times, light dim levels, etc.) is abstract it into a series of global variables and trigger nodes. I then setup a string of time of day definition irrespective of the day type and then us separate nodes to define day time (weekday, weekend, holidays). Then I can use time of day trigger links / variable checks combined with day of week variable checks to control everything vs. setting up multiple bigtimers throughout all my flows.

Sorry for bumping an old thread, but this the exact use-case for what Light Scheduler was written (node-red-contrib-light-scheduler)

The default behavior of that node is to only send output when something changes, which will make it possible to control the lights manually as well (if you want to turn the lights on when cloudy).

Definging a schedule which turns on at 6am and off at 11.30pm and with a "Dusk / Dawn override" that says "Only when dark" will work the way you expect it!

Se more details here:

/Niklas Wall

1 Like

Thats a very nice looking scheduler node there Niklas - well done !

WIll implement that to replace a couple of other nodes i am using

Craig