AppleTV state idle automation

When the AppleTV state changes to ‘paused’ or ‘idle,’ I would like to activate a scene to turn on some lights.

In simple terms, when I pause the content I’m watching or stop playing the content, I want the lights to turn on.

When I press the pause button on the AppleTV remote, the logbook shows: ‘AppleTV changed to Paused.’
When I press the back button on the AppleTV remote, the logbook shows: ‘AppleTV changed to Idle.’

For pause it does work fine, does anyone have an idea why it is not working for ‘idle’?

This is my automation:

alias: AppleTV Pauze
description: ""
trigger:
  - platform: state
    entity_id:
      - media_player.appletv
    to: paused
  - platform: state
    entity_id:
      - media_player.appletv
    to: idle
condition:
  - condition: sun
    after: sunset
  - condition: template
    value_template: >-
      {{ state_attr('media_player.appletv', 'app_name') in ['Netflix', 'Plex',
      'Prime Video','Infuse'] }}
action:
  - scene: scene.film_pauze
mode: single

It is working now not sure what I did.