Skip to content

Sync device events ​

Field paths are relative to one object in the message array. [] means an array item: for example, services[].rid is the rid of each service. Fields under value are shown as value.name, value.color_arr[].x, and so on.

Sync device updated ​

Topic ​

res/sync/update

Example message ​

json
[
    {
        "device_id": "BDF83E95-5B50-4711-B817-62B647665DB2",
        "id": "2ACE7DAC-6DB8-4CF2-9FFD-246D0D45D73A",
        "value": {
            "on": 1
        }
    }
]

Fields ​

FieldTypeDescription
idstringSync device ID.
device_idstringDevice ID.
valueobjectFields changed by this event.

Fields in value

FieldTypeDescription
value.onintegerOn/off state: 1: on; 0: off.
value.brightnessintegerBrightness. Range: 0-100.
value.modeintegerMode: 0: video; 1: audio; 2: game.
value.frequencyintegerIntensity: 0: low; 1: medium; 2: high; 3: maximum.
value.sourceintegerInput source: 0: HDMI1; 1: HDMI2.
value.color_configintegerActive color preset: 1 for preset 1, 2 for preset 2, and so on.
value.color_config_1object[]Color data for preset 1.
value.color_config_2object[]Color data for preset 2.
value.color_config_3object[]Color data for preset 3.
value.color_config_4object[]Color data for preset 4.
value.stop_actionintegerWhat to do when synchronization stops: 0 keeps the current state; 2 turns the lights off.
value.area_idstringUUID of the associated synchronization area.
value.area_namestringName of the associated synchronization area.

Event details ​

  • Sent when the sync device's properties change. The value object contains only the changed fields.
  • Apply the fields in value to your local state. Fields absent from the message have not changed.