Z-Way 2.3.4 "Not logged in" response

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
Leoliu
Posts: 1
Joined: 12 Jun 2017 12:59

Z-Way 2.3.4 "Not logged in" response

Post by Leoliu »

From an third party application (running on Rasberry pi) I am using the Z-Way JS API to access my Razberry device. I can login and control my z-wave device. However, when I implement the same HTTP JS command to my application which was running on the same rasberry pi, I always get a "Not logged in" response even if I already authenticated successfully. Below are the commands I used:
Login success fully with code 200:
POST http://127.0.0.1:8083/ZAutomation/api/v1/login
{"login":"admin", "password":"123456"}
"Not logged in" response with below command after authentication:
POST http://127.0.0.1:8083/ZWaveAPI/Run/devi ... s[0].Basic
Status able to get with below command at the same time:
GET http://127.0.0.1:8083/ZAutomation/api/v1/status




Fixed.
I have to add "Cookie: ZWAYSession=..." to HTTP head. Thanks.
Post Reply