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

Plug-in not running #6

Closed
psdc-create opened this issue May 10, 2021 · 9 comments
Closed

Plug-in not running #6

psdc-create opened this issue May 10, 2021 · 9 comments
Labels
bug Something isn't working

Comments

@psdc-create
Copy link

I can't get the plug-in to do anything. I believe the error is related to this message I get when I restart home bridge:

"noble warning: adapter state unauthorized, please run as root or with sudo
or see README for information on running without root/sudo:
https://github.com/sandeepmistry/noble#running-on-linux
[5/10/2021, 5:16:21 AM] [SOMAShades] noble is not running. waiting for it to power on..."

I'm out of ideas!

Environment:

  • Plugin Version: Current
  • Homebridge Version: Current
  • Node.js Version: Unsure
  • NPM Version: current
  • Operating System: <!-- Raspbian
@psdc-create psdc-create added the bug Something isn't working label May 10, 2021
@mylylyl
Copy link
Owner

mylylyl commented May 10, 2021

Have you tried to add necessary permissions described in that link?

@psdc-create
Copy link
Author

If you mean this section of the linked file:

Make sure node is on your PATH. If it's not, some options:

Symlink nodejs to node: sudo ln -s /usr/bin/nodejs /usr/bin/node
Install Node.js using the NodeSource package

I've tried the first option with no luck (symlink Command not found). Oddly enough "man symlink" returns an entry. Sorry - I'm new to the pi and these soma shades are doing my head in. I've been trying to link them to HomeKit for days.

@mylylyl
Copy link
Owner

mylylyl commented May 10, 2021

what system you're running? I've not heard of any linux system not having ln
anyway you should checking this section https://github.com/abandonware/noble#running-without-rootsudo-linux-specific

@psdc-create
Copy link
Author

psdc-create commented May 10, 2021 via email

@mylylyl
Copy link
Owner

mylylyl commented May 10, 2021

not sure what you mean by $(eval readlink -f `which node`). it should return you the path of node executable (in this case /usr/bin/node)
I haven't tried running homebridge in a docker container so I can't offer much help here. I would assume you need extra steps to pass bluetooth device into container

@psdc-create
Copy link
Author

psdc-create commented May 11, 2021 via email

@mylylyl
Copy link
Owner

mylylyl commented May 12, 2021

are you installing nodejs this way?
still i would guess there are extra steps to "pass" bluetooth device into a docker container. Maybe try this command and see if you have bluetooth device: hcitool dev

@psdc-create
Copy link
Author

psdc-create commented May 13, 2021 via email

@mylylyl
Copy link
Owner

mylylyl commented May 13, 2021

Glad you find a solution! I think it's very good as some other users may find it useful.

@mylylyl mylylyl closed this as completed May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants