|  Developer
Updated on November 23, 2021

device_added

  • sent when device got registered for some gateway
				
					{
    event = "device_added"
    _id = "588b7eb528b12d03be86f36f"
    parentDeviceId = "588t7eb528b12d03be86f36f"
    deviceTypeId = "16_4_1_351_8706_256"
    gatewayId = "588b76a44e8c6e50a2826d9f"
    category = "dimmable_light"
    subcategory = "dimmable_bulb"
    name = "_DEVICE_NAME_"
    deviceType = "switch"
    batteryPowered = false,
    reachable = true
    armed = false
    roomId = "_ROOM_ID_"
    security = "low"
    ready = true
    status = "idle"
}				
			
Field Type Required Description
event string + type of an event
_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
deviceType 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
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