@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