Skip to content

GET 获取单个同步器

GET /clip/v2/resource/sync/sync_uuid

说明

  • 用于单个同步器的信息和状态

返回示例

json
{
  "code": 0,
  "data": {
    "arr": [],
    "obj": {
      "ability": 0,
      "area_id": "",
      "area_name": "",
      "brightness": 0,
      "color_config": 1,
      "color_config_1": [
        {
          "position_x": 0,
          "position_y": 0,
          "x": 39914,
          "y": 20037
        },
        {
          "position_x": 0,
          "position_y": 0,
          "x": 35106,
          "y": 23392
        },
        {
          "position_x": 0,
          "position_y": 0,
          "x": 30699,
          "y": 25918
        },
        {
          "position_x": 0,
          "position_y": 0,
          "x": 26911,
          "y": 28294
        },
        {
          "position_x": 0,
          "position_y": 0,
          "x": 21508,
          "y": 33694
        }
      ],
      "color_config_2": [
        {
          "position_x": 0,
          "position_y": 0,
          "x": 22549,
          "y": 20601
        },
        {
          "position_x": 0,
          "position_y": 0,
          "x": 26568,
          "y": 23298
        },
        {
          "position_x": 0,
          "position_y": 0,
          "x": 18270,
          "y": 21550
        },
        {
          "position_x": 0,
          "position_y": 0,
          "x": 9864,
          "y": 16510
        }
      ],
      "color_config_3": [
        {
          "position_x": 0,
          "position_y": 0,
          "x": 14023,
          "y": 17723
        },
        {
          "position_x": 0,
          "position_y": 0,
          "x": 17431,
          "y": 21480
        },
        {
          "position_x": 0,
          "position_y": 0,
          "x": 20999,
          "y": 26121
        }
      ],
      "color_config_4": [
        {
          "position_x": 0,
          "position_y": 0,
          "x": 9672,
          "y": 6607
        },
        {
          "position_x": 0,
          "position_y": 0,
          "x": 37190,
          "y": 23165
        }
      ],
      "frequency": 0,
      "id": "5075D324-2DE0-4C08-AC1B-FB07B1C447A9",
      "mode": 0,
      "name": "",
      "on": 0,
      "source": 0,
      "stop_action": 0,
      "type": "sync"
    }
  },
  "msg": "success"
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenone状态码none
» msgstringtruenone说明信息none
» dataobjecttruenonenone
»» objobjecttruenonenone
»»» idstringtruenone同步器IDnone
»»» typestringtruenone资源类型此处固定为sync
»»» namestringtruenone名称none
»»» abilityintegertruenone能力预留
»»» onintegertruenone开关0关, 1开
»»» brightnessintegertruenone亮度1 - 100
»»» sourceintegertruenone数据源0 HDMI1, 1 HDMI2
»»» modeintegertruenone模式0视频, 1音乐, 2游戏
»»» frequencyintegertruenone强度0低, 1中, 2高, 3最高
»»» stop_actionintegertruenone停止动作0保持, 2关灯
»»» color_configintegertruenone当前配置勾选哪个 config, 1对应 color_config_1, 2对应 color_config_2, 依次类推
»»» color_config_1[object]truenone配置1none
»»»» xintegertruenoneX值none
»»»» yintegertruenoneY值none
»»» color_config_2[object]truenone配置2none
»»»» xintegertruenoneX值none
»»»» yintegertruenoneY值none
»»» color_config_3[object]truenone配置3none
»»»» xintegertruenoneX值none
»»»» yintegertruenoneY值none
»»» color_config_4[object]truenone配置4none
»»»» xintegertruenoneX值none
»»»» yintegertruenoneY值none
»»» area_idstringtruenone区域ID与之关联的同步区域ID
»»» area_namestringtruenone区域名称与之关联的同步区域名称