Ezlo API, how to get item value?

So if it needs POST to retrieve a device value from the HTTP API, I assume its not possible to have a simple one line HTTP command to return the data like you can with Vera Luup Requests ?

I’ve just worked out how to get it working in Postman application for testing however.

Create a new request

In the URL enter

https://EZLO-IP:17000/v1/request

Select “Headers”

Then add a new Key of “Content-Type”

And then add a new value of “application/json”

Click the drop down box next to URL and change it to POST

image

Now select “Body” then “Raw” and paste in your data

Data Example:

{"method": "hub.data.list", "id": "608801a4120bab172e9c4f66", "params": {"items":{"ids":["608801a4120bab172e9c4f67"],"fields":{"include":["valueFormatted"]}}}}

Click the “Send” button, in the Body you should then see your response. I was looking up the value of a temperature sensor.

Give your request a name and save it.