Code: Select all
ZWayVDev_zway_3-0-50-2:0
Code: Select all
http://127.0.0.1:8083/ZWaveAPI/Run/devices[4].data.givenName.value
http://127.0.0.1:8083/ZWaveAPI/Run/devices[4].instances[0].commandClasses[49].data[3].sensorTypeString.value
Code: Select all
ZWayVDev_zway_3-0-50-2:0
Code: Select all
http://127.0.0.1:8083/ZWaveAPI/Run/devices[4].data.givenName.value
http://127.0.0.1:8083/ZWaveAPI/Run/devices[4].instances[0].commandClasses[49].data[3].sensorTypeString.value
Code: Select all
http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_2:0:50/command/update
Code: Select all
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_2:0:50 doesn't exist"}
Code: Select all
ZWayVDev_ - just a prefix for all devices created by the Z-Wave Binding App
zway - Z-Wave Binding instance ID (configured in the app settings)
3 - Z-Wave node ID
0 - Channel ID
50 - CC Id (Meter in this case)
2 - scale Id
Code: Select all
$ curl -gL 'http://127.0.0.1:8083/ZWaveAPI/Run/devices[3].instances[0].commandClasses[50].data[2]'
{"invalidateTime":1587450600,"updateTime":1587450602,"type":"empty","value":null,"sensorType":{".........
Code: Select all
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_cen_3_0_50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_cen_3_0_50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_cen_3_0_50_2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_cen_3_0_50_2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_cen_3-0-50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_cen_3-0-50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_cen_3-0-50-2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_cen_3-0-50-2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_cen_3.0.50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_cen_3.0.50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_cen_3.0.50.2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_cen_3.0.50.2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_cen_3:0:50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_cen_3:0:50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_cen_3:0:50:2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_cen_3:0:50:2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_CEN_3_0_50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_CEN_3_0_50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_CEN_3_0_50_2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_CEN_3_0_50_2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_CEN_3-0-50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_CEN_3-0-50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_CEN_3-0-50-2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_CEN_3-0-50-2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_CEN_3.0.50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_CEN_3.0.50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_CEN_3.0.50.2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_CEN_3.0.50.2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_CEN_3:0:50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_CEN_3:0:50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_CEN_3:0:50:2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_CEN_3:0:50:2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_3_0_50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_zway_3_0_50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_3_0_50_2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_zway_3_0_50_2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_3-0-50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_zway_3-0-50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_3-0-50-2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_zway_3-0-50-2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_3.0.50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_zway_3.0.50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_3.0.50.2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_zway_3.0.50.2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_3:0:50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_zway_3:0:50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_3:0:50:2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_zway_3:0:50:2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_ZWAY_3_0_50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_ZWAY_3_0_50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_ZWAY_3_0_50_2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_ZWAY_3_0_50_2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_ZWAY_3-0-50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_ZWAY_3-0-50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_ZWAY_3-0-50-2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_ZWAY_3-0-50-2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_ZWAY_3.0.50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_ZWAY_3.0.50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_ZWAY_3.0.50.2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_ZWAY_3.0.50.2 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_ZWAY_3:0:50:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_ZWAY_3:0:50 doesn't exist"}
Trying http://127.0.0.1:8083/ZAutomation/api/v1/devices/ZWayVDev_ZWAY_3:0:50:2:
{"data":null,"code":404,"message":"404 Not Found","error":"Device ZWayVDev_ZWAY_3:0:50:2 doesn't exist"}
Code: Select all
$ curl -vgL 'http://127.0.0.1:8083/ZAutomation/api/v1/device'
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8083 (#0)
> GET /ZAutomation/api/v1/device HTTP/1.1
> Host: 127.0.0.1:8083
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Server: Mongoose/6.4
< Content-Type: text/plain; charset=utf-8
< Connection: close
< Content-Length: 9
<
* Curl_http_done: called premature == 0
* Closing connection 0
Not Found
Code: Select all
{"data":{"structureChanged":false,"updateTime":1587932081,"devices":[]},"code":200,"message":"200 OK","error":null}