Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenHAB with username/password #39

Open
dkrizic opened this issue Oct 16, 2016 · 5 comments
Open

OpenHAB with username/password #39

dkrizic opened this issue Oct 16, 2016 · 5 comments

Comments

@dkrizic
Copy link

dkrizic commented Oct 16, 2016

My OpenHAB is secured with a Username/Password, because I access it remotely via the Internet. Homebridge is unable to access my OpenHAB and I can't see a location where I can enter username/password.

Can this be added?

@gijoecool
Copy link

Can you add to the URL in the homebridge config? Example http[s]://[username]:[password]@[ip-address]:[port]/

@dkrizic
Copy link
Author

dkrizic commented Oct 16, 2016

That solves it, thank you!

@dkrizic dkrizic closed this as completed Oct 16, 2016
@dkrizic dkrizic reopened this Oct 16, 2016
@dkrizic
Copy link
Author

dkrizic commented Oct 16, 2016

After starting homebridge, I loads all my devices, but then I see this

`[10/16/2016, 4:09:17 PM] Homebridge is running on port 51826.
events.js:141
throw er; // Unhandled 'error' event
^

Error: unexpected server response (401)
at ClientRequest.response (/usr/lib/node_modules/homebridge-openhab/node_modules/ws/lib/WebSocket.js:694:15)
at ClientRequest.g (events.js:260:16)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at HTTPParser.parserOnIncomingClient as onIncoming
at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)
at Socket.socketOnData (_http_client.js:322:20)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
`

@matz666
Copy link

matz666 commented Dec 10, 2016

You must add a line with "user":
And a line with "password":
In you config.json

@RafalLukawiecki
Copy link

Is it possible to configure the connection so it uses https rather than http, and so to port 8443? Just changing the port did not work. Many thanks for this very useful plug-in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants