With that URL string I get 'Invalid ZAutomation request'. I have more luck if I change the 'API' to 'api', in that it no longer reports Invalid request, but no matter how I format the string I can't get anything other than "Device doesn't exist".
First I verify the device exists and zway knows about it using another interface:
But we when I try to get data for the same device using ZAutomation, no matter how I ask, I get nothing:
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"}
Is there some formatting trick I'm missing, or something I need to do to enable this? Reading the doc, it looks like it should just work - it doesn't for me so I must be missing something, but I can't work out what!