Homebridge - Virtual address
#1
Hi,

I have finally set up a Homebridge running on a Raspberry Pi. Works like a charm!
However, there is one thing bugging me. I have a few "virtual" knx addresses set up in SpaceLynk.
Once homebridge is up and running it is able to use the virtual knx addresses, change them and receive the correct status etc.
But when starting up/rebooting homebridge it does not read the status of the virtual addresses since they are not on the KNX Bus, but stored locally on the Spacelynk. Anyone know how I can get the homebridge to read the local KNX address from SpaceLynk?


When starting the homebridge I use the following command in the config sys fil for those knx addresses I would like to get status from:
"KNXReadRequests": ["1/1/1"]
However, it does not read the "virtual" addresses....

Anyone?
BR,
Mr.D
Reply
#2
Hi,

Objects in the controller are not responding on a read request, you need to add a small script to make them do that.

See this topic: https://forum.logicmachine.net/showthrea...=read+flag

Keep in mind that it only works for main adresses 0-31, 32 to 63 (virtual scope) are not used by the KNX engine and cannot send anything to TP bus/KNX IP.

BR,

Erwin
Reply
#3
Hi Erwin,

Thanks again for your help!!
Got it to work, but as I understand the description I can TAG the objects. This way I do not need to have an event script for every object I want the Homebridge to read. The only thing is, what is the TAG name I need to use?
BR,
Mr.D
Reply
#4
Hi,

Any TAG will do as long as it is unique in your controller, just add it to your objects and the script.

BR,

Erwin
Reply
#5
(09.06.2018, 19:57)Erwin van der Zwart Wrote: Hi,

Any TAG will do as long as it is unique in your controller, just add it to your objects and the script.

BR,

Erwin

Ahh me bad.
I forgot you could create a script using a TAG instead of an object!
NOOB hahaha

Thanks Erwin! I really appreciate all the help you have given me!!
BR,
Mr.D
Reply
#6
A slightly related question.
I am experiencing some unwanted behavior with my homebridge. It seems to "skip/miss" updates/changes in some of knx objects... the wired thing is that it is random knx addresses, so some times it could be a brightness status that does not update and other times its a temperature etc. So one solution is to start polling statuses via the SpaceLynk, this way if the homebridge misses an update, the frequent polling will make sure to rectify the error.... I am running a KNXD service on my Raspberry Pi that might be the cause but I am too much of a noob to even know where to start looking hahahaha
Just out of curiosity, can the SpaceLynk work as a "KNXD" related to Homebridge? I would believe it would be more stable Smile

But my question is, is there a way to create a resident script, and tag objects, and poll statuses from the objects tagged?
BR,
Mr.D
Reply
#7
Hi,

This is a bandage, i would look why the problem occurs in the first place, have you checked the TP load on the moments the issue occurs?

BR,

Erwin
Reply
#8
Hi,

I don't know what the TP load is when it happens, but I am certain its fairly low... Some of the changes in statuses that is not registered happens during night time, and it is a time scheduled event. And at this time there is noting going on in the system.... usually at daytime the TP load is about 7%.. so its never too much going on.
I believe it is the KNX deamon running on my raspberry pi that is the issue.... It is using multicast to pick up and alter the objects... When looking at the spacelynk touch "app" the status has the right status... So the Spacelynk is ALWAYS correct Smile That's why I believe using the spacelynk as KNX deamon for the homebridge would be the best way to go... but I don't know if thats even possible...
in my homebridge knx_config file I am referring to this:
"knxd_ip": "10.0.1.29",
"knxd_port": 6720,
"AllowWebserver": true,
"WebserverPort": 18082,

I doubt its as simple as changing the IP to my Spacelynks IP Smile
BR,
Mr.D
Reply


Forum Jump: