first of all thanks very much for this awesome plugin!
After installing and configurating the plugin, I always got the following error at the start of homebridge:
[Velux-Bridge] Could not retrieve api key. Status 400
Doing further restarts of homebridge even locked my Velux account for 10 minutes.
Digging deeper I found that the api is responding with: {"error":"invalid_grant"} Not understanding why that is the case, I went further and intercepted the api calls of the Velux Active iOS app with httptoolkit. There I found the issue with my password. I was using a + symbol in my password and for the api calls this symbol needs to be encoded to %2B.
As a work around I just replaced the + with %2B in the plugin config.
This has been the only issue for me, but in general I assume that almost all symbols in the password string (except -) need to be encoded for the api.
Happy that my rolling shutters are now connected to homebridge,
Hi Droccal,
first of all thanks very much for this awesome plugin!
After installing and configurating the plugin, I always got the following error at the start of homebridge:
[Velux-Bridge] Could not retrieve api key. Status 400
Doing further restarts of homebridge even locked my Velux account for 10 minutes.Digging deeper I found that the api is responding with:
{"error":"invalid_grant"}
Not understanding why that is the case, I went further and intercepted the api calls of the Velux Active iOS app with httptoolkit. There I found the issue with my password. I was using a+
symbol in my password and for the api calls this symbol needs to be encoded to%2B
.As a work around I just replaced the + with %2B in the plugin config.
This has been the only issue for me, but in general I assume that almost all symbols in the password string (except
-
) need to be encoded for the api.Happy that my rolling shutters are now connected to homebridge,
Best regards, Johnny