Sending a TCP message to turn on KODI with XBMCStarter

A HA noob here. Still getting my head around this amazing tool.

I am trying to work out how to send a TCP Wakeup message to an app on a PC. Can’t work out how to format it. Please help. :slight_smile:

I have a KODI system running on a PC. My HA is running via HassOS on a PI4.

I have the ability to use KODI in HA. Great Stuff.

What I would like to do is Start and Stop KODI’s app on the PC.

On the PC I use the same tool as I use with Yatse - that is “XBMCStarter”.

A small app that runs at startup on the PC that Yatse can talk to to start KODI via a magic packet.

I have been trying to work out how to mimic this in HA and failing. TCP? Curl? Command Line? I am at a loss. Read lots of forum, and hacked all kinds of attempts, without success.

Here is the C code that makes up XBMCStarter

Please help, what is the command I need to send to the PC? And how do I do that from HA?

In case anyone else was trying to get this to work…

shell_command:
  start_kodi: "echo -n 'YatseStart-Xbmc' | nc -u -w1 192.168.0.88 5600"