@cw-kid, about PART6
- Please use “$URL” to avoid truncation of a query in Bash shell:
- Please, use the “armed” property of a command, not “value”, replace “value_bool” with “armed_bool”.
curl --insecure --http1.1 “https://192.168.0.11:17000/v1/method/hub.device.armed.set?_id=5f4e588c120bab1069c13c4f&armed_bool=true”
curl --insecure --http1.1 “https://192.168.0.11:17000/v1/method/hub.device.armed.set?_id=5f4e588c120bab1069c13c4f&armed_bool=false”
hub.device.armed.set WS example:
“_id” : “OBJECT_ID”,
Thanks I can confirm the disarm commands now work, I have updated that section of the guide.
Small addition to the guide. If you want to be able to send commands to the Ezlo hub without needing a password you must use method hub.offline.anonymous_access.enabled.set. You still have to use https and the --insecure option.
The method hub.offline.insecure_access.enabled.set allows plain http access, i.e. not using SSL. So you can use curl --http1.1 “http://…”
I would leave the SSL option on unless you cannot use https for some reason.
HTTP commands were not working for me initially they are now however.
I have updated Part 2 here, with the new information about HTTP commands vs HTTPS.