|  Developer
Updated on November 20, 2021

hub.device.room.set

Connection type:
Permissions:
  • Place device.
Edit
Field Description
_id
Id of a target device
roomId
Id of a target room
Edit
Edit
Broadcast Description
Informs about device state changed. Should contain the flag = in case of a roomId changed for the device.
Edit
Edit
				
					{
    "method": "hub.device.room.set",
    "id": "_ID_",
    "params": {
        "_id" : "_OBJECT_ID_",
        "roomId": "_OBJECT_ID_"
    }
}				
			
Edit
				
					{
    "api": "1.0",
    "error": null,
    "id": "_ID_",
    "result": {}
}				
			
Edit
Code Message Data
-32500
Placing subdevice is forbidden
ezlo.device.forbidden.place.subdevice
-32500
No device found!
ezlo.device.notfound
-32500
Room not found
nma.room.notfound
-32602
Wrong field of object
rpc.params.wrong_field