Problem with automations.yaml

So I’m trying to make my lights change when my TV source is on Netflix based on this post: Using the LG webOS source value to trigger events

- alias: "TV Netflix"
  trigger:
    platform: state
    entity_id: sensor.living_room_source
    to: 'Netflix'
  condition:
    - condition: state
      entity_id: sun.sun
      state: 'below_horizon'
    - condition: state
      entity_id: media_player.tele
      state: 'playing'
  action:
    entity_id: scene.movies

Having this error:
Invalid config for [automation]: [entity_id] is an invalid option for [automation]. Check: automation->action->0->entity_id. (See /config/configuration.yaml, line 11).

But I have that defined in my configuration.yaml file

media_player:
  platform: webostv
  name: tele
  host: IP...

I’m new at HomeAssistant and have no idea what I’m doing wrong here…
Any solutions?

Thank you.

You miss the service call in the action part of the automation

Should be something like this

action:
  service: scene.turn_on
  entity_id: scene.movies
1 Like

More automation examples

Seems like there is no more errors, so it was that.
I thought it was some specific config for him, not something necessary.

Thank you!