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

Automation using UI for condition "DARK OUTSIDE not time"

$
0
0

Hi All

So I have read up on the sunset and here I got the its DARK…

condition:
 - condition: state
   entity_id: sun.sun
   state: below_horizon
   for:
     hours: 0
     minutes: 0
     seconds: 0

But I would like to only have the light go on when its really DARK!
So I was hoping to delay it for 1-2 hours after sunset
I think below horizon in the morning is okay?

So is this possible using the UI? or id the correct way to include a offset like this?

condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
    offset: '+01:00:00'
    for:
      hours: 0
      minutes: 0
      seconds: 0

I started out thinking this would be easy :slight_smile: but it god a bit more complicated

Currently I have one automation for ON and another for OFF

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106512

Trending Articles



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