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,
h0eferm
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,
h0eferm
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!!