Skip to main content

Device Commands

Commands for device enumeration, configuration, and management.

get_devices

Returns all connected devices with their current configuration.

Parameters: none

{"jsonrpc":"2.0","method":"get_devices","id":1}
{"jsonrpc":"2.0","result":[
{
"port": "COM3",
"manufacturer": "Skydimo",
"model": "LED Controller",
"serial_id": "ABC123",
"nickname": "Desk Strip",
"outputs": [...]
}
],"id":1}

get_device

Returns a single device by port identifier.

Parameters:

FieldTypeDescription
portstringDevice port identifier
{"jsonrpc":"2.0","method":"get_device","params":{"port":"COM3"},"id":1}

scan_devices

Manually triggers device discovery. Useful when auto-detection misses a device.

Parameters: none

{"jsonrpc":"2.0","method":"scan_devices","id":1}
{"jsonrpc":"2.0","result":null,"id":1}

A devices-changed event will fire if new devices are found.


set_device_nickname

Assign a custom display name to a device.

Parameters:

FieldTypeDescription
portstringDevice port identifier
nicknamestring | nullCustom name, or null to clear
{"jsonrpc":"2.0","method":"set_device_nickname","params":{"port":"COM3","nickname":"Desk Strip"},"id":1}

set_device_controller

Override the controller plugin for a device.

Parameters:

FieldTypeDescription
portstringDevice port identifier
controllerIdstring | nullController plugin ID, or null for auto-detect
{"jsonrpc":"2.0","method":"set_device_controller","params":{"port":"COM3","controllerId":"skydimo_serial"},"id":1}

get_device_config

Returns the full configuration tree for a device.

Parameters:

FieldTypeDescription
portstringDevice port identifier
{"jsonrpc":"2.0","method":"get_device_config","params":{"port":"COM3"},"id":1}

get_led_locks

Returns the current LED lock state (which LEDs are locked by extensions).

Parameters:

FieldTypeDescription
portstring?Optional device port filter
outputIdstring?Optional output filter
{"jsonrpc":"2.0","method":"get_led_locks","params":{"port":"COM3"},"id":1}

set_output_segments

Define segment zones within an output port.

Parameters:

FieldTypeDescription
portstringDevice port identifier
outputIdstringOutput port ID
segmentsSegmentDefinition[]Segment configurations
{"jsonrpc":"2.0","method":"set_output_segments","params":{
"port":"COM3",
"outputId":"out1",
"segments":[
{"id":"seg1","name":"Left Half","startIndex":0,"endIndex":72},
{"id":"seg2","name":"Right Half","startIndex":72,"endIndex":144}
]
},"id":1}

flip_scope_layout

Flip the LED layout for a scope along an axis.

Parameters:

FieldTypeDescription
portstringDevice port identifier
outputIdstring?Output port ID
segmentIdstring?Segment ID
axisstring"H" (horizontal) or "V" (vertical)
{"jsonrpc":"2.0","method":"flip_scope_layout","params":{"port":"COM3","outputId":"out1","axis":"H"},"id":1}