Slow automation, how to troubleshoot

I have an issue where my automation is taking two to three seconds to fire after getting the trigger. I am trying to troubleshoot why. I have tried:
-Testing the automation directly and it fires without delay.
-Testing the button press that is the trigger and I see it right away.
-Setting the state in dev and it will usually fire the automation right away.

I cant seem to see where the delay is being introduced. I have very few automatons at this point so how would I go about troubleshooting? HA version 84.3 (the last version the Harmony component worked)

Here is my automations.yaml:
- id: letsencrypt-renewal
alias: Let’s Encrypt Renewal
trigger:
- platform: time
at: 00:00:00
action:
- service: hassio.addon_restart
data:
addon: core_letsencrypt
- id: ‘1547404395456’
alias: Sonoff Power State on HA start-up
trigger:
- event: start
platform: homeassistant
condition: []
action:
- service: mqtt.publish
data:
topic: cmnd/sonoffs/state
payload: ‘’
- id: ‘1548110829104’
alias: Dining Room Pico On
trigger:
- entity_id: sensor.pico_remotes_dining_room_pico
platform: state
from: ‘0’
to: ‘1’
action:
entity_id: light.dining_room_main_lights
service: light.turn_on
- id: pico_off
alias: Dining Room Pico Off
trigger:
- entity_id: sensor.pico_remotes_dining_room_pico
platform: state
from: ‘0’
to: ‘4’
action:
entity_id: light.dining_room_main_lights
service: light.turn_off

Please format your post according to the blue banner at the top of the page.