I’m working to develop Ezlo integration on the Savant platform and I ran into an issue that I can’t seem to figure out. I am attempting to use https://192.168.xxx.xxx:17000/v1/method/hub/items/list?_id=FULL_ID_HERE but it returns the items for ALL devices, even if I use curl in terminal rather than the Ruby script I’m working on. If I just want to poll a specific lock I’d like to be able to do that instead of pulling everything. I could also cache deviceIds for more targeted requests for updates. Can anyone offer any guidance? If I can get it to work in curl then I can get it to work in my script. Thanks so much.
There does not (yet) appear to be a way to do so via an HTTP call to port 17000 as you note, at least not that I have found after hours of testing, poking around, etc.
What I ended up doing was to write a script that calls /v1/method/hub.items.list and and then iterate over it to find my device. It’s still only one API call to get all the devices so the overheard is not much more.
I could never get HTTP requests to work over wireless, only wired.
The API documentation is poor. It does not always match what you actually get back in the JSON responses.
There are multiple device IDs to deal with (ex. _id and deviceId for example).
The web-based management tool needs a lot of work.
You can only add devices via the
The API tool needs work too (I often get a “Something went wrong”) and have to log out and back in again to find my controller. The command drop down menu should populate with all the commands… etc., etc.
All that being said, I really like where the product is heading, and the APIs currently developed have a much more logical structure than the previous Vera devices, and are much “cleaner”, but there’s work to be done.
You have to use the /v1/request POST command for most requests. The v1/method just handles some basic commands. With the POST put the request details in the post data. it has the exact same format as in the websocket requests or what you see in the API tool. Look at HTTP-Server - Ezlo API Documentation
I want to amend my response to this question. While there is no way to do this via a simple HTTP call, it can be done with an HTTP POST, with the correct JSON parameters. Here’s the complete code for how to check a device’s status (in Python).
# Get a device status
myJSONAsString = """
myJSON = json.loads (myJSONAsString)
r = requests.post('http://192.168.1.176:17000/v1/method/hub.items.list', json=myJSON)