Thermostat mode

Description and API usage

What is Thermostat mode?

Every MClimate device of type relay (Bobbie, Smart plug, Shelly 1, Shelly 1pm, Shelly em, etc) can act as a thermostat. If it is configured as such, it can use sensor data from another device that have temperature sensors (Bobbie, Melissa, Vicki, Mom, HT sensor, Shelly 1/1 pm, AQI Sensor and notifier, etc.) and use the sensor as reference to control the heating load e.g. space heater, water heater, etc.

How does it work?

Every 10 minutes an algorithm checks all created thermostat records and their settings. If the temperature that is measured by the associated sensor is under the target (-delta),, the relay is switched on. If the sensor temperature has reached the target, the relay is switched off.

How to use it via MClimate’s API?

Performing queries to MClimate API is done by making HTTP requests with Headers: Content-Type: application/json, Authorization: Bearer {access_token}

Endpoints

Create Thermostat Mode

Request URL:

POST /thermostat_mode

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

Response:

Fetch Thermostat Mode

Request URL:

Headers:

Response:

Update Thermostat Mode

Request URL:

Headers:

Body:

Response:

Postman collection:

You can get the full postman collection from here.

Last updated