Hi everyone,
I am currently trying to add a new Opener callback that also needs to include two URL parameters. However, I am not able to get the Opener to send these parameters with the request:
My desired callback URL to a local Homebridge plugin is:
http://192.168.2.195:51828?accessoryId=doorbell&state=true
So, according to the documentation, I am sending the following GET request to my Bridge API with the above callback URL in URL-encoded format:
http://192.168.2.170:8080/callback/add?token=<mytoken>&url=http%3A%2F%2F192.168.2.195%3A51828&accessoryId%3Ddoorbell%26state%3Dtrue
Using the list command also yields a quite promising result as calling this URL manually works perfectly fine.
{
"callbacks": [
{
"id": 0,
"url": "http://192.168.2.195:51828?accessoryId=doorbell&state=true"
}
]
}
Finally, my callback basically also gets triggered just fine upon status changes but my endpoint signalises that the request parameters are missing so that desired action won’t be triggered (the Homebride plugin needs to have both parameters to trigger the right action for the right virtual button).
Am I possibly using a malformatted add request or making another mistake? The callback documentation examples for adding callbacks seem to mix up the URL-encoding in the examples: If I stick to the example with parameters (which does not encode &
and ?
, for instance), my callback URL parameters get omitted because they will be treated as parameters for the callback/add
request itself.
Thank you very much.