Hallo Leute,
gern würde ich den Türöffner meiner AXIS Türstation (A8207-VE) gern per Taster in der Homebrigde betätigen.
Für die Türstation gibt es "virtuelle Inputs" - heisst, man kann über das Aufrufen einer Webseite einen Befehl auslösen.
zum aktivieren:
http://ip/axis-cgi/virtualinpu…gi?schemaversion=1&port=1
zum deaktivieren:
http://ip/axis-cgi/virtualinput/deactivate.cgi?schemaversion=1&port=1
Das Plugin HTTP-Switch (https://github.com/Supereg/homebridge-http-switch) habe ich installiert, dieses funktioniert auch.
Mittels Webhook (IFTTT) kann ich die SONOS Lautsprecher ansprechen.
Wenn ich nun aber einen Switch erstelle und die Adresse vom virtuellen AXIS Kanal eintrage, erscheint im Log der Homebridge
Fehler 401 - ich vermute einen Zugriffsfehler.
hab auch schon http://BENUTZER:KENNWORT@ip/axis-cgi/virtualinput/activate.cgi?schemaversion=1&port=1 probiert...
leider ohne Erfolg.
In der Readme zum Plugin steht auch etwas von einem "auth" Befehl.
auth
<object> optional: If your http server requires authentication you can specify your credential in this
object. It uses those credentials for all http requests and thus overrides all possibly specified credentials inside
an urlObject for onUrl
, offUrl
and statusUrl
.
The object can contain the following properties: username
<string> required password
<string> required sendImmediately
<boolean> optional (Default: true When set to true the plugin will send the
credentials immediately to the http server. This is best practice for basic authentication.
When set to false the plugin will send the proper authentication header after receiving an 401 error code
(unauthenticated). The response must include a proper WWW-Authenticate
header.
also habe ich
in der Config eingefügt...mit den Anmeldedaten der Kamera, aber auch ohne Erfolg.
Jetzt die Frage, ob hier jemand einen Rat hat? VIelen Dank!