tschamm / boschshc-hass

Home Assistant component for accessing Bosch Smart Home Controller using boschshcpy python library.
Other
165 stars 25 forks source link

Error Code 400 when switching off multiple instances of Bosch Thermostat II in a scene #73

Open fritut08 opened 1 year ago

fritut08 commented 1 year ago

I successfully installed this integration in Home Assistant and configured my 5 Bosch Thermostats II. so that I can set the desired room climate temperature or mode (off, manual, automatic) without a problem for individual thermostats. However, I created scenes to change the mode of all 5 thermostats at once and when I trigger the scene that switches the thermostats off, I get the following error: Fehler beim Aufrufen des Dienstes scene/turn_on. SHC Error (message: API call returned non-OK result (code 400)!: b'{"@type"."JsonRestExecutionResponseEntity","errorCode":"WRONG_THERMOSTAT_GROUP_MODE","statusCode":400}') (The first few words are German and translate to "Error while calling the service...") The thermostats are all switched offed despite this error message. But the error makes it impossible to use the scene within an automation because those stop as soon as an error occurs. Oddly, the other scenes that switch all thermostats to automatic or manual mode work without resulting in an error.

Does anyone know what error code 400 means and whether I can do something about it?

fritut08 commented 1 year ago

This is a picture of the log after the error occured. The automation that makes use of the scene is named "Durchlüften Thermostate".

grafik

tschamm commented 1 year ago

Hi @fritut08 You may ask in the Bosch Smart Home what is the root cause of the error "WRONG_THERMOSTAT_GROUP_MODE". This may help us to understand better why this happens.

fritut08 commented 1 year ago

@tschamm Thanks for the reply. I did so here.

Hellfirefox commented 1 year ago

I put three Thermostat IIs into operation today. One is in a room with a Bosch window sensor. When the window is open and the window sensor is set to open, I get the same error. If the window was closed, the error message did not appear. I don't know if the description helps, but I suspect it has to do with the underfloor heating shutting off when the window is open.

tschamm commented 11 months ago

I can confirm this error.

Reason for this is most probably that eco mode is set for the Climate Control (i.e. the room the thermostat is used in), while overriding the thermostat temperature via the buttons adjusts only the valve position of that single thermostat. I also checked the official app. When eco mode is on, no temperature can be set.