API Call for climate set_temperature?

I just have a generic thermostat running on an Rpi with a DHT22 sensor. If I go to the services portion of the HA interface and put in

Domain - climate
Service - set_temperature
{“entity_id”: “climate.Thermostat”, “temperature”: “95”}

then it will change the target temp accordingly. Sadly I could not figure out the API call to make this work. I found THIS post where @jbardi gave a great description of the syntax to call it, but I couldn’t get it to work. Closest I got was using

http://****:8123/api/services/climate.Thermostat/temperature.95?api_password=

This returned a 405: Method Not Allowed, any other deviation I tried just gave me the 404:Not Found unfortunately. Any help is appreciated. Thanks :smiling_face:

Service calls are HTTP POST methods.
As far as I know you can’t do a POST in a query string like you are trying to do.

1 Like

Crap. I did it with turning the lights on a switch on so I figured it might work for this too. Thanks for the clarification though :slight_smile: