|  Developer
Updated on March 8, 2023

hub.modes.protect.set

  • Version: 1.0
  • Classes: UI
  • Title: House modes
  • Description: Enable or disable Ezlo Protect for a particular house mode.
Edit
Field Type Required Description
modeId string + Id of the house mode
protect bool + If , turns on Ezlo Protect for the house mode.
timestamp int64, milliseconds Timestamp in milliseconds of a command sent by the Cloud, UI or another hub.
Edit
  • Empty result or error
Edit
Edit

Call:

				
					{
    "method": "hub.modes.protect.set",
    "id": "_ID_",
    "params": {
        "modeId": "<modeId>",
        "protect": true
    }
}				
			
Edit
Edit
				
					{
    "method": "hub.modes.protect.set",
    "id": "_ID_",
    "params": {
        "modeId": "<modeId>",
        "protect": true,
        "timestamp": 1677056708587
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}				
			
Edit
Code Message Data
-32602 Wrong params, rpc.params.invalid.
-32602 The house mode with this id does not exist ezlo.house_mode.not.exist
-32500 Command is outdated ezlo.house_mode.command.outdated
Edit
BroadcastDescription
hub.modes.changedEzlo Protect service options have been changed