Skip to main content

CEC control commands via UDP

Configure the UDP server

To establish UDP connection between 2 or more local devices you have to set a sensor configuration to both sender and receiver devices

smalinfo.pngIf you need help with utilizing UDP server, please read this article.

Configuration

{
"services": [
{
"uid": "",
"type": "UDP",
"settings": {
"address": "224.0.0.3",
"port": 5974
}
}
]
}

CEC control via UDP

You can turn ON an OFF the screens of the target devices

Receiver Content

You just have to add two Sensor Events to receive events from the controller content

  • Create a content for this purpose or use an existing content

Sensor Event

Open the content

  • Navigate yourself to Properties >> Content >> Edit Sensor Events

  • Choose the Content wide events tab

  • Click on the Add new

  • Choose Static sensor or device event action type

  • Select the Screen on/off type

  • Choose Screen off as value

  • Then add the Sensor ID you used in the controller content

img.png

Enable Allow specifying sensor value in Input settings

img_1.png

  • Then fill the Sensor Event and the Sensor Value on the left with the event and value you used in the controller content

  • Save it

  • Repeat these steps with the Screen on value.

  • Save it and save the content

  • Assign the controller content to the sender device, and the receiver content to the receiver device(s).

Do not forget!

Do not forget to set the receiver device or devices IP address and the port in the controller content, otherwise it will not work!

Downloadable content