@KennyStier61 wrote:
We have chickens and in order to keep them laying through the winter, they need artificial light so that they have at least 12 hours of light. I want to setup an automation that ensures 12 hours of light year-round. I could trigger it to come on x hours before sunrise, but the time of daylight changes throughout the year.
I’m fairly new. How can this be done?
Here’s how I feel like it could work.
- Use https://github.com/pnbruckner/ha-sun2 to get the hours of daylight
- Take 12 - (hours of daylight) = x
- Disregard negative numbers. If positive, turn the light on x hours before sunrise.
All help is appreciated!
Posts: 4
Participants: 4