|  Developer
Updated on November 21, 2021

hub.modes.protect.devices.add

  • Version: 1.0
  • Classes: UI
  • Title: House modes
  • Description: Adds device identifiers to the protectDevices collection.
Edit
Field Type Required Description
deviceIds Array of strings + Identifiers of devices to add to a collection
Edit
  • Empty result or error
Edit
Edit
				
					{
    "method": "hub.modes.protect.devices.add",
    "id": "_ID_",
    "params": {
        "deviceIds": ["<deviceId>"]
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}				
			
Edit
Code Message Data Reason
-32602 Wrong params rpc.params.invalid Nothing to add
-32602 Wrong params rpc.params.invalid.deviceIds Format of a required field is wrong
Edit
BroadcastDescription
hub.modes.protect.devices.addedA device has been added to the collection