RestFul API on domain climate - receiving 400 bad request

Hi all,

I’ve created a long-lasting token for authorization and set up a post request as follows:

But as you can see, I’m getting 400 Bad request. Do I miss anything?

Many thanks and best,

I would try providing the new state as parameter hvac_mode as described here:

I’m sorry, but the same issue? Any other ideas?

In general GET requests (for information gathering) working fine.

I just tried myself and it appears that the hvac_mode value is case sensitive, i.e. I have to send value off, not Off, for the API call to work.
And, I can see the valid values for hvac_mode for this entity in the Developer Tools - all are lower-case.

Thank you so much! Case sensitive! That’s the solution!!

1 Like