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

Condition 'sun' is always false

$
0
0

I have an automation that should work only after sunset and before the sunrise. I used the following condition from the example but it is always false.

  - condition: sun
    after: sunset
    before: sunrise

From [Conditions - Home Assistant]
This is ‘when dark’ - equivalent to a state condition on sun.sun of below_horizon:

condition:
  - condition: sun
    after: sunset
    before: sunrise

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 103651

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>