Comments (12)
Could you please post the log here or as a Gist (better readable) ?
from homebridge-knx.
And, are the lamps in Eve or your HomeKit app inaccessible?
If your start a browser pointing at the pi port 3000, can you see the bus values still changing if you work a wall switch?
from homebridge-knx.
Nope, the lamps are accessible in my HomeKit app (Insteon+), and i can turn my lamp on/off.
But when i toggle my wall switch nothing happens in the browser(port3000) and in my homekit app.
Here a short log:
[KNX] [knxdevice:knxread] knx request sent for 2/1/2
[KNX] [knxdevice:knxread] knx request sent for 2/4/2
[KNX] [knxdevice:knxread] knx request sent for 2/3/2
[KNX] [knxdevice:knxread] knx request sent for 2/5/2
[KNX] [Tafel lamp]: Received value from bus:0 for 2/5/2 from 2.2.20 of type DPT5 for Brightness
As you can see there is a received value from the bus, but now it stops receiving telegrams, but sending telegrams is possible. No error in the logging.
Maybe its KNXD related, but when i restart homebridge it worked again.
from homebridge-knx.
By "sending is possible" you mean you still can switch the lamp using a HomeKit app?
Only the status doesn't get updated as no telegrams are received by homebridge via knxd?
from homebridge-knx.
Yes i can switch the lamp with the homekit app and Siri.
And yes, no status telegrams are received by homebridge via knxd.
from homebridge-knx.
It looks like a KNXD issue, because when i execute:
sudo systemctl status knxd.service -l
First output:
â knxd.service - KNX Daemon
Loaded: loaded (/lib/systemd/system/knxd.service; enabled)
Active: activating (start) since Mon 2015-11-09 10:20:33 UTC; 43s ago
Main PID: 1413 (knxd)
CGroup: /system.slice/knxd.service
ââ1413 /usr/bin/knxd -e 2.1.242 -u -i -b ipt:192.168.2.6
Some minutes later:
â knxd.service - KNX Daemon
Loaded: loaded (/lib/systemd/system/knxd.service; enabled)
Active: activating (start) since Mon 2015-11-09 10:22:14 UTC; 56s ago
Main PID: 1490 (knxd)
CGroup: /system.slice/knxd.service
ââ1490 /usr/bin/knxd -e 2.1.242 -u -i -b ipt:192.168.2.6
There is a changed PID, so i think the service is automatically restarted after a crash or something else.
from homebridge-knx.
Makes sense. For sending values to the bus we currently open a new connection for each (still considering this only a second best solution, but it still works); For accepting telegrams from the bus we open a connection with a bus monitor and keep that open. If knxd crashes in the background and is restarted automatically (I do not have this on my raspi; I started it as a program with nohup and have it running since this summer! on a dedicated raspi1b) the bus monitor would not receive any telegrams any more. If have to figure out if it gets informed of the connection loss anywhere to print an error to the log.
You probably should try to get some more information out of the knxd process and its dying. Maybe smurfix (lead developer at knxd) can help you with that, and maybe it's something they need to fix in the knxd.
Looking at the PIDs in your example (1413 and 1490) there seem to be lot of terminated processes in between!
from homebridge-knx.
Thanks.
I stopped using the systemctl knxd.service and started knxd as program and now it looks like knxd is not crashing every x seconds. But how to start knxd on startup, i'm not a Linux guru :)
I try to inform smurfix about this problem, maybe he has a solution.
from homebridge-knx.
My raspberry is simply running all the time, and is connected to an inexpensive APC UPS for initerrupted 24/7 operations. If I nned to restart the raspberry (for security updates e.g.) I manually restart the knxd as well.
Had no time to invest more work into that yet.
from homebridge-knx.
Hi, was smurfix able to solve your issue? I didn't see any of that floating by for some time.
from homebridge-knx.
hello, i didn't contact smurfix. I tried your first solution for manual starting knxd and homebridge like this:
cd /home/pi/homekit
nohup /usr/bin/knxd -e x.x.xxx -u -i -b ipt:x.x.x.x &> knxd.out&
nohup homebridge &> homebridge.out&
and it works now, next is finding a way to start this commands with init.d
many thanks for all the hard work, its a very nice knx solution with homebridge.
from homebridge-knx.
You're welcome.
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 5
- 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.