|  Developer
Updated on November 21, 2021

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.
Edit
  • Empty result or error
Edit
Edit
				
					{
    "method": "hub.modes.protect.set",
    "id": "_ID_",
    "params": {
        "modeId": "<modeId>",
        "protect": true
    }
}				
			
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
Edit
BroadcastDescription
hub.modes.changedEzlo Protect service options have been changed