Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint to set temperature? #10

Closed
balk77 opened this issue Feb 18, 2018 · 2 comments
Closed

Endpoint to set temperature? #10

balk77 opened this issue Feb 18, 2018 · 2 comments

Comments

@balk77
Copy link

balk77 commented Feb 18, 2018

Hi, I would like to set the temperature via the http server, similar to ’easy set temperature "20"' via the cli. Is that possible? I could not find an endpoint in the list.

@robertklep
Copy link
Owner

robertklep commented Feb 18, 2018

The last example in the README shows how to set the temperature:

curl -XPOST http://127.0.0.1:3000/bridge/heatingCircuits/hc1/temperatureRoomManual -d '{"value":20}' -H 'Content-Type: application/json'

(you may have to change 127.0.0.1:3000 to point to the correct IP-address if you're not running the HTTP server on the local machine)

The easy command line tool actually uses three endpoints:

/heatingCircuits/hc1/temperatureRoomManual          { "value" : 20 }
/heatingCircuits/hc1/manualTempOverride/status      { "value" : "on" }
/heatingCircuits/hc1/manualTempOverride/temperature { "value" : 20 }

@balk77
Copy link
Author

balk77 commented Feb 18, 2018

Clear! Thanks!

@balk77 balk77 closed this as completed Feb 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants