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
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
Broadcast | Description |
---|---|
hub.modes.changed | Ezlo Protect service options have been changed |