Skip to content

Device Operations ​

See WebSocket API for the connection, message format and common response fields.

API index

actionOperations
biz3OperateIoTcmd, <cmdCode number> (Touch Pro)
biz3TriggerLockerpubDeviceStateChange (server push), pubUserDeviceChange (server push)
biz3InvokeWebAPIswebapi_ssm_shadow_get, webapi_history_get, webapi_cmd_send
biz3SchedulegetScheduleList, cancelSchedule
biz3IRRemotegetRemoteList, getRemoteListVersion, searchRemoteList, sendIR, updateRemoteState, addIRRemote, deleteIRRemote, duplicateIRRemote, updateRemoteAlias, setRemoteKeyOrder, getRemoteKeyOrder, getIRMode, setIRMode, subscribeIRMode, subscribeIRModeRsp (server push), subscribeIRData, subscribeIRDataRsp (server push), unsubscribeIRMode, unsubscribeIRData, matchRemote, getIRCodes, addIRCode, updateIRCode, deleteIRCode, addRemoteToMatter
biz3Face3Qrcommand, list, live, viewer

biz3OperateIoT ​

Relay a binary command through the cloud to a device IoT topic (Hub3 'wm2…cmd' or Touch Pro 'stp…cmd'); device reports are pushed back with the same action.

cmd ​

Send a binary IoT command to a Hub3 (or a device behind a Hub3): firmware update, LED duty, add/remove Sesame, Matter pairing, relay switch, clear WiFi SSID.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3OperateIoT'
opstringYesAlways 'cmd'
topicstringYes'wm2' + hub3TopicId(hub3_id) + 'cmd'. hub3TopicId: legacy Hub3 (UUID starts with '00000000-055A-FD81-0D00-', case-insensitive) uses the last segment (MAC); Hub3 Pro uses the full UUID. hub3_id defaults to device_id
payloadstring (base64)Yesbase64( sign[4B] ‖ cmd[1B] ‖ UTF-8(device_id) ‖ extra ). sign is Cmac.cmacTime(secretKey) (8 hex chars → 4 bytes; same algorithm as biz3TriggerLocker.sign). Extra by cmd: 101/103 (add/remove Sesame) = sesameId[16B] ‖ ssmSecKa[16B, 16 zero bytes if no key] ‖ nickName length[1B] ‖ nickName UTF-8 ‖ productType[1B] ‖ matterProductType[1B]; 92 (LED) = op[1B: 1=set, 2=get] ‖ duty[1B 0-255]; 208 (relay) = relayId[1B: 1/2] ‖ action[1B: 0=off, 1=on]; 3, 137, 153, 210 carry no extra
json
{
  "action": "biz3OperateIoT",
  "op": "cmd",
  "topic": "wm2xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxcmd",
  "payload": "<base64(sign|cmd|device_id|extra)>"
}

Response

FieldTypeDescription
actionstring'biz3OperateIoT'
opnumber | stringSame command code as the request; the client dispatches to the callback registered for this op (registerIotCallback)
UUIDstring (optional)Reporting device UUID; UUID takes precedence over touch_id
touch_idstring (optional)Used as the device id when UUID is absent
dataobject (optional)Device report; passed to the callback as the 2nd argument when present, otherwise the whole message is passed
data.progressnumber (cmd 3)DFU progress (negative values are connecting/starting phases; includes completed/aborted markers)
data.versionTagstring (cmd 3)New firmware version after the update completes
data.UUIDstring (cmd 3)UUID of the device reporting progress
data.ledDutynumber 0-255 (cmd 92)Current LED duty; the client converts it to a percentage
data.qrCodestring (cmd 137)Matter pairing QR code payload
data.manualCodestring (cmd 137)Matter manual pairing code
data.statusCodenumber (cmd 153)Result of opening the pairing window; 0 = success

Note

cmd values (constants/cmdCode.js): 3 ssmOSUpdate, 92 HUB3_ITEM_CODE_LED_DUTY, 101 SSM3_ITEM_ADD_SESAME, 103 SSM3_ITEM_REMOVE_SESAME, 137 HUB3_MATTER_PAIRING_CODE, 153 HUB3_MATTER_PAIRING_WINDOW, 208 HUB3_ITEM_CODE_RELAY_SWITCH, 210 HUB3_ITEM_CODE_CLEAR_WIFI_SSID. Comment: connectionId is added by the cloud automatically, not by the client. Comment: firmware validates a fixed structure length; when there is no Sesame key, 16 zero bytes must be padded or the command is silently dropped. Responses carry the device's command code (number) as op; callbacks are registered per code. For 101/103 the data is passed through to the caller without reading specific fields. When embedded in the app (isAppHome) the message is not queued for resend while disconnected.

<cmdCode number> (Touch Pro) ​

Send card/passcode binary commands to a Sesame Touch Pro (auth device): fetch, mode switch, add, delete, rename, batch upload/delete.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3OperateIoT'
opnumberYesCommand code, equal to payload byte 0: 109 get cards, 125 get passcodes, 114/130 card/passcode mode set, 140 add card, 138 add passcode, 108 delete card, 124 delete passcode, 107/123 card/passcode rename, 137 change passcode value, 182/184 batch add cards/passcodes, 183/185 batch delete cards/passcodes
topicstringYes'stp' + auth device UUID + 'cmd'
payloadstring (base64)YesByte 0 is the code. 109/125: code only. 114/130: [code, mode], mode 0=verify 1=enroll. 140/138: 41 bytes [code, 0xF0 (USED), type (card 0x80 = added from IoT / passcode 0x00), idLen, id zero-padded to 16B, nameUUIDLen (16), nameUUID 16B, 4 trailing zero bytes]. 108/124: [code, id bytes]. 107/123: [code, idLen, id, new nameUUID 16B]. 137: [code, oldLen, old, new]. 182/184: chunked [code, offsetLo, offsetHi, totalLo, totalHi, data...], max 4910 bytes per packet; data is repeated (idLen, id, nameUUIDLen, nameUUID). 183/185: [code, (len, id)×N]
json
{
  "action": "biz3OperateIoT",
  "op": 109,
  "topic": "stpxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxcmd",
  "payload": "bQ=="
}

Response

FieldTypeDescription
actionstring'biz3OperateIoT'
opnumber | stringSame command code as the request; the client dispatches to the callback registered for this op (registerIotCallback)
UUIDstring (optional)Reporting device UUID; UUID takes precedence over touch_id
touch_idstring (optional)Used as the device id when UUID is absent
dataobject (optional)Device report; passed to the callback as the 2nd argument when present, otherwise the whole message is passed
data.statusstring (182/184) | any (114)Batch upload: 'Ok' done, 'Pending' wait, otherwise 'N/...' means resend from byte N-1; for 114 it is passed to the card-enroll UI together with data.op
data.cstring (hex, 107)Card info hex string, parsed by parseHexStrToCardInfo (cardID etc.)
data.pstring (hex, 123)Passcode info hex string, parsed by parseHexStrToPasscodeInfo
data.stpUUIDstring (110/126 notify)Device UUID in card/passcode change notifications; triggers a refetch
data.reqContextobject {topic, payload} (183/185)Original request context; device id is cut from topic and deleted ids parsed from payload
data.wifi_state / cards_num / fingerprints_num / keyboards_numany / number (op 81 push)Mech status push (SSM2_ITEM_CODE_MECH_STATUS): WiFi state and card/fingerprint/passcode counts; a count change triggers a refetch

Note

cmdCode 137 is shared by HUB3_MATTER_PAIRING_CODE and STP_ITEM_CODE_PASSCODE_CHANGE_VALUE; callbacks are registered globally by numeric op, so they may collide. For 140/138 the nameUUID is generated randomly by the client. Results of 109/125 are not read in this handler (lists come from another action). Rename (107/123) shows an error if no report arrives within 15 s.

biz3TriggerLocker ​

Lock, unlock, toggle or run a Bot action on a Sesame device with a time-based signature and history tag; device state changes are pushed with the same action.

biz3TriggerLocker ​

Send a lock/unlock/Bot command to a Sesame device via the cloud.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3TriggerLocker'
cmdnumberNoCommand code, default 88. 82 = lock, 83 = unlock, 88 = toggle, 89 = Bot click, 170 + n = run Bot script n
signstring (8 hex chars)Yes8 lowercase hex chars. Algorithm Cmac.cmacTime(secretKey): take current Unix seconds, write as uint32 little-endian (4 bytes), drop byte 0 (least significant) and use bytes 1–3 (3 bytes) as the message; compute AES-CMAC (RFC 4493 subkeys/padding) with the device secretKey (hex string → 16 bytes, AES-128); output the first 4 bytes as hex.
historystring (base64)Yesbase64( hex(prefix + uuid without dashes) ). prefix: '000c' (BIZ type) in a PC browser; inside the app Android '0010', iOS '0011' (WiFi icon type). uuid priority: envId (backend-generated, cached in localStorage 'web_env_id') → subUUID → 'ffffffff-ffff-ffff-ffff-ffffffffffff'.
device_idstring (UUID)YesTarget Sesame device UUID
json
{
  "action": "biz3TriggerLocker",
  "cmd": 88,
  "sign": "xxxxxxxx",
  "history": "<base64(000c + uuid hex)>",
  "device_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Response

The client does not read specific fields from the response; it only checks success.

Note

Comment: when envId/subUUID is not available (guest), the protocol uses all-ff and the cloud shows the entry as a not-logged-in user. No direct response to this request is read; state updates arrive via pubDeviceStateChange / pubUserDeviceChange pushes. Inside the app (isAppHome) it is not queued for resend while disconnected. Callers: device switch (VIotSwitch), bulk unlock/lock (83/82), Bot scripts (170+n), app host requests (operation lock/unlock/toggle → 82/83/88, Bot 89, scripted Bot 170 + default script actionIndex). Note: the client argument is spelled sescretKey.

pubDeviceStateChange (server push) ​

Server push: a device's state changed.

Request

No additional parameters.

Response

FieldTypeDescription
opstring'pubDeviceStateChange'
dataobject {deviceUUID, stateInfo?, ...}Merged into the local device list by deviceUUID; stateInfo is shallow-merged, other fields overwrite

Note

Exact stateInfo fields are server-defined; the handler does not read them individually.

pubUserDeviceChange (server push) ​

Server push: the user's device list changed; the client refetches company devices.

Request

No additional parameters.

Response

FieldTypeDescription
opstring'pubUserDeviceChange'

Note

data is not read.

biz3InvokeWebAPIs ​

Developer page: proxy-call the Sesame Web API with the company API key (get state, get history, send command).

webapi_ssm_shadow_get ​

Get the device's current state (shadow).

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3InvokeWebAPIs'
apiKeyIdstringYesID of the company's developer API key
opstringYes'webapi_ssm_shadow_get'
queryobject {device_id: string}YesTarget device UUID
bodyobjectYesAlways {}
json
{
  "action": "biz3InvokeWebAPIs",
  "op": "webapi_ssm_shadow_get",
  "apiKeyId": "xxxxxxxx",
  "query": {
    "device_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  },
  "body": {}
}

Response

FieldTypeDescription
opstringSame as request; used to match the callback
dataanyRaw Web API result; the developer page shows it as JSON

Note

Any biz3InvokeWebAPIs response triggers gStripe.

webapi_history_get ​

Get device history (page 0, 5 items).

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3InvokeWebAPIs'
apiKeyIdstringYesID of the company's developer API key
opstringYes'webapi_history_get'
queryobject {device_id: string, page: number, lg: number, isBiz: boolean}Yesdevice_id device UUID; page index (client always 0); lg item count (always 5); isBiz always true
bodyobjectYesAlways {}
json
{
  "action": "biz3InvokeWebAPIs",
  "op": "webapi_history_get",
  "apiKeyId": "xxxxxxxx",
  "query": {
    "device_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "page": 0,
    "lg": 5,
    "isBiz": true
  },
  "body": {}
}

Response

FieldTypeDescription
opstringSame as request; used to match the callback
dataanyRaw Web API result; the developer page shows it as JSON

Note

Any biz3InvokeWebAPIs response triggers gStripe.

webapi_cmd_send ​

Send a lock/unlock/Bot command to a device via the Web API.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3InvokeWebAPIs'
apiKeyIdstringYesID of the company's developer API key
opstringYes'webapi_cmd_send'
queryundefinedNoNot sent
bodyobject {cmd: number, history: string, sign: string, device_id: string}Yescmd: chosen by model on the developer page: 88 (toggle, default), 89 (bot_2), 83 (ssm_bike2 unlock); sign is the same AES-CMAC time signature as biz3TriggerLocker; history = base64(hex('000c' + subUUID without dashes)); device_id device UUID
json
{
  "action": "biz3InvokeWebAPIs",
  "op": "webapi_cmd_send",
  "apiKeyId": "xxxxxxxx",
  "body": {
    "cmd": 88,
    "history": "<base64>",
    "sign": "xxxxxxxx",
    "device_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  }
}

Response

FieldTypeDescription
opstringSame as request; used to match the callback
dataanyRaw Web API result; the developer page shows it as JSON

Note

Any biz3InvokeWebAPIs response triggers gStripe.Unlike biz3TriggerLocker, history uses only subUUID here, with no envId or all-ff fallback.

biz3Schedule ​

List and cancel the current user's scheduled operations (e.g. timed lock/unlock/firmware upgrade).

getScheduleList ​

Get the current user's schedule list.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3Schedule'
opstringYes'getScheduleList'
userIdstring (UUID)YesCurrent user's subUUID; not sent when empty
json
{
  "action": "biz3Schedule",
  "op": "getScheduleList",
  "userId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Response

FieldTypeDescription
dataarray of {scheduleId, deviceName, action, displayTime}Array of schedules; scheduleId, deviceName, action (e.g. lock, unlock, upgrade_firmware; other values are split by camelCase/underscores for display), displayTime ('YYYY-MM-DD HH:mm', 'HH:mm' or free text)

Note

data.length is stored as count.

cancelSchedule ​

Cancel one scheduled task.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3Schedule'
opstringYes'cancelSchedule'
userIdstring (UUID)YesCurrent user's subUUID; not sent when empty
scheduleIdstringYesID of the schedule to cancel
json
{
  "action": "biz3Schedule",
  "op": "cancelSchedule",
  "userId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "scheduleId": "xxxxxxxx"
}

Response

The client does not read specific fields from the response; it only checks success.

Note

The handler reads no fields of the cancelSchedule response; the page marks the item as cancelling (spinner). How it is then removed from the list is not clear from the code (possibly a server-pushed getScheduleList).

biz3IRRemote ​

Hub3 IR remotes: code-library lookup, IR emission, CRUD of remotes and learned keys, learn mode and data subscriptions, Matter bridging.

getRemoteList ​

Get the paginated remote model list for an IR type.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'getRemoteList'
typestring | numberYesIR type: 0x2000 TV, 0x8000 fan, 0xC000 air conditioner, 0xE000 light, 0xFE00 self-learning
companyIDstringYesCurrent company ID (customerInfo.companyID)
paginationobject {page: number, pageSize: number}YesPage (1-based) and page size (default 200)
json
{
  "action": "biz3IRRemote",
  "op": "getRemoteList",
  "type": "8192",
  "companyID": "xxxxxxxx",
  "pagination": {
    "page": 1,
    "pageSize": 200
  }
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
data.dataarrayRemote model array (replaces the list when currentPage=1, otherwise appends)
data.paginationobject {currentPage, pageSize, totalCount, hasMore}Pagination; hasMore controls further loading
data.dataVersionstringList data version for local cache validation; a change mid-paging triggers a full reload

Note

Array item fields: only direction is read on the list page; others are not read individually.

getRemoteListVersion ​

Silently query the remote list data version to check whether the local cache is stale.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'getRemoteListVersion'
typestring | numberYesIR type: 0x2000 TV, 0x8000 fan, 0xC000 air conditioner, 0xE000 light, 0xFE00 self-learning
companyIDstringYesCurrent company ID (customerInfo.companyID)
silentbooleanYesAlways true; echoed back as reqContext.silent so the client leaves the list alone and shows no error
json
{
  "action": "biz3IRRemote",
  "op": "getRemoteListVersion",
  "type": "8192",
  "companyID": "xxxxxxxx",
  "silent": true
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
data.dataVersionstringLatest data version
reqContext.silentbooleanEchoed silent flag

searchRemoteList ​

Search remote models of an IR type by keyword.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'searchRemoteList'
typestring | numberYesIR type: 0x2000 TV, 0x8000 fan, 0xC000 air conditioner, 0xE000 light, 0xFE00 self-learning
companyIDstringYesCurrent company ID (customerInfo.companyID)
searchTermstringYesTrimmed keyword; not sent when empty
paginationobject {page: 1, pageSize: 1000}YesAlways page 1, up to 1000 items
json
{
  "action": "biz3IRRemote",
  "op": "searchRemoteList",
  "type": "8192",
  "companyID": "xxxxxxxx",
  "searchTerm": "keyword",
  "pagination": {
    "page": 1,
    "pageSize": 1000
  }
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
data.dataarraySearch result array

sendIR ​

Make the Hub3 emit an IR code.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'sendIR'
deviceIdstring (UUID)YesHub3 device UUID
commandstringYesremoteEmit: hex command string built from the key; learnEmit: keyUUID of the learned key
operationstringYes'remoteEmit' (code-library remote) or 'learnEmit' (self-learned remote)
irTypestring | numberYesRemote type (see getRemoteList.type)
companyIDstringYesCurrent company ID (customerInfo.companyID)
irDeviceUUIDstringYesRemote UUID; empty string for an unsaved remote
json
{
  "action": "biz3IRRemote",
  "op": "sendIR",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "command": "<hex>",
  "operation": "remoteEmit",
  "irType": "8192",
  "companyID": "xxxxxxxx",
  "irDeviceUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
dataanyLogged only

Note

Shows a success toast. code 406 means the key has no code in the table (silent globally; non-AC page shows its own notice). After success, saved remotes call updateRemoteState.

updateRemoteState ​

Save the remote's last sent state (command string).

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'updateRemoteState'
deviceIdstring (UUID)YesHub3 device UUID
uuidstring (UUID)YesRemote UUID
statestringYesLast sent command string
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "updateRemoteState",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "state": "<hex>",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

The handler only logs; the callback receives the whole message.

addIRRemote ​

Save a remote to a Hub3.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'addIRRemote'
remoteobject {uuid, model, state, alias, code, type, deviceUUID, keys: []}Yesuuid generated by client; model/alias/code/type from the chosen model; state current command string (empty for self-learning); deviceUUID is the Hub3 UUID; keys always []
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "addIRRemote",
  "remote": {
    "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "model": "xxxx",
    "state": "",
    "alias": "xxxx",
    "code": 0,
    "type": "8192",
    "deviceUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "keys": []
  },
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

Client limit: at most 3 non-self-learning remotes (type≠0xFE00) per Hub3; beyond that nothing is sent and the callback fails immediately. After saving a code-library remote, addRemoteToMatter is called.

deleteIRRemote ​

Delete a remote from a Hub3.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'deleteIRRemote'
hub3DeviceIdstring (UUID)YesHub3 device UUID
uuidstring (UUID)YesRemote UUID
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "deleteIRRemote",
  "hub3DeviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

The handler only logs; the callback receives the whole message.

duplicateIRRemote ​

Duplicate a remote (server generates a new UUID; self-learned remotes also copy keys and IR data).

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'duplicateIRRemote'
hub3DeviceIdstring (UUID)YesHub3 device UUID
uuidstring (UUID)YesSource remote UUID
aliasstringYesAlias for the new remote; client passes the source alias, server defaults to it when empty
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "duplicateIRRemote",
  "hub3DeviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "alias": "xxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
dataobject (new remote: uuid, alias, type, code, ... + duplicatedKeys, skippedKeys)New remote object; success requires data.uuid
data.skippedKeysnumberNumber of keys that could not be copied; >0 shows a warning
data.duplicatedKeysanyRemoved by the client before storing

Note

After success the client calls addRemoteToMatter for the new remote.

updateRemoteAlias ​

Rename a remote.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'updateRemoteAlias'
deviceIdstring (UUID)YesHub3 device UUID
uuidstring (UUID)YesRemote UUID
aliasstringYesNew alias
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "updateRemoteAlias",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "alias": "xxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

Client function name is modifyIRRemote.

setRemoteKeyOrder ​

Save the remote's key order.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'setRemoteKeyOrder'
deviceIdstring (UUID)YesHub3 device UUID
uuidstring (UUID)YesRemote UUID (must already be saved)
keyOrderarray of stringYesKey IDs in order; empty array restores default order
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "setRemoteKeyOrder",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "keyOrder": [
    "xxxx",
    "xxxx"
  ],
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

The handler only logs; the callback receives the whole message.

getRemoteKeyOrder ​

Get the remote's key order.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'getRemoteKeyOrder'
deviceIdstring (UUID)YesHub3 device UUID
uuidstring (UUID)YesRemote UUID
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "getRemoteKeyOrder",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
dataobject {uuid, keyOrder: array of string}keyOrder is [] when no record exists

getIRMode ​

Get the Hub3's current IR mode.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'getIRMode'
deviceIdstring (UUID)YesHub3 device UUID
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "getIRMode",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
dataobject {ir_mode | mode} | numberMode: 0 = CONTROL, 1 = LEARN/REGISTER; the client tries data.ir_mode, data.mode, or a bare number

setIRMode ​

Set the Hub3's IR mode (learn/control).

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'setIRMode'
deviceIdstring (UUID)YesHub3 device UUID
modenumberYes0 = CONTROL, 1 = REGISTER/LEARN (capture IR signals)
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "setIRMode",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "mode": 1,
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

The client resets to 0 when leaving the learn page.

subscribeIRMode ​

Subscribe to the Hub3's IR mode change notifications.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'subscribeIRMode'
topicstringYes'hub3/{deviceId}/ir/mode'
deviceIdstring (UUID)YesHub3 device UUID
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "subscribeIRMode",
  "topic": "hub3/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/ir/mode",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

The confirmation is only logged; notifications arrive as op 'subscribeIRModeRsp'.

subscribeIRModeRsp (server push) ​

Server push: IR mode changed.

Request

No additional parameters.

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
data.data.ir_modenumberNew mode (0 = CONTROL, 1 = LEARN/REGISTER)

Note

Dispatched to every subscribed device's callback (not filtered per device).

subscribeIRData ​

Subscribe to IR data learned by the Hub3.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'subscribeIRData'
topicstringYes'hub3/{deviceId}/ir/learned/data'
deviceIdstring (UUID)YesHub3 device UUID
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "subscribeIRData",
  "topic": "hub3/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/ir/learned/data",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

Data arrives as op 'subscribeIRDataRsp'.

subscribeIRDataRsp (server push) ​

Server push: learned IR waveform data.

Request

No additional parameters.

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
data.datastring (hex)Learned IR data; the learn page creates a key from it (addIRCode); the match page treats length ≤50 as empty and keeps waiting, otherwise passes it to matchRemote

Note

Dispatched to every subscribed device's callback.

unsubscribeIRMode ​

Unsubscribe from IR mode notifications.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'unsubscribeIRMode'
deviceIdstring (UUID)YesHub3 device UUID
topicstringYes'hub3/{deviceId}/ir/mode'
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "unsubscribeIRMode",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "topic": "hub3/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/ir/mode",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

The handler only logs; the callback receives the whole message.

unsubscribeIRData ​

Unsubscribe from learned IR data.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'unsubscribeIRData'
deviceIdstring (UUID)YesHub3 device UUID
topicstringYes'hub3/{deviceId}/ir/learned/data'
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "unsubscribeIRData",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "topic": "hub3/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/ir/learned/data",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

The handler only logs; the callback receives the whole message.

matchRemote ​

Match learned IR waveform data against the code library.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'matchRemote'
irDatastring (hex)YesIR data received from subscribeIRDataRsp
irWaveLengthnumberYesirData.length / 2 (byte count)
irTypenumberYesparseInt(remote.type)
brandNamestringYesRemote model (brand)
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "matchRemote",
  "irData": "<hex>",
  "irWaveLength": 0,
  "irType": 8192,
  "brandName": "xxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
data.matchesarray of {controlType: {model, alias, direction}, companyCode: number, bestMatchPercentage: number}Match results; companyCode becomes the remote code, bestMatchPercentage is shown as a percentage with 2 decimals

getIRCodes ​

Get the key list of a self-learned remote.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'getIRCodes'
hub3DeviceIdstring (UUID)YesHub3 device UUID
remoteIdstring (UUID)YesRemote UUID
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "getIRCodes",
  "hub3DeviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "remoteId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message
dataarray of {keyUUID, name, uuid, ...}Key array; keyUUID key id, name, uuid owning remote UUID

addIRCode ​

Add a key (with learned IR data) to a self-learned remote.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'addIRCode'
irCodeobject {keyUUID, name, uuid, deviceId, data}YeskeyUUID generated by client; name initially ''; uuid remote UUID; deviceId Hub3 UUID; data learned IR data (hex)
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "addIRCode",
  "irCode": {
    "keyUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "name": "",
    "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "data": "<hex>"
  },
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

The learn mode is exited (setIRMode 0) afterwards regardless of result.

updateIRCode ​

Rename a learned key.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'updateIRCode'
hub3DeviceIdstring (UUID)YesHub3 device UUID
remoteIdstring (UUID)YesRemote UUID
keyUUIDstring (UUID)YesKey ID
namestringYesNew name (trimmed, non-empty)
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "updateIRCode",
  "hub3DeviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "remoteId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "keyUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "name": "xxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

deleteIRCode ​

Delete a learned key.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'deleteIRCode'
hub3DeviceIdstring (UUID)YesHub3 device UUID
remoteIdstring (UUID)YesRemote UUID
keyUUIDstring (UUID)YesKey ID
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "deleteIRCode",
  "hub3DeviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "remoteId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "keyUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

addRemoteToMatter ​

Bridge an IR remote to Matter as an on/off device.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3IRRemote'
opstringYes'addRemoteToMatter'
hub3DeviceIdstring (UUID)YesHub3 device UUID
irDeviceTypestring | numberYesRemote type
cmdOnstring (hex)YesPower-on command string (built from the best-covered power key for the code source)
cmdOffstring (hex)YesPower-off command string
irDeviceUUIDstring (UUID)YesRemote UUID
irDeviceNamestringYesRemote alias
companyIDstringYesCurrent company ID (customerInfo.companyID)
json
{
  "action": "biz3IRRemote",
  "op": "addRemoteToMatter",
  "hub3DeviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "irDeviceType": "8192",
  "cmdOn": "<hex>",
  "cmdOff": "<hex>",
  "irDeviceUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "irDeviceName": "xxxx",
  "companyID": "xxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag; on failure with code≠406 an error snackbar is shown
codenumberError code; 406 is handled silently (empty data, e.g. key missing in code table)
messagestringError message

Note

The handler only logs; the callback receives the whole message.

biz3Face3Qr ​

Face3 doorbell/face device: list bound devices, send commands (wake), get KVS viewer credentials or a LiveKit room token.

command ​

Send a command to a Face3 device (generic entry; the cloud signs and pushes it).

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3Face3Qr'
opstringYes'command'
deviceIdstringYesDevice UUID
cmdstringYesDownlink command name (device-side action). The only value used in the code is 'face3Wake' (wake the device to start WebRTC streaming)
json
{
  "action": "biz3Face3Qr",
  "op": "command",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "cmd": "face3Wake"
}

Response

FieldTypeDescription
successbooleanSuccess flag
codeanyResult code (received by the callback, not branched on)
messagestringFailure reason string
data.deviceIdstringUsed to route the response to the 'op:deviceId' callback
message (failure)stringdevice_offline, not_bound, device_identity_rejected, device_not_signable

Note

The body intentionally omits subUUID: the cloud takes the user from the authenticated connection (face3_ws_connections[connectionId]); only users bound to the device may act. Sent only while connected, never queued; when disconnected the callback immediately gets {success:false, message:'ws_disconnected'}. Comment: the device normally sleeps powered off; the WiFi module powers up the main MCU on face3Wake and forwards the command, so success only means the module received it. The device then pushes op 'streamState' with {deviceId, state, reason} (e.g. stopped with reason 'doorbell' = doorbell hung up).

list ​

List Face3 devices bound to the current user.

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3Face3Qr'
opstringYes'list'
json
{
  "action": "biz3Face3Qr",
  "op": "list"
}

Response

FieldTypeDescription
successbooleanOn failure the existing list is kept
data.devicesarray of {deviceUUID, deviceName, stateInfo, ...}Bound device array

Note

No subUUID is sent; the cloud resolves the user from the connection. This request may be queued while disconnected.

live ​

Get a LiveKit room token (multi-viewer / multi-party call).

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3Face3Qr'
opstringYes'live'
deviceIdstringYesDevice UUID
json
{
  "action": "biz3Face3Qr",
  "op": "live",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag
codeanyResult code (received by the callback, not branched on)
messagestringFailure reason string
data.deviceIdstringUsed to route the response to the 'op:deviceId' callback
data.urlstringLiveKit server URL
data.tokenstringLiveKit access token; required for success

Note

The body intentionally omits subUUID: the cloud takes the user from the authenticated connection (face3_ws_connections[connectionId]); only users bound to the device may act. Sent only while connected, never queued; when disconnected the callback immediately gets {success:false, message:'ws_disconnected'}. Gradual rollout: not_bound / not_authenticated fail immediately; other failures or timeout fall back to op 'viewer' (direct KVS).

viewer ​

Get temporary viewer credentials (KVS WebRTC, scoped to this device's channel, 15 minutes).

Request

FieldTypeRequiredDescription
actionstringYesAlways 'biz3Face3Qr'
opstringYes'viewer'
deviceIdstringYesDevice UUID
json
{
  "action": "biz3Face3Qr",
  "op": "viewer",
  "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Response

FieldTypeDescription
successbooleanSuccess flag
codeanyResult code (received by the callback, not branched on)
messagestringFailure reason string
data.deviceIdstringUsed to route the response to the 'op:deviceId' callback
data.channelArnstringKVS signaling channel ARN
data.regionstringAWS region
data.clientIdstringViewer clientId
data.credentialsobject {accessKeyId, secretAccessKey, sessionToken}Temporary credentials issued via AssumeRole
data.iceServersarrayICE server list
message (failure)stringchannel_not_ready (channel not yet created; client retries), not_bound, invalid_device_id, not_authenticated, device_offline, device_identity_rejected, device_not_signable

Note

The body intentionally omits subUUID: the cloud takes the user from the authenticated connection (face3_ws_connections[connectionId]); only users bound to the device may act. Sent only while connected, never queued; when disconnected the callback immediately gets {success:false, message:'ws_disconnected'}. Precondition: the device must be woken and streaming first. No long-term credentials are kept in the browser.