Help complement automation AIMP

Hi! help to supplement the automation, in my version, at a certain event, aimp plays a certain playlist with a voice notification, but it happens that a playlist from the radio is turned on and when the event occurs, the playlist is played and the radio stops playing. I would like to add a condition to the automation that if a playlist from the radio was played before the event occurred and the event occurred, then the playlist from the radio continued to be played

- id: '1633027956776'
  alias: Voice
  description: ''
  trigger:
  - type: not_opened
    platform: device
    device_id: 6a0ba9f0c99329225601685da9b79b57
    entity_id: binary_sensor.0x158d0006b7d315_contact
    domain: binary_sensor
  condition: []
  action:
  - service: media_player.select_source
    target:
      entity_id: media_player.aimp
    data:
      source: home_c
  mode: single