Lg tv - turn on via wake on lan issue

Hi,

Have spent a lot of time reading similar threads but with no joy. Would appeciate assistance. I know WOL works because I have got it to work through my phone with the LG app.

Here is my configuration:

LG TV

wake_on_lan:
media_player:

  • platform: webostv
    host: 192.168.1.234
    name: ‘LG webOS TV’
    icon: mdi:television
    turn_on_action:
    service: wake_on_lan.send_magic_packet
    data:
    mac: xx-xx-xx-xx-xx-xx

Note I have tried using no quotation marks around mac still same problem.

Logs here - https://pastebin.com/LGJsqfKk

Note the immediate things that stands out is :

voluptuous.error.MultipleInvalid: required key not provided @ data[‘mac’]

Thanks
Rav

Ok RESOLVED finally thanks to this thread and using the switch concept.