I have a Nest working fine with the Climate component. I want to use HTTP commands coming from outside HA to read the target temperature and be able to change it. Is there a RESTAPI set up for this? I couldn’t find much info.
See:
https://developers.home-assistant.io/docs/en/external_api_rest.html
To read the target temperature:
curl -s https://IP:PORT/api/states/climate.OBJECT_ID?api_password=PASSWORD | jq '.attributes.temperature'
To set the target temperature:
curl -s https://IP:PORT/api/services/climate/set_temperature?api_password=PASSWORD -d '{"entity_id": "climate.OBJECT_ID", "temperature": TEMPERATURE}'