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

Start Automation 20 minutes after sunrise

$
0
0

@ScottS wrote:

I would like to start the below Automation 20 mins after sunrise. I’ve tried swapping out sun-related Condition code with the following, but it errors out. Maybe best to use a template here?

condition: sun
after: sunrise
after_offset: "+00:20:00"
# Weather is not sunny
- id: '1572098072779'
  alias: Weather-Not Sunny
  trigger:
  - platform: template
    value_template: '{{ states(''weather.home'') != ''sunny'' }}'
  condition:
  - condition: state
    entity_id: sun.sun
    state: above_horizon
  action:
  - service: homeassistant.turn_on
    entity_id: light.living_room_shelf_lamp
    data:
      brightness_pct: 50
      transition: 3

Posts: 23

Participants: 5

Read full topic


Viewing all articles
Browse latest Browse all 95437

Trending Articles



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