1) Give a description of the problem
More of a question than a problem, I am trying to understand how to make lights go on/off if some action is triggered before sunrise or after sunset.
2) What is the expected behaviour?
I have a garage ramp with 2 sets of lights, one inside the garage, and one just outside. I want the indoor lights to go on every time the garage door opens (tilt sensor)… And the outdoor lights to go on only if it is earlier than 15 minutes before sunrise, or later than 15 minutes after sunset for that day.
3) What is happening/not happening?
To be honest - I have not tested it yet, I just wrote it, and it would take a bit to test it properly as I would need to be there around sunrise/sunset and test at those times.
But my questions are:
-
I noticed the variables $nextSunrise and $nextSunset, and I am unsure what I should use… My best guess in my case is to use the default $suntise and $sunset as I want to compare to sunrise/sunset of today, not of the next day.
-
Initially I used 900 (seconds) instead of 15 (minutes)… But I looked through the community and I think that everyone uses minutes with $sunrise and $sunset… Is this assumption correct please?
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach logs after turning logging level to Full
No logs as yet…