Open nagisa opened 1 year ago
It might already be enough to catch the exception so that the thread is not killed. I created a new jar for openHAB 4.2.0 + download here: https://1drv.ms/u/s!AnMcxmvEeupwj4cVrMVDozaSqUKlbA?e=higGnK
Let me know your test results. If the issue occurs, you should have a debug line showing : "Failed communicating, probably time out" + stacktrace. So it is usefull to have your binding logging into debug.
Expected Behavior
Random connectivity-related exceptions should be recovered from automatically.
Current Behavior
I’ve noticed data stopped being updated from my DSMR electricity meter. Investigating revealed that the DSMR reader was reachable and providing data to anybody connecting over telnet just fine. However, OpenHAB’s UI was showing that the binding was "down". I found the following (singular) error in my system logs (i.e. this was output to
openhab’s
stderr):and the following errors in
userdata/logs/openhab.log
:This seems to be a prime example of roughly a spurious/transient error which should be recovered from automatically.
Possible Solution
:shrug:
Steps to Reproduce (for Bugs)
My thing is defined as such:
Context
I’m not aware of any network interruptions but even if there were any, I believe the expectation is that openhab generally reconnects when the connectivity restored.
Your Environment