Automation help: HA, Sonoff switch, sunset

Hello,

I have an automation issue that I cannot find the answer to after searching the forums.
I have a Sonoff switch that is flashed to the Tasmota firmware. I have a lamp plugged into the switch. I want the lamp to turn on at sunset and turn off two hours later. Right now I have two automations, one to to turn it on and one to turn it off. The one to turn it on at sunset works perfectly. The one to turn it off does not seem to work. I have tried single quotes and double quotes around the offset, having a + sign and not having the + sign. Is there something I am missing?

This is my automation to turn it on:

- alias: 'Turn on Strip Cord 2 at dusk'
  trigger:
    platform: sun
    event: sunset
  action:
    service: switch.turn_on
    entity_id: switch.strip_cord_2

This is the one to turn it off:

 - alias: 'Turn off Strip Cord 2 at night'
   trigger:
     platform: sun
     event: sunset
     offset: '+02:30:00'
   action:
     service: switch.turn_off
     entity_id: switch.strip_cord_2

You could do this instead…

- alias: 'Turn on Strip Cord 2 at dusk and off 2:30hrs later'
  trigger:
    platform: sun
    event: sunset
  action:
    service: switch.turn_on
    entity_id: switch.strip_cord_2
    delay: 02:30:00
    service: switch.turn_off
    entity_id: switch.strip_cord_2

Does it work by triggering the automation in the FE?

That worked perfectly, thank you