|  Developer
Updated on November 22, 2021

hub.modes.switched

  • Broadcast after a request was sent to change the house mode. There are four house modes – ‘Home’, ‘Away’, ‘Night’ or ‘Vacation’. For example, ‘Home’ will disable (disarm) your motion detectors so they don’t go off as you walk around. You can customize each mode to suit your own device requirements.
Edit
Field Type Required Description
form string + Id of the previous house mode
to string + Id of the new house mode
status string + Progress of the change operation. Can be ‘done’, ‘begin’ or ‘cancel’
switchToDelay integer + Delay in seconds before the hub will make the switch to the new mode.
Edit
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.modes.switched",
    "result": {
        "from": "<modeId>",
        "to": "<modeId>",
        "status": "done",
        "switchToDelay": 0
    }
}