Documentation

← Back to site

Set target temperature

Last updated on April 01, 2015 15:46

This method allows you to set the target temperature of an eTRV device.

URL

/api/v1/subdevices/set_target_temperature

Parameters

  • id - the ID of the subdevice to control
  • temperature - the temperature to set, and integer or decimal between 4.0 and 30.0

Response

This method returns information about the subdevice being controlled.

[
  {
    "id": 2,
    "device_id": 1,
    "label": "My eTRV",
    "aggregated_hourly_at": "2014-10-09T11:58:18.000Z",
    "aggregated_daily_at": "2014-10-09T11:58:18.000Z",
    "device_type": "etrv",
    "remote_id": 2,
    "device_groups": [
      {
        "id": 1,
        "name": "My Devices",
        "user_id": 1
      }
    ],
    "last_temperature": 18,
    "target_temperature": 20
  }

]