Stop an automation running if another one is running

I have an automation that monitors the bedroom light and turns it off 4 minutes after it comes on (to stop it being left on all day).

I also have an automation the performs a wake up routine that gently fades the bedroom light up over 15 minutes.

These two obviously clash, so the logic I’d like is that if the “wake up” routine is running, the “bedroom light timeout” doesn’t run.

I noticed that the automations have a “current” state that seemed to change to a 1 while it was running. However the following doesn’t work.

alias: Bedroom Light Timeout
description: ''
trigger:
  - platform: state
    entity_id: light.bedroom
    from: 'off'
    to: 'on'
    for: '00:10:00'
condition:
  - condition: state
    entity_id: automation.wakeup
    state: '0'
    attribute: current
action:
  - service: light.turn_off
    data:
      transition: 60
    entity_id: light.bedroom
mode: single