This is beyond sun above horizon.
I live in Norway, and this time of the year it’s still dark inside (need interior light) at 10:30 AM, and it’s still no need for interior light in the summer when the sun barely dips below the horizon.
So my approach to control interior and exterior lights is to determine when it’s dark inside and outside, based on a luminance sensor pointing to the sky on my south wall.
Today I found my automations did not trigger in the morning, and I found one reason would be the luminance sensor never changed to off during the night (doh…), thus never triggering the automation:
binary_sensor.dark_inside
is set when luminance outside is below xx lux, and cleared when above the threshold.
automation:
- alias: "[Lys] Grunnbelysning på eller alt lys av"
trigger:
- platform: state
entity_id: binary_sensor.dark_inside ## triggers when binary sensor changes
action:
# This script turns light on if the light is off and vice versa
- service: script.lys_grunnbelysning_pa_eller_av
I am looking for a way to make sure we turn on the lights even when its dark in the moring.
Would my only solution here be to use a time trigger? Are there there other alternatives?
1 post - 1 participant