Truning on TV with script and Google Home

Hi,

I’m trying a script to turn on my TV (webos tv) using google home mini.

I tried many things but I still have an error which is :

Failed to call service script/1583322871941. Unable to find service wake_on_lan/send_magic_packet

I don’t have any problem by turning on the tv on HA but this script makes me crazy.

Here is the code I tried (I used UI)

'1583322871941':
  alias: Allumer la télévision
  sequence:
  - data: {}
    entity_id: media_player.lg_tv
    service: media_player.turn_on

Thank you for your help.

Tricky

Ok, I found the mistake. a line was missing in my configuration.yaml

wake_on_lan:

Hope this will help