Skip to content

Toggle Thermostat Control

Set the thermostat device to enabled or disabled, depending on the input given. Returns updated device details.

Authentication Required

Requires account user level access.

Arguments

Returns

1
2
3
4
5
6
7
8
mutation toggleThermostatControl($input: toggleThermostatControlInput!) {
    toggleThermostatControl(input: $input) {
        id,
        name,
        hvacMode,
        enabled
    }
}
1
2
3
4
5
6
7
8
# Input variables
{
    "input": {
        "id": "",
        "name": "",
        "enabled": "",
    }
}

Example

1
2
3
4
5
6
7
8
mutation toggleThermostatControl($input: toggleThermostatControlInput!) {
    toggleThermostatControl(input: $input) {
        id,
        name,
        hvacMode,
        enabled
    }
}
1
2
3
4
5
6
7
8
# Input variables
{
    "input": {
        "id": "740cb60f726748e68008dcf816498080",
        "accountNumber": "A-1234567",
        "setEnabled": "enabled"
    }
}
1
2
3
4
5
6
7
8
 "data": {
        "ToggleThermostatControl"{
            "id": "740cb60f726748e68008dcf816498080",
            "name": "My Ecobee Thermostat",
            "hvacMode":"AUTO",
            "enabled": "True",
        }
    }
Back to top