Git Product home page Git Product logo

Comments (6)

snowdd1 avatar snowdd1 commented on August 14, 2024

I cannot see any error in your config.json - except the strange quotes around "knxd_ip": “0.0.100”
Try to exchange those quotes with normal quotes - your editor might have replaced while typing. It's always best to use a plain text editor instead of a "smart" program (like MS Word, Write, you-name-it)

from homebridge-knx.

cece99 avatar cece99 commented on August 14, 2024

I fixed the problem with the quotes but it's still not working, same problem. Should I try with eibd?

from homebridge-knx.

snowdd1 avatar snowdd1 commented on August 14, 2024

Which version of Homebridge are you using?
I do not think that knxd/eibd are doing any harm at the moment (though I think it wouldn't work see below) , for some reason your accessory does not get read:

[3/13/2016, 3:12:39 PM] [KNX] Initializing KNX platform...
[3/13/2016, 3:12:39 PM] [KNX] Fetching KNX devices.
[3/13/2016, 3:12:39 PM] [KNX] returning 0 accessories

It should return 1 accessory, not 0.
I am not sure it actually reads the config.json you've pasted, do you might have more than one?

Your knxd parameters are a little mixed up. --eibaddr=0.0.100 doe not mean IP address 0.0.100 but KNX (physical) address of 0.0.100. For defining an IP listener, use --listen-tcp=192.168.0.1 or whatever your local network range suits.

See https://gist.github.com/snowdd1/0ecceb38e924ee125d36#local-listener-section for more details.

from homebridge-knx.

cece99 avatar cece99 commented on August 14, 2024

I only have a single config.json.

I'm using an USB to KNX controller, so I guess that --eibaddr=0.0.100 is not needed.
I think that I'm messing up the knxd parameters, I cannot understand which ip address and port should I put on the config.json file. Can you help me out with this?

from homebridge-knx.

snowdd1 avatar snowdd1 commented on August 14, 2024

Hi @cece99
I just re-installed my RaspberryPi with a fresh raspbian jessie lite.
I failed to run Homebridge with node v5, so I went for 4.4 again.

Which version are you using?

I used to following commands for installation:

Setup nodejs

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install nodejs

Setup Homebridge (not as global package but local to user pi)

I ran homebridge once to create the .homebridge directory in pi's home:

pi@homebridge-dev:~ $ DEBUG=* ./node_modules/homebridge/bin/homebridge -D 
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
2016-03-16 20:44:36] Loaded plugin: homebridge-knx
[2016-03-16 20:44:36] Registering platform 'homebridge-knx.KNX'
[2016-03-16 20:44:36] ---
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 031-45-154 │
    └────────────┘

  Accessory [Homebridge] Creating new AccessoryInfo for our HAP server +0ms
  Accessory [Homebridge] Creating new IdentifierCache +18ms
[2016-03-16 20:44:36] Homebridge is running on port 51826.
  EventedHTTPServer Server listening on port 51826 +77ms
^C[2016-03-16 20:44:56] Got SIGINT, shutting down Homebridge...

Pressed ctrl-cto kill it again, copied my old config.json to ~/.homebridge (with filezilla).

After restarting homebridge with the same command as above, all my accessories came back.

pi@homebridge-dev:~ $ DEBUG=* ./node_modules/homebridge/bin/homebridge -D
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
[2016-03-16 20:48:27] Loaded plugin: homebridge-knx
[2016-03-16 20:48:27] Registering platform 'homebridge-knx.KNX'
[2016-03-16 20:48:27] ---
[2016-03-16 20:48:27] Loaded config.json with 0 accessories and 1 platforms.
[2016-03-16 20:48:27] ---
[2016-03-16 20:48:27] Loading 1 platforms...
[2016-03-16 20:48:27] [KNX] Initializing KNX platform...
[2016-03-16 20:48:27] [KNX] Fetching KNX devices.
[2016-03-16 20:48:27] [KNX] parsing acc 0 of 27
[2016-03-16 20:48:27] [KNX] push new device Bewegung Treppe DG
[2016-03-16 20:48:27] [KNX] Accessory constructor called
[2016-03-16 20:48:27] [KNX] created Bewegung Treppe DG accessory
[2016-03-16 20:48:27] [KNX] parsing acc 1 of 27
[2016-03-16 20:48:27] [KNX] push new device Bewegung Treppe OG
[2016-03-16 20:48:27] [KNX] Accessory constructor called
[2016-03-16 20:48:27] [KNX] created Bewegung Treppe OG accessory
[2016-03-16 20:48:27] [KNX] parsing acc 2 of 27

...

Maybe you should consider re-installing node, homebridge and homebridge-knx on your pi.
For some reason homebridge never passes the accessories section to homebridge-knx in your current installation. It never comes to a point talking to knxd, so that cannot be a factor.

Best regards
Raoul

from homebridge-knx.

snowdd1 avatar snowdd1 commented on August 14, 2024

This is stale for 10 days, so I assume it solved.

from homebridge-knx.

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.