Homebridge - Virtual address - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Homebridge - Virtual address (/showthread.php?tid=1438) |
Homebridge - Virtual address - Mr.D - 09.06.2018 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? RE: Homebridge - Virtual address - Erwin van der Zwart - 09.06.2018 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/showthread.php?tid=252&highlight=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 RE: Homebridge - Virtual address - Mr.D - 09.06.2018 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? RE: Homebridge - Virtual address - Erwin van der Zwart - 09.06.2018 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 RE: Homebridge - Virtual address - Mr.D - 09.06.2018 (09.06.2018, 19:57)Erwin van der Zwart Wrote: Hi, 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!! RE: Homebridge - Virtual address - Mr.D - 16.06.2018 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 But my question is, is there a way to create a resident script, and tag objects, and poll statuses from the objects tagged? RE: Homebridge - Virtual address - Erwin van der Zwart - 17.06.2018 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 RE: Homebridge - Virtual address - Mr.D - 17.06.2018 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 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 RE: Homebridge - Virtual address - Mr.D - 23.06.2018 Hi Erwin, I have been trying to identify the root cause of my problem, but so far no luck. It seems like the KNXD that is running are sending the new statuses, therefore it seems unlike that the error is there. Have monitored the bus and compared it to the KNXD, and they are showing the same objects and statuses. So I believe the error is caused in the homebridge, or the homebridge-knx plugin... So far I have no idea what is cause the homebridge not to update the new status. However, I have tried polling the status, so it is received again, and then the homebridge makes the update. Until I have can fix the root cause, a workaround could be to make some sort of script that polls the status, for example 10 seconds after a new status has been received/updated. Do you have a suggestion to how I can create a script that monitors change in status in tagged objects, and if a change is detected it polls that specific objects status 10 seconds later? By doing it this way the TP Load will not be highly effected since it only polls the one object that had a change in status : Also, is there a way to have event scripts not to react on "events" that is caused by this "polling script"? |