DevM
December 6, 2016, 4:26pm
1
Has anyone tried using the Ecobee (NEST like Thermostat) API to get data via a webhook… looks like it should work, but I keep getting 500 errors. I’ve put the -H fields in the header and the body fields in the data fields section.
And used the full “https://api.ecobee.com/1/thermostat?format=json&body= ” as the URL
curl -s -H ‘Content-Type: text/json’ -H ‘Authorization: Bearer AUTH_TOKEN’ ‘https://api.ecobee.com/1/thermostat?format=json&body={“selection”:{“selectionType”:“registered”,“selectionMatch”:"",“includeRuntime”:true} }’
Any suggestions?
Dev
How does your .json
file for the webhook look like? Or are you using https://console.particle.io ?
RWB
December 9, 2016, 5:59pm
4
I was having similar 500 error problems trying to access a different API using webhooks.
This thread kind of shows how we used Postman to verify that the API is working and it's the Webhook formatting that is causing the 500 error message.
Did you try PostMan to test?
I used your link and got 200 posting your JSON.
You might have to recreate the webhook with “Include Default Attributes” unchecked.