I have a light that I want to turn on in the morning at 7:20 and if its 30 minutes before sunrise because its still light enough outside that it does not need to be turned on.
alias: Turn on E27 1 In the morning
description: ''
trigger:
- platform: time
at: '07:20'
condition:
- condition: sun
before: sunrise
before_offset: '00:30:00'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- type: turn_on
device_id: 8708a0e
entity_id: light.dimmable_light_4
domain: light
brightness_pct: 80
mode: single
Today the sunrise was at 07:24 and my light still turned on at 07:20! What am I not getting?