Comments (6)
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.
I fixed the problem with the quotes but it's still not working, same problem. Should I try with eibd?
from homebridge-knx.
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.
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.
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)
$ npm install homebridge
....
$ npm install homebridge-knx
[email protected] node_modules/homebridge-knx
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
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-c
to 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.
This is stale for 10 days, so I assume it solved.
from homebridge-knx.
Related Issues (20)
- Neuer KNXSceneSelectorSwitch Handler AddIn HOT 3
- no status update on HomeKit HOT 2
- Humidity (9.007) shows wrong in Home.app HOT 4
- Controlling window covering without current and target position information
- ADDIN without reaction HOT 2
- HomeKit Sensor Status HOT 2
- strange issue with Siri voice command. HOT 1
- Question: Possibility to use KNX Address/UUID as Serialnumber HOT 1
- Question: Thermostat - How to red current temperature value with 0.1 degrees step? HOT 2
- Save the state of some lights HOT 1
- Group Address Level-2
- Question: Temperature is updated on start-up only
- How to configure devices for specific rooms HOT 4
- Lastest version of this plugin (0.3.27) can only run on an old version of homebridge >=0.4.28 <= 0.4.53 and Node 10 HOT 1
- GarageDoorOpenerAdvanced Rückmeldung Kontakt funktioniert nicht richtig HOT 12
- Homebridge Crash (AssertionError) after upgrading to v0.4.3 HOT 10
- v0.4.3 Status Jalousien HOT 6
- TypeError: Cannot read properties of undefined (reading 'knxd') HOT 1
- Deleted Property "MinValue" still throws errors after deleting/updating JSON-file. HOT 1
- KNX Typescript support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-knx.