Kodi Power on/off

I can’t get the WOL on my kodi working? Along with HA, I use Yatse remote control. Wol works with Yatse just fine, but I want it to work in HA too. I have Kodi working on an Androidbox. In the Yatse configuration I have to add a WOL port number, so a launcher on my Android device can startup Kodi on the same device.

Example off Yatse

- platform: kodi
  host: !secret kodi_woonkamer
  name: kodi_W
  port: 8080
  turn_on_action:
- service: wake_on_lan.send_magic_packet
  data:
    mac: !secret kodi_woonkamer_mac
    port: 5600
    broadcast_address: !secret kodi_woonkamer
  turn_off_action:
service: media_player.kodi_call_method
data:
  entity_id: media_player.kodi_w
  method: System.Suspend

I have added the Wake on LAN component on my configuration.yaml, and added port number 5600 on the datafield to turn_on_action. I could be that this option isn’t available in the components/media_player/kodi.py.

https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/media_player/kodi.py