Turn ON webostv

Hello,
i need help about turn on LG TV with webostv.

Follow my config:
media.yaml

- platform: webostv
  host: !secret ip_tv_soggiorno
  name: Tv Soggiorno
  timeout: 5
  filename: webostv.conf
  turn_on_action:
    service: wake_on_lan.send_magic_packet
    data:
      mac: !secret mac_tv_soggiorno
      message: "Accensione"
  customize:
    sources:
      - livetv
      - youtube
      - netflix
      - Amazon Prime Video  

in configuration.yaml

wake_on_lan:
media_player: !include media.yaml

in ui-lovelace.yaml

- icon: mdi:sofa  

title: Soggiorno
path: Soggiorno
background: radial-gradient(crimson, skyblue)
cards:
    # Entities card will take a list of entities and show their state.
  - type: media-control
    # Title of the entities card
    title: TV Soggiorno
    # The entities here will be shown in the same order as specified.
    # Each entry is an entity ID or a map with extra options.
    entity: media_player.tv_soggiorno     

all works except turnig on tv;

i have tried to create a switch with wake on lan

 - platform: wake_on_lan
 name: LG
 mac_address: !secret mac_tv_soggiorno

and it works! So i have set

  turn_on_action:
     service: switch.lg

but it dont works!!

this is log when i press turn on:

2019-03-06 00:16:45 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception 
      was never retrieved
Traceback (most recent call last):
 File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 289, in     
_handle_service_platform_call
await getattr(entity, func)(**data)
 File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
  result = self.fn(*self.args, **self.kwargs)
 File "/usr/local/lib/python3.7/site-packages/homeassistant/components/webostv/media_player.py",    
line 299, in turn_on
 self._on_script.run()
 File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 112, in run
  self.async_run(variables, context), self.hass.loop).result()
 File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
   File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 131, in async_run
    await self._handle_action(action, variables, context)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 210, in 
_handle_action
    action, variables, context)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 299, in    
_async_call_service
    context=context
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 85, in     
async_call_from_config
    domain, service_name, service_data, blocking=blocking, context=context)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1113, in async_call
    processed_data = handler.schema(service_data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 589, in     
validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 427, in     
validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['message']

Please help me!

I have read all other topic without found a solution…

The error message is indicating you have an invalid key (invalid option) in the configuration. The invalid option is “message”.

For the wake_on_lan component, this is invalid:

message: "Accensione"

I have a question for you. Why is the option called mac here:

  turn_on_action:
    service: wake_on_lan.send_magic_packet
    data:
      mac: !secret mac_tv_soggiorno
      message: "Accensione"

But it is called mac_address here?

- platform: wake_on_lan
  name: LG
  mac_address: !secret mac_tv_soggiorno

Thank you for reply. “message” is there because if you check at https://www.home-assistant.io/components/media_player.webostv/ you can see in the example that there is keyword message. Same thing for keyword Mac or similari, my code is based on example in the docs, so you can check that for media player it say Mac, but for switch is Mac_address. I dont know why…
So i solved, problem was message… Boh… Thank you so much!!!