Why doesn't the offset work?

This is the yaml created by the community blueprint I am using. The trigger does fire right at sunset but the offset of -2 is ignored. I would like to fire it 2 hours before sunset. What did I do wrong?

alias: Sunset
description: ""
trigger:
  - platform: sun
    event: sunset
    offset: "-2"
condition: []
action:
  - service: light.turn_on
    metadata: {}
    data:
      brightness_pct: 90
    target:
      device_id:
        - 0dda4fe4fb680e7ceb6eb6b25de753ad
  - service: light.turn_on
    metadata: {}
    data: {}
    target:
      device_id: f84b3f210d472a50193f5af3c96a3f24
  - service: light.turn_on
    metadata: {}
    data: {}
    target:
      device_id: d054c414cdc4d309d574c30f2e39dfa7
mode: single

The offset needs to be specified in number of seconds, or in a hh:mm:ss format. As you have it now is likely being interpreted as 2 seconds before sunset.

Sunrise/Sunset Trigger docs

Thank you. Thats a duh moment :slight_smile: . Updated, will see if it happens correctly tomorrow.