Skip to content

Data Models ​

ResInfo ​

json
{
  "rid": "string",
  "rtype": "string"
}

Fields ​

FieldTypeRequiredDescription
ridstringYesResource UUID
rtypestringYesResource type

DeviceDetail ​

json
{
  "id": "string",
  "type": "string",
  "name": "string",
  "join_status": 0,
  "online": 0,
  "has_new": 0,
  "product": {
    "cat1_id": 0,
    "cat1_name": "string",
    "cat2_id": 0,
    "cat2_name": "string",
    "cat3_id": 0,
    "cat3_name": "string",
    "manufacturer": "string",
    "model": "string",
    "hardware_version": "string",
    "software_version": "string",
    "zigbee_version": "string"
  },
  "services": [
    {
      "rid": "string",
      "rtype": "string"
    }
  ]
}

Fields ​

FieldTypeRequiredDescription
idstringYesDevice UUID
typestringYesAlways device.
namestringYesName
join_statusintegerYesFilter for join_status=1 to show devices the user has added. A value of 0 identifies a device that has not been selected.
onlineintegerYes1 if online; 0 if offline.
has_newintegerYes1 if an update is available; otherwise 0.
productobjectYesProduct information
product.cat1_idintegerYesLevel 1 category ID. 1: gateway; 2: light; 3: sync device.
product.cat1_namestringYesLevel 1 category name
product.cat2_idintegerYesProduct category ID; for example, 203 for CW lights or 205 for RGBCW lights.
product.cat2_namestringYesLevel 2 category name
product.cat3_idintegerYesProduct-specific category ID; for example, 20504 for a Bar light.
product.cat3_namestringYesLevel 3 category name
product.manufacturerstringYesManufacturer reported by the Zigbee Basic cluster.
product.modelstringYesModel reported by the Zigbee Basic cluster.
product.hardware_versionstringYesHardware version
product.software_versionstringYesSoftware version
product.zigbee_versionstringYesZigbee version
servicesResInfo[]Yes—

PowerOn ​

json
{
  "mode": 0,
  "on_mode": 0,
  "on": 0,
  "brightness_mode": 0,
  "brightness": 0,
  "color_mode": 0,
  "color_x": 0,
  "color_y": 0,
  "color_cw": 0
}

Fields ​

FieldTypeRequiredDescription
modeintegerYesMode. 0: default; 1: restore previous state; 2: custom; 3: on; 4: off.
on_modeintegerYesOn/off mode. 0: default; 1: restore previous state; 2: custom.
onintegerYesOn/off state
brightness_modeintegerYesBrightness mode. 0: default; 1: restore previous state; 2: custom.
brightnessintegerYesBrightness, from 0 to 100.
color_modeintegerYesColor mode. 0: default; 1: restore previous state; 2: custom XY; 3: custom color temperature.
color_xintegerYesColor X coordinate
color_yintegerYesColor Y coordinate
color_cwintegerYesColor temperature, from 2000 to 6500.

ColorXY ​

json
{
  "x": 0,
  "y": 0
}

Fields ​

FieldTypeRequiredDescription
xintegerYesX coordinate
yintegerYesY coordinate

LightDetail ​

json
{
  "id": "string",
  "type": "string",
  "name": "string",
  "on": 0,
  "brightness": 0,
  "color_mode": 0,
  "color_cw": 0,
  "color_x": 0,
  "color_y": 0,
  "color_len": 0,
  "color_arr": [
    {
      "x": 0,
      "y": 0
    }
  ],
  "pack": [
    "string"
  ],
  "position_x": 0,
  "position_y": 0,
  "positions": "string",
  "power_on": {
    "mode": 0,
    "on_mode": 0,
    "on": 0,
    "brightness_mode": 0,
    "brightness": 0,
    "color_mode": 0,
    "color_x": 0,
    "color_y": 0,
    "color_cw": 0
  },
  "support_segment": 0
}

Fields ​

FieldTypeRequiredDescription
idstringYesLight UUID
typestringYesAlways light.
namestringYesName
onintegerYesOn/off state
brightnessintegerYesBrightness, from 1 to 100.
color_modeintegerYesColor mode. 0: HSV color; 1: XY color; 2: color temperature; 3: multi-segment XY color.
color_cwintegerYesColor temperature, from 2000 to 6500.
color_xintegerYesX coordinate in the XY color space.
color_yintegerYesY coordinate in the XY color space.
color_lenintegerYesNumber of individually controlled light segments.
color_arrobject[]YesSegment data
color_arr[].xintegerYesX coordinate
color_arr[].yintegerYesY coordinate
packstring[]NoFor BweeApp use only.
position_xintegerNoFor BweeApp use only.
position_yintegerNoFor BweeApp use only.
positionsstringYesFor BweeApp use only.
power_onPowerOnNoPower-on behavior
support_segmentintegerYes1 if the light supports segmented color; otherwise 0.

RoomDetail ​

json
{
  "id": "string",
  "type": "string",
  "name": "string",
  "room_kind": 0,
  "room_type": "string",
  "icon": "string",
  "background": 0,
  "sequence": 0,
  "children": [
    {
      "rid": "string",
      "rtype": "string"
    }
  ],
  "services": [
    {
      "rid": "string",
      "rtype": "string"
    }
  ]
}

Fields ​

FieldTypeRequiredDescription
idstringYesRoom UUID
typestringYesAlways room.
namestringYesRoom name.
room_kindintegerYes0 for a standard room; 1 for Whole Home; 2 for Unassigned.
room_typestringYesA free-form room category, such as "Bedroom" or "Kitchen".
iconstringYesFor BweeApp use only.
backgroundintegerYesFor BweeApp use only.
sequenceintegerYesFor BweeApp use only.
childrenResInfo[]YesDevices in the room. Each entry currently refers to a device resource.
servicesResInfo[]YesTypically includes a group_light service for controlling the room's lights.

SceneDetail ​

Check your firmware: This model assigns scene_type=1 to image scenes and 2 to color scenes. The scene endpoints and MQTT reference reverse these values. Verify the mapping on your gateway before using this field.

json
{
  "id": "string",
  "type": "string",
  "parent_id": "string",
  "parent_type": "string",
  "name": "string",
  "scene_type": 0,
  "is_active": 0,
  "picture_id": "string",
  "picture_type": "string",
  "picture_url": "string",
  "icon": "string",
  "background": "string",
  "sequence": 0,
  "colors": [
    0
  ]
}

Fields ​

FieldTypeRequiredDescription
idstringYesScene ID
typestringYesAlways scene.
parent_idstringYesParent resource
parent_typestringYesAlways group_light.
namestringYesName
scene_typeintegerYes1 for an image scene; 2 for a color scene.
is_activeintegerYes1 if active; otherwise 0.
picture_idstringYesImage. Used for image scenes.
picture_typestringYesAlways file.
picture_urlstringYesImage URL
iconstringYesFor BweeApp use only.
backgroundstringYesFor BweeApp use only.
sequenceintegerYesFor BweeApp use only.
colorsinteger[]YesFor BweeApp use only.

SyncDetail ​

json
{
  "id": "string",
  "type": "string",
  "name": "string",
  "ability": 0,
  "on": 0,
  "brightness": 0,
  "source": 0,
  "mode": 0,
  "frequency": 0,
  "stop_action": 0,
  "color_config": 0,
  "color_config_1": [
    {
      "x": 0,
      "y": 0
    }
  ],
  "color_config_2": [
    {
      "x": 0,
      "y": 0
    }
  ],
  "color_config_3": [
    {
      "x": 0,
      "y": 0
    }
  ],
  "color_config_4": [
    {
      "x": 0,
      "y": 0
    }
  ],
  "area_id": "string",
  "area_name": "string"
}

Fields ​

FieldTypeRequiredDescription
idstringYesSync device ID
typestringYesAlways sync.
namestringYesName
abilityintegerYesCapabilities. Reserved.
onintegerYesOn/off state. 0: off; 1: on.
brightnessintegerYesBrightness, from 1 to 100.
sourceintegerYesInput source. 0: HDMI1; 1: HDMI2.
modeintegerYesMode. 0: video; 1: music; 2: game.
frequencyintegerYesIntensity. 0: low; 1: medium; 2: high; 3: maximum.
stop_actionintegerYesStop action. 0 keeps the current state; 2 turns the lights off.
color_configintegerYesSelects the active preset: 1 uses color_config_1, 2 uses color_config_2, and so on.
color_config_1object[]YesConfiguration 1
color_config_1[].xintegerYesX coordinate
color_config_1[].yintegerYesY coordinate
color_config_2object[]YesConfiguration 2
color_config_2[].xintegerYesX coordinate
color_config_2[].yintegerYesY coordinate
color_config_3object[]YesConfiguration 3
color_config_3[].xintegerYesX coordinate
color_config_3[].yintegerYesY coordinate
color_config_4object[]YesConfiguration 4
color_config_4[].xintegerYesX coordinate
color_config_4[].yintegerYesY coordinate
area_idstringYesID of the associated synchronization area.
area_namestringYesName of the associated synchronization area.