Supergiovane / node-red-contrib-knx-ultimate

Control your KNX intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer.
https://youtu.be/egRbR_KwP9I
MIT License
153 stars 34 forks source link

"Read status on start" -> "Read from KNX Bus" doesn't work with Version 3.2.1 #374

Closed Lorilatschki closed 2 months ago

Lorilatschki commented 2 months ago

First of all, thanks for your great work on this node-red module!

Describe the bug After updating from v3.2.0 to v3.2.1 I do not recieve any value on start of the node-red container. For my dashboard this is required, therefor I have configured the nodes to "Read status on start" -> "Read from KNX Bus".

To Reproduce Add a debug node to the output of a KNX DEVICE. Setup the option "Read status on start" -> "Read from KNX Bus". Just update to v3.2.1 and restart node-red. After restarting the debug output isn't shown.

Expected behavior After some seconds the current value from the KNX BUS address shall be shown to the debug output.

Knx-Ultimate Version

Are you running node-red behind homematic, docker or anything similar?

Additional context After reverting to 3.2.0 everything works as expected. I can try to post debug informations with the v3.2.1 today evening.

Supergiovane commented 2 months ago

Hi I’m taking a look now. In the meantime, you can downgrade to 3.2.0

Supergiovane commented 2 months ago

Hi, mine works. https://github.com/user-attachments/assets/6ceaaed5-2a29-46df-97a7-408b1a568a20

Do you have set the nodes like this?

Node-RED___Flow_1
Lorilatschki commented 2 months ago

Yes I did. Maybe it is related since I am running node-red inside a docker container rather than directly on a raspberry PI. image

Supergiovane commented 2 months ago

Hmm... nope. Please, try to disable the RBE filter..

Supergiovane commented 2 months ago

Or, as you're alredy downgraded, i need the node-red log (node-red-log -n 2000) 2000 rows should be enough to trap the log of the version 3.2.1

Lorilatschki commented 2 months ago

Will try it once I am back home today evening and post the log here.

Lorilatschki commented 2 months ago

Even after disabling the RBE filter, it doesn't work. Attached are the logs of both v3.2.0 and v3.2.1. knx_log_3.2.1.txt knx_log_3.2.0.txt

Lorilatschki commented 2 months ago

BTW: It might be related, I am wondering why the version 3.2.1 is shown as unused after installing it. For version 3.2.0 it doesn't show the remove button. image

Supergiovane commented 2 months ago

Hmmmm. That’s strange. It seems some issues with node-red plugin registration. Nothing has changed in the “read” KNX process. Tomorrow i’ll check the logs better.

Supergiovane commented 2 months ago

I noticed this in the log: Delay handling queue. YOUR COMPUTER COULD BE TOO SLOW OR BUSY TO KEEP UP WITH THE STRICT TIMING, REQUIRED FOR KNX TO FUNCTION PROPERLY.

If you’ve installed the 3.2.1, please increase this, for example, set it at 50ms It seems that your knx gateway or PC cannot stand up to the telegegram’s rate.

image

Lorilatschki commented 2 months ago

It is already configured to 50ms, I will try to increase it to 100ms and see what happens.

Lorilatschki commented 2 months ago

I have tried to setup the delay between each telegram to 50, 100 and 200ms. Nothing worked with v3.2.1.

Supergiovane commented 2 months ago

Hi i think i found the issue. Can you check whether you enabled this?

Node-RED___Avvio
Lorilatschki commented 2 months ago

These are my current settings which runs well with v3.2.0. image

Supergiovane commented 2 months ago

node-red-contrib-knx-ultimate 3.2.2 is out. There was an issue with the KNX telegram's queue processing; the replies to the telegrams coming from the KNX Gateway, are now processed with priority. Can you try this version please?

Lorilatschki commented 2 months ago

Outstanding support! With version 3.2.2 the issue is solved. The issue with the unregistered plugin does still exist. Many thanks!

Supergiovane commented 2 months ago

Good. Thank you to you to pointing me out this issue! The issue with unregistered plugin is out of my control, sorry!