Open bimcio opened 6 years ago
I have the same version of the firmware on my miniserver and 'Token-Enc' works. Make sure that you have correct credentials and latest version of node-lox-ws-api.
I have used the test program from node-lox-ws-api-testing with following line:
var lox = new LoxoneAPI("192.168.1.100", "admin", "password", true, 'AES-256-CBC');
This works. After changing the last parameter to 'Hash' it still works.
When changed to 'Token-Enc' (leaving the other parameters unchanged) it doesn't work anymore.
Can you maybe suggest what else I can check? (I am running the test on Windows 10)
Btw. The same happens when trying to connect to demominiserver.loxone.com:7779 (u:web pass:web). Login from browser works fine, does not work from node-lox-ws-api-testing. This demo server is running 9.3.3.26 (so no other way to login but TokenEnc).
Hmm, I just realized I made a mess, sorry. 'bartekmotyl' is my second github account (corporate), I haven't noticed I was logged in with another account. Anyway, all the comments above are from me.
Loxone just published its own node.js module that handles authentication, encryption and tokens in an easy way.
Its version 0.9 but it will work, I am using it in one of my own projects for a while now. (Yes, I am an Loxone employee...)
You may wanna check it out: LxCommunicator
Hi, my Loxone is currently running firmware 9.0.9.26 and I am connecting using 'AES-256-CBC'. This works fine. But as this mode is no longer supported in the latest version, before upgrading I wanted to make sure the 'Token-Enc' works. Unfortunatelly I was not able to make it work. I always get 401 when trying to call jdev/sys/gettoken:
Bartek