Issues with automation

After finally getting switchbot setup along with finally getting my phone setup with the companion app I was trying to make a automation to turn on my pc. I had it running till one day WOL just STOPPED working. So I grabbed the switch bot. The automation works TO well… Well kidna… It is triggering ALL THE TIME in the time frame of 5-9am. Like every 5 mins. I entered a delay and have it on single mode but my smooth brain must have missed something. Any help would be great :slight_smile:

alias: tj home
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.sm_g975u1_wifi_connection
    to: wmis2
  - platform: state
    entity_id:
      - device_tracker.sm_g975u1
    to: home
condition:
  - condition: time
    after: "05:00:00"
    before: "09:00:00"
action:
  - service: light.turn_on
    target:
      device_id:
        - d8350f365419be1b6678b326417b0597
    data: {}
  - service: media_player.play_media
    data:
      media_content_type: routine
      media_content_id: tjs computer on
    target:
      device_id: 9d18c55bce1f4f1e8833a951dba59ca5
  - service: switch.turn_on
    metadata: {}
    data: {}
    target:
      device_id: 70515e09af4d0a1a3bbf415017fb8442
  - delay:
      hours: 4
      minutes: 0
      seconds: 0
      milliseconds: 0
mode: single