Truning on TV with script and Google Home


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)

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

Thank you for your help.


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


Hope this will help