Hello if anyone has a working example of setting door lock code via ezlo http api that would be great, I have scanned the entire community and the examples available are for simple bool toggle using method hub.item.value.set however there is not a single example on how to use method hub.item.dictionary.value.set and sending http json.
my code here gets a response that is blank can anyone please correct the format of my json
REQUEST
If you’re interested, in the post below you will find detailed instructions on how to set up an HTTP client on your Ezlo hub so that you can send HTTP requests without having to send the JSON payload
The empty response, although odd, does not seem to be catching any errors, which is why I asked if maybe you could see the pincode that you just created if you run a hub.items.list and put in the device_id. It should show the list of pincodes.
Hi @Thiago I just reviewed the code you sent again it works actually i was missing element tag now I am wondering how someone would go about setting time limit for the code lock created the item.list shows the following
Note that _id= Daily restriction id. In your case: 63978315d53954635316b0e4 key = Code position. You would need to list the Device items to identify the code key.
We need to know the code key the restriction will be applied to, therefore, it’s necessary to add the Pincode first, identify the key number, and then set the restriction.
1 Like
Best Home Automation shopping experience. Shop at Ezlo!