|  Developer
Updated on November 29, 2022

hub.device.added

  • Broadcast sent when a device got registered for some gateway.
Edit
Field Type Required Description
_id string + an id of the device
parentDeviceId string + an id of the parent device. Empty in case of main device
category string + a device category
subcategory string + a device subcategory
deviceTypeId string + a device type id, generated from manufacturer info
gatewayId string + an id of a gateway this device belongs to
name string + a device name
type string + a device type
batteryPowered bool + is device battery powered
reachable bool + is device reachable
armed bool + is device armed by house mode
roomId string + an id of a room this device is assigned to
persistent bool is device persistent. Persistent device can’t be removed by force removing. False by default.
info object some additional information for this device
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 (always true)
fwTimestampMs int64 + A hub system timestamp in milliseconds when the event has happened.
security string + Security level how the device is connected. Possible options: , , ,
ready bool + Ready status of device. value means device is ready to any changes. value means device is busy.
status string + a device status
parentRoom bool Defines the behavior of a child device when the parent device is moved to another room.
Edit
				
					        {
          "id": "ui_broadcast",
          "msg_subclass": "hub.device.added",
          "result": {
            "_id": "588b7eb528b12d03be86f36f",
            "parentDeviceId": "588t7eb528b12d03be86f36f",
            "deviceTypeId": "16_4_1_351_8706_256",
            "gatewayId" : "588b76a44e8c6e50a2826d9f",
            "serviceNotification":false,
            "syncNotification":true,
            "fwTimestampMs": 16300011122244,
            "category": "dimmable_light",
            "subcategory": "dimmable_bulb",
            "name" : "_DEVICE_NAME_",
            "type": "switch",
            "batteryPowered": false,
            "reachable": true,
            "armed": false,
            "roomId" : "_ROOM_ID_",
            "security" : "low",
            "info": "" { "key": "value", "keyN": "valueN" },
            "ready": true,
            "status": "idle"
          }
        }