running scenes before and after sunshine
I want to make scenes that will run related the sunshine. mean 20 min before sunshine scene-1, 20 min after sunshine, scene-1, 2 hours after sunshine scene-3, etc.
Anyone ideas how to make it?
thank you,
German - DiLight
Hi,
In bOS, we have Dawn, Day, Dusk and Night booleans, that we can use to trigger something. Also we can go deeper and even use the Azimuth and Altitude values.
If you watch the factory values in Sun setting, you can see that there are offset values pre-defined. For example in Dawn there's an offset of -15 minutes from the calculated sunrise. Which I think it means that Dawn boolean will activate 15m before the calculated sunrise. Day boolean 15m after calculated sunrise, etc...
You can set your Dawn offset to -20 and the Day offset to 20 if you feel like it's ok.
So for testing purposes, you can try something like this:
Create a "Dawn" task, use the Dawn boolean as a trigger and execute your Scene-1.
Create a "Sunshine" task, use the Day boolean as a trigger, and execute your Scene-2
Using the same Day boolean as a trigger, use a 2h timer, and execute Scene-3 after the time set. Or in this case, assuming that you changed the Day offset value to 20, you can try to use a 1:40h timer.
Maybe there's a more elegant way to do this, but for a quick test it's a starting point.
Test it, and post your results.
Best regards