Sunset offset


#1

Quick question, I want a condition that is true one hour before sunset until one hour after sunrise.

Not sure if I used the offsets right

  condition:    
    - condition: or
      conditions:
        - condition: sun
          after: sunset
          after_offset: "-01:00:00"          
        - condition: sun
          before: sunrise
          before_offset: "01:00:00"

#2

Looks right to me.