Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Ensuring x hours of light

$
0
0

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

  1. Use https://github.com/pnbruckner/ha-sun2 to get the hours of daylight
  2. Take 12 - (hours of daylight) = x
  3. Disregard negative numbers. If positive, turn the light on x hours before sunrise.
    All help is appreciated!

Posts: 4

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles