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 tunneling connection loss - time/date no longer exposed - reconnect should not trigger automation #69328
Comments
knx documentation |
Hey there @Julius2342, @farmio, @marvin-w, mind taking a look at this issue as it has been labeled with an integration ( |
Hi 👋! In 2022.4 we will have done countermeasures for your problem 0: the connection losses - this may or may not be fixed then. At 1) this is odd, it should resume to send - 1 hour after the connection was established again. According to your log it did restart 6 times - are you exposing 6 date/time GAs? At 2) Wehn the bus is disconnected your entities will have the state "unavailable", when it is connected again they regain their previous state. 2 state_changed events are fired - this is HA standard behaviour. Your automations should either account for this or just use |
Hi @farmio! Thanks for the quick assist. Glad to hear that 'problem 0' was already on the radar and is currently being worked on.
|
I doubt this was the reason. If your disconnects were ~ once an hour it would just never trigger, but since it was every couple of days I don't know. Someone else has reported the same issue already, but I could not reproduce it on my system 🤷 Try 2022.4 - it just came out a couple of hours ago. Hope KNX connection is not affected by the actual problem anymore... and who knows, maybe the actual problem got fixed also 😃 |
Last weekend I switched to 2022.4. The daily disconnects have vanished, but the exposing of time/date on the KNX bus still fails. Logs show however that it should be working/running (task gets resumed after the connection is reestablished). I will now start a group monitor in ETS (might give some insight). |
Sure, but keep in mind the ETS GroupAddressMonitor doesn't show disconnects and reconnects which resets the timers for time sending). Maybe also look at xknx.telegram logs if HA even tries to send to your configured GAs. |
ETS GroupAddressMonitor confirmed that right now, the time is not being exposed (nothing seems to be written to the relevant GA's 2/4/0-2/4/4). The xknx logs showed me that (see log.txt):
So, it seems to me that the reconnect is somehow messing with the expose-feature? (Maybe something with the 'timer' for time sending you mentioned) |
We'll look into it. |
In the log I attached to my previous post, I don't see any indication why the connection was dropped 2 times. The only thing I can think of is that normally HA gets rebooted when it gets an upgraded. Since watchtower is handling these upgrades, these happen for a lot of containers a once, resulting in a temporary high load of my server. Maybe the KNX IP Gateway is shutting down the connection due to a slow response or something? I just manually restarted HA but the connection seems to remain stable (no reconnects). |
After almost a day with a stable tunnel connection (no reconnects), HA keeps exposing time to the KNX bus on an hourly basis. I think this confirms something goes wrong after HA has reconnected. Please let me know if there is anything further I can do to help. |
I encounter the same problem now since somewhere in December - until now a restart of Home assistant helped but until 2022.04 event restart helps updating my time / date. |
@smallFire1602 Hi 👋! Are you on 2022.4.5 already? We fixed a bug that might affect this, but we are not entirely sure as we can't reproduce it yet. Could you please elaborate on
What exactly does and does not work? |
@farmio I am on 2022.4.5- Until 2022.04.0 I did get an updated time / date on my displays with every restart of home assistant. Update every hour was not working as told somewhere in December 21 or even a little bit longer... |
I'm having the same problem. I discovered that time and date were not exposed anymore to the KNX bus. Also the temperature is exposed, and that's working fine. I'm already running 2022.4.5 |
#70342 should fix this. I was able to reproduce the issue locally and the fix works at least for me. @farmio Didn't have the bug locally so let's see what happens. I hope this will be part of 2022.4.7. If so, it would be nice if someone could test it again once that's released (will take some more days at least). |
Shure, as soon as 2022.4.7 is released. I'll test it and post the restults here. |
I've installed 2022.4.7 and can confirm this bug is solved. Time & date are now again exposed to the KNX bus. Thanks everybody for solving this issue. |
For me it worked sadly one time only after a restart. |
For me, my initial problem remains after installing 2022.4.7. A reconnection with the KNX-bus still breaks things (tested and confirmed by physically pulling the cable for a few minutes). The time is still no longer exposed after a reconnection to the KNX-bus (as initially reported). Should I open a new issue, or is there a way to reopen this issue? |
I reopened it. I will test it again when I have some time left. |
So we identified the issue and are working on a fix. It will need a new release of xknx - hopefully done until 2022.5 is released (xknx 0.21.0 used in coming beta 5 still has the issue). |
Works now like a charm! Thanks! |
The problem
HA seems to drop within 1-2 days after a restart the tunneling connection to my KNX IP gateway (Weizierl KNX IP BAOS 772). This leads to 2 problems:
What version of Home Assistant Core has the issue?
core-2022.3.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
knx
Link to integration documentation on our website
https://www.home-assistant.io/integrations/knx/
Diagnostics information
config_entry-knx-28c60dd0515f3e0a436bbaf149f3a85b.json (1).txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
I have tried to work around the second problem by adding a delay to the automation (it should only trigger when the KNX-'night' scenario has been active for 2 seconds) but the problem persists. The wall sockets are still being switched on by the automation, although it only contains a "switch off" action.
The text was updated successfully, but these errors were encountered: