Activating automation by scene

Hi folks,

im running Home Assistant 2023.1.2 on my own debian vm.

I have an automation which turns on my tv via wol. When I‘m running the automation itself, everything is working well.
But when I want to activate the automation via scene, it‘s not working. There are no entries in the protocol regarding the automation.

Automation:

alias: Wohnzimmer - TV an
description: ""
trigger:
  - platform: webostv.turn_on
    entity_id: media_player.lg_webos_smart_tv
condition: []
action:
  - service: wake_on_lan.send_magic_packet
    data:
      mac: A0:6F:AA:46:2E:72
mode: single

Scene:

- id: '1673295162966'
  name: TV mit Licht
  entities:
    light.wohnzimmer_tv:
      min_color_temp_kelvin: 2202
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 454
      effect_list:
      - None
      - candle
      supported_color_modes:
      - color_temp
      color_mode: color_temp
      brightness: 212
      color_temp_kelvin: 2577
      color_temp: 388
      hs_color:
      - 28.679
      - 69.803
      rgb_color:
      - 255
      - 162
      - 77
      xy_color:
      - 0.538
      - 0.389
      effect: None
      mode: normal
      dynamics: none
      friendly_name: Wohnzimmer - TV
      supported_features: 44
      state: 'on'
    media_player.bf_appletv:
      source_list:
      - App Store
      - Arcade
      - ARD Mediathek
      - ARTE
      - Computer
      - Das Erste
      - Einstellungen
      - Filme
      - Fitness
      - Fotos
      - Gymondo
      - Joyn
      - Moonlight
      - Musik
      - Netflix
      - Plex
      - Podcasts
      - Prime Video
      - RTL+
      - SAT.1
      - Speedtest
      - Spotify
      - Suchen
      - Tagesschau
      - Tatort
      - TV
      - TV-Sendungen
      - Vimeo
      - WOW
      - YouTube
      - ZDFmediathek
      app_id: com.google.ios.youtube
      app_name: YouTube
      friendly_name: BF-AppleTV
      supported_features: 450487
      state: standby
    remote.bf_appletv:
      friendly_name: BF-AppleTV
      supported_features: 0
      state: 'on'
    automation.turn_on_living_room_tv_with_wakeonlan:
      last_triggered: '2023-01-11T00:41:00.388555+00:00'
      mode: single
      current: 0
      id: '1673397421071'
      friendly_name: Wohnzimmer - TV an
      state: 'on'
  metadata:
    automation.turn_on_living_room_tv_with_wakeonlan:
      entity_only: true
  icon: mdi:television-ambient-light

You can’t do this. Scenes assign states to entities. The only state an automation has is the number of parallel instances running. You can’t set this to trigger it.

Use a script instead of a scene. You can use services to assign the states you want to the entities and there is also a service to trigger an automation that you can use.