Coming Home and Condition "home"

Hey. I would like to configure a automation to turn on some lights, if i come home. And that works already reliable. But i would like to turn on the lights only from 20 minutes before sunset until sunrise. Current it turns on all the day, if i come home.

If i adopt these parameter as condition, the automation wouldn´t executed. What am I doing wrong?

Actualy:
Trigger: My handy from “not_home” to “home”
Condition: empty
Action: One light to turn it on

I’d personally suggest the sun elevation condition, instead of time. 20 minutes before sunset is a very different level of light on the shortest day than the longest day :wink:

However, without seeing the YAML of the automation, we can’t even begin to guess as to the problem.

2 Likes