Ezlo http API how to set door lock code using method hub.item.dictionary.value.set

Hello @Wael_Ali,

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

They should look like

https://<ip>:port/v1/method/hub/item/dictionary/value/set?_id=63978315d53954635316b0e1&code=3395&mode=enabled&name=person

On the other hand, your API request should look like

{
    "method": "hub.item.dictionary.value.add",
    "id":"_ID_",
    "params": {
        "_id": "item_ID",
        "element": {
            "type": "userCode",
            "value": {
                "code": "1234",
                "name": "person",
                "mode": "enabled"
            }
        }
    }
}

So that should be fine. If you run a hub.items.list on that doorlock, do you not see the new pincode?

{
"method": "hub.items.list",
"id": "_ID_",
"params": {
"deviceIds": [
"**deviceId0** "
]
}
}