I have a simple automation that will turn the light on before sunrise and after sunset from motion. However the boss has ever so politely requested this be altered as it’s still dark at sunrise. I would like to alter it so the automation will run for a further 45 minutes after sunrise and 45 minutes before sunset. Have I got it right with this?
condition: or
conditions:
- condition: sun
before: sunrise
before_offset: '+00:45:00'
- condition: sun
after: sunset
after_offset: '-00:45:00'