Anyone know while this automation keeps turning the lights/light back on?

Anyone know while this automation keeps turning the lights/light back on? I can’t see anything that would trigger it.

alias: Good Night
description: ""
trigger:
  - platform: state
    entity_id:
      - input_button.good_night
  - platform: state
    entity_id:
      - input_boolean.good_night
    to: "on"
condition: []
action:
  - parallel:
      - if:
          - condition: state
            entity_id: input_boolean.good_night
            state: "on"
        then:
          - service: input_boolean.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: input_boolean.good_night
      - service: input_boolean.turn_off
        target:
          entity_id:
            - input_boolean.bedroom_presence_on_off
        data: {}
      - service: switch.turn_on
        metadata: {}
        data: {}
        target:
          entity_id: switch.bedroom_fan
      - service: input_boolean.turn_on
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.night_mode
  - service: light.turn_off
    target:
      entity_id:
        - light.josh_light
        - light.shannon_light
    data: {}
    enabled: false
  - type: turn_off
    device_id: 0255d58a03e306f701a4592ecefe723f
    entity_id: d5b68be3eeb9de49e55357d655a03efb
    domain: light
  - type: turn_off
    device_id: 6b3f1a29b852d6697faaf03019632cc7
    entity_id: 757a076992948b8bcafd58b317eccb70
    domain: light
mode: single

Good Night triggered by state of Good Night

2:59:06 PM - 15 minutes ago

Bedroom Presence On/OFF turned off triggered by automation Good Night triggered by state of Good Night

2:59:06 PM - 15 minutes ago

Night Mode turned on triggered by automation Good Night triggered by state of Good Night

2:59:06 PM - 15 minutes ago

Good Night turned off triggered by automation Good Night triggered by state of Good Night

2:59:06 PM - 15 minutes ago

Bedroom Fan turned on triggered by automation Good Night triggered by state of Good Night

2:59:06 PM - 15 minutes ago

Josh Light turned off triggered by automation Good Night triggered by state of Good Night

2:59:07 PM - 15 minutes ago

Shannon Light turned off triggered by automation Good Night triggered by state of Good Night

2:59:08 PM - 15 minutes ago

Josh Light turned on triggered by automation Good Night triggered by state of Good Night

2:59:08 PM - 15 minutes ago

you didn’t specify which light you’re talking about. josh light?

you have some suspicious looking helpers… like the night_mode. and no clue what those last entities are. do you have any other automations that are triggered as a side effect of these? is it possible that it’s being caused by another automation that you didn’t post, but is being invoked because of this?

since this automation is short, something i’d do to narrow it down is just binary search disable half the automation and see if still happens. if it does, it’s in the enabled part. if it stops the issue is likely in the disabled part… great… then take the half that’s a culprit and disable half of that… until you find what’s causing it.