-
-
Notifications
You must be signed in to change notification settings - Fork 28.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KNX integration stops working #47735
Comments
knx documentation |
Hey there @Julius2342, @farmio, @marvin-w, mind taking a look at this issue as its been labeled with an integration ( |
Hi! logger:
default: warning
logs:
# From low to high verbosity.
xknx.log: debug
# xknx.telegram: debug
# xknx.knx: debug
# xknx.raw_socket: debug Also please add knx configuration and some information about your installation (interface type etc.) |
@farmio Thanks, I enabled telegram and knx. It just stopped working. PFA the last 1000 lines of logs. I honestly cannot find anything interesting. Also including raw_socket did not really help. I see that group addresses can't be synced, but this is rather a symptom... As for the installation, see below for the config (indent might be off, as I copied the different yamls to notepad; but it all works) The devices I have are a lot and from different manufacturers... Lingg&Janke, ABB, Merten, MDT. Not sure how much info you need there? The interface is based on the Timberwolf Server 950Q (https://shop.elabnet.de/timberwolfserver/hutschiene-reg/timberwolf-server-950q-16gb-microsd_827_2265) - it has a certified KNX IP interface. I connect via LAN / Ethernet.
Let me know what kind of additional info you need? Thanks! |
Hm... this is odd. I don't see a knx tunnel reconnect or something other knx related that is not a slow GroupValueRead (which shouldn't cuase any troubles). Until line 1000 incoming every telegram get its Ack and this seems fine. Did you leave Something seems to block the telegram_queue here... 🧐 When this error occurs, does HA still update its states when triggered from the bus (eg. turning on a light from light switch)? So is only outbound communication not working? |
I agree it's odd :) The logs are currently:
Good idea with checking if state works when triggering from the bus. Will do that. The only issue is that I need to wait until HA "breaks" :) I have no way of triggering this issue currently. I will make sure to include the above search term in the log once it breaks again. BTW, any pointers on the other issue? HA not picking up new entities with "reload KNX"? It's a super pain to restart HA every time I add a switch :) |
No, the reload issue is a known one, but can't be reproduced by any developer till now (same for your main issue unfortunately). See #45129 You could add How long does it take until it breaks after a restart? |
Hey. OK, pitty on the reload. It's one of those stupid errors where it doesn't work, but doesn't throw any error message or anything... the worst to debug :) It just now broke. So I guess as the last was 2d ago that's more or less the time. Seems more-or-less consistent with my gut feeling ("a couple times a week"). Attached tail -n 10k lines. There's a sending command there as well. I did not yet add the state_update to logs as I didn't see the comment before it broke. Oh and BTW just before writing this post ~8-10 mins maybe, I tried a couple of times to toggle a light via ETS. Very concretely, this one:
HA did not update the state. However, the timeframe of me switching it manually via ETS is covered in the logs attached. Thanks! |
2021-03-17 13:22:44 DEBUG (MainThread) [xknx.telegram] <Telegram direction="Incoming" source_address="1.2.203" destination_address="1.2.61" payload="<DeviceDescriptorRead descriptor="0" />" /> so this is the last What devices are 1.2.203 (the source address) and 1.2.61 (destination address)? I think your tunnel endpoint is 1.2.202 so this is not even addressed to xknx. |
Hey @farmio. So The above mentioned log is 13:22:44. At this exact timing I was programming the device in question (1.2.61, a presence detector) from ETS. 1.2.203 is one of the tunnels of the Timberwolf Server. The TWS has 25 tunnels, so it has 1.2.200-1.2.225 I just did the test: HA works. I program another device using ETS. HA stops working. Attached another 10k lines of log. Programming around 1:00 am. Not sure if you need (s I see that you have a pull request), but just in case. Hope that fixes it. Thanks and good night :) |
I think its fixed once the PR gets merged and HA gets a dependency update. So I guess next release. Thank you for pointing out this bug and providing all these logs! |
I love it when people don't give up and push to get something fixed, it seems the number of HA KNX users is increasing too, thanks all! |
Well you know the ultimate motivator was WAF... :D Telling her "Oh if it doesn't turn off the light you just need to press the restart button, wait 2 minutes until it comes up again and then turn it off" wasn't really the best option :D Thanks all! |
The problem
The KNX integration stops randomly working. Pressing e.g. a switch first changes the state of the switch, but then returns to the initial position. The load (lamp) doesn’t change - so the bus does not receive the information. I cannot find anything of interest in the logs. It’s one of those “it just doesn’t work” errors. A restart (but not reloading of KNX) fixes the issue for another period (periods are random - e.g. a couple of days or hours).
Maybe unrelated: HA does not pick up new KNX entities via reloading KNX stack, only after restart of HA. This used to work, but doesn’t know.
What is version of Home Assistant Core has the issue?
2021.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
KNXo
Link to integration documentation on our website
https://www.home-assistant.io/integrations/knx/
Example YAML snippet
# Put your YAML below this line
Anything in the logs that might be useful for us?
# Put your logs below this line
The text was updated successfully, but these errors were encountered: