BoschSmartHome / bosch-shc-api-docs

Bosch Smart Home Controller Local REST API
Other
208 stars 44 forks source link

Thermostat API to set desired temperature #35

Closed coeing closed 4 years ago

coeing commented 4 years ago

Hi there,

The shutter control binding for openHAB is complete, thanks for helping with issue #34 :)

I am now working on the binding for the thermostats. The getters for the temperature and the valve tappet are well documented and are no problem.

But I wonder if there is a way to set the desired temperature on a thermostat. As it is possible via the Bosch Home app I hope it is just missing in the documentation as well.

philbuettner commented 4 years ago

Hi coeing,

you can set the temperature via the room climate control. It is described in the OpenAPI documentation -> ClimateControl.

Hope that helps, Phil

coeing commented 4 years ago

Hi @philbuettner ,

Thanks for the super quick answer :) I tried that, but I got an error response:

{
    "@type": "JsonRestExceptionResponseEntity",
    "errorCode": "ENTITY_NOT_FOUND",
    "statusCode": 404
}

I send the PUT request to the thermostat device itself, was that correct?

coeing commented 4 years ago

Oh, I see, there are extra "virtual" devices for the rooms the thermostats are in. I can work with that, thanks a lot!

In my case the id is for example roomClimateControl_hz_1 and the name is always -RoomClimateControl-.

philbuettner commented 4 years ago

Yes, right, you can only set the temperature for the entire room and not for individual devices. If you want to do this, you have to separate them into individual rooms.