hub.device.updated
- Broadcast sent when some changes happened to a device (broadcast contains only changes).
Edit
| Field | Type | Required | Description |
|---|---|---|---|
| _id | string | + | An id of the device |
| armed | bool | + | See device.armed |
| serviceNotification | bool | + | Special mark for forwarding all changes with this device and items to different Cloud services. |
| syncNotification | bool | + | Special mark to request data synchronization between Cloud and controller (true only if one of device fields , , was changed) |
| fwTimestampMs | int64 | + | A hub system timestamp in milliseconds when the event has happened. |
| __DEVICE_CHANGEABLE_FIELD | any | + |
Device fields which may be updated (__DEVICE_CHANGEABLE_FIELD):
| Field | Type | Description |
|---|---|---|
| name | string | A device name |
| reachable | bool | Whether device is reachable |
| roomId | string | An id of a room this device is assigned to |
| ready | bool | Ready status of a device. value means the device is ready to any changes. value means the device is busy. |
Edit
{
"id": "ui_broadcast",
"msg_subclass": "hub.device.updated",
"result": {
"_id": "588b7eb528b12d03be86f36f",
"armed": true,
"serviceNotification":false,
"syncNotification":false,
"fwTimestampMs": 16300011122244,
"__DEVICE_CHANGEABLE_FIELD": value
}
}