|  Developer
Updated on March 8, 2023

hub.modes.protect.buttons.set

  • Version: 1.0
  • Classes: UI
  • Title: House modes
  • Description: Adds/updates/remove protectButton records from/to house modes.
Edit
Field Type Required Description
deviceId string + Id of the device
service enum + A Ezlo Protect service: , ,
Edit
  • Empty result or error
Edit
Edit
				
					{
    "method": "hub.modes.protect.buttons.set",
    "id": "_ID_",
    "params": {
        "deviceId": "<deviceId>",
        "service": "police"
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}				
			
Edit
Code Message Data
-32602 Wrong params rpc.params.invalid.
-32500 No device found! ezlo.device.notfound
Edit
BroadcastDescription
hub.modes.protect.buttons.addedA button device has been assigned with a Ezlo Protect service
hub.modes.protect.buttons.updatedA button device has been assigned with another Ezlo Protect service
hub.modes.protect.buttons.removedA button device assignment to a Ezlo Protect service have been removed