Git Product home page Git Product logo

Comments (12)

snowdd1 avatar snowdd1 commented on July 16, 2024

Could you please post the log here or as a Gist (better readable) ?

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

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.

gjniewenhuijse avatar gjniewenhuijse commented on July 16, 2024

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.

snowdd1 avatar snowdd1 commented on July 16, 2024

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.

gjniewenhuijse avatar gjniewenhuijse commented on July 16, 2024

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.

gjniewenhuijse avatar gjniewenhuijse commented on July 16, 2024

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.

snowdd1 avatar snowdd1 commented on July 16, 2024

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.

gjniewenhuijse avatar gjniewenhuijse commented on July 16, 2024

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.

snowdd1 avatar snowdd1 commented on July 16, 2024

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.

snowdd1 avatar snowdd1 commented on July 16, 2024

Hi, was smurfix able to solve your issue? I didn't see any of that floating by for some time.

from homebridge-knx.

gjniewenhuijse avatar gjniewenhuijse commented on July 16, 2024

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.

snowdd1 avatar snowdd1 commented on July 16, 2024

You're welcome.

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.