GithubHelp home page GithubHelp logo

Comments (9)

NilsBohr avatar NilsBohr commented on August 27, 2024 1

And try to install the plugin from github, I've added a lot of changes so maybe it will help

Installed from github with:

npm i -g git+https://github.com/itsmepetrov/homebridge-zigbee#master --unsafe-perm

You can try to log config param here https://github.com/itsmepetrov/homebridge-zigbee/blob/master/lib/zigbee.js#L10

It might have the wrong port

Looks good to me:

Feb 13 15:31:44 homebridge homebridge[1854]: config { port: '/dev/ttyACM0',
Feb 13 15:31:44 homebridge homebridge[1854]:   db: '/var/lib/homebridge/zigbee.db',
Feb 13 15:31:44 homebridge homebridge[1854]:   panId: 65535,
Feb 13 15:31:44 homebridge homebridge[1854]:   channel: 11 }

You need to run homebridge with DEBUG=* env variable

Perfect thnx.

I've figured out the problem.
The user homebridge which was launching the process was not in the dialout group and therefore couldn't access the Serial Port.

Feb 13 15:38:53 homebridge homebridge[2023]: 2019-02-13T15:38:53.431Z serialport:main opening path: /dev/ttyACM0
Feb 13 15:38:53 homebridge homebridge[2023]: 2019-02-13T15:38:53.434Z serialport:bindings open
Feb 13 15:38:53 homebridge homebridge[2023]: 2019-02-13T15:38:53.448Z serialport:main _read queueing _read for after open
Feb 13 15:38:53 homebridge homebridge[2023]: 2019-02-13T15:38:53.488Z serialport:main Binding #open had an error Error: Error: Permission denied, cannot open /dev/ttyACM0

Once I've added the user to the dialout group it worked.
Thanks for your help, the issue is closed.

from homebridge-zigbee.

itsmepetrov avatar itsmepetrov commented on August 27, 2024

Hi @NilsBohr

You can try to specify port to usb stick manually, maybe port auto-detection doesn't work on your environment

from homebridge-zigbee.

NilsBohr avatar NilsBohr commented on August 27, 2024

Hello @itsmepetrov

Sorry, I forgot to mention.
I tried both to specify port (as "/dev/ttyACM0") and to rely on auto-detection. The result is the same.

from homebridge-zigbee.

itsmepetrov avatar itsmepetrov commented on August 27, 2024

Do you try it in docker? I remember I had similar problems with docker.

from homebridge-zigbee.

itsmepetrov avatar itsmepetrov commented on August 27, 2024

and did you flash the stick with the appropriate firmware?

from homebridge-zigbee.

NilsBohr avatar NilsBohr commented on August 27, 2024

Do you try it in docker? I remember I had similar problems with docker.

No this is regular Armbian OS on an embedded PC.

and did you flash the stick with the appropriate firmware?

Yes, as said earlier, the stick is flashed, and I tried to launch zigbee-shepherd as a separate process. Works as expected.

Do you know a way to enable zigbee-shepherd debug messaging from within the homebridge-zigbee environment to study the issue further?

from homebridge-zigbee.

itsmepetrov avatar itsmepetrov commented on August 27, 2024

You need to run homebridge with DEBUG=* env variable

from homebridge-zigbee.

itsmepetrov avatar itsmepetrov commented on August 27, 2024

You can try to log config param here https://github.com/itsmepetrov/homebridge-zigbee/blob/master/lib/zigbee.js#L10

It might have the wrong port

from homebridge-zigbee.

itsmepetrov avatar itsmepetrov commented on August 27, 2024

And try to install the plugin from github, I've added a lot of changes so maybe it will help

from homebridge-zigbee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.