switchHouseMode
- Change house mode.
Edit
| Field | Type | Required | Description |
|---|---|---|---|
| blockOptions.method.args.houseMode | string | + | Argument declaration of House Mode. The name is . The type is . |
Edit
| Data | Internal error code | Message |
|---|---|---|
| ezlo.house_mode.not.exist | HOUSE_MODE_DOES_NOT_EXIST | The house mode with this id does not exist |
| rpc.params.invalid. | BAD_PARAMS | Wrong params, |
Edit
"then" : [{
"blockOptions":{
"method":{
"name":"switchHouseMode",
"args":{
"houseMode":"houseMode"
}
}
},
"blockType":"then",
"fields":[
{
"name":"houseMode",
"type":"houseModeId",
"value": "2"
}
]
}]