DEV Community

Blazej Plis
Blazej Plis

Posted on

How to set named control remotely in q-sys designer

#av

Short description how to set named control value remotely from the same network.

  1. Add Block Controller
  2. Add new control
  3. Move control to Named Controls section
  4. Get NamedControl ID from .xml file (Tools -> Extract Named Controls)

Image description

  1. Send JSON-RPC to 1710 port

Image description

{
"jsonrpc":"2.0",
"id":1,
"method":"Control.Set",
"params":{
"Name":"Block_ControllerDoor_State",
"Value":"0"
}
}
Enter fullscreen mode Exit fullscreen mode

example success response:

{
"jsonrpc":"2.0",
"method":"EngineStatus",
"params":{
"Platform":"Emulator",
"State":"Active",
"DesignName":"DesignName",
"DesignCode":"DesignCode",
"IsRedundant":false,
"IsEmulator":true,
"Status":{
"Code":0,
"String":"OK - 2 OK"
}

Enter fullscreen mode Exit fullscreen mode

}
}

Top comments (0)