New Jeelink Openhab2 Binding

When i add init parameters and save it via Paper UI, it saves but the connection is not coming on again

12:49:55.468 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Closing TCP connection to port 192.168.179.4:81...
12:49:55.475 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Shutting down reader for TCP port 192.168.179.4:81...
12:49:55.535 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:jeelinkTcp:lgw' has been updated.
12:49:55.543 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:jeelinkTcp:lgw' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Socket closed
12:49:55.556 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Opening TCP connection to host 192.168.179.4 port 81...
12:49:55.563 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:591E' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
12:49:55.572 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:16' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
12:49:55.575 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:5828' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
12:49:55.568 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Creating TCP socket to 192.168.179.4:81...
12:49:55.594 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - TCP socket created.
12:49:55.611 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:13' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
12:49:55.615 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:B0A7' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
12:49:55.610 [DEBUG] [ding.jeelink.internal.JeeLinkHandler] - Connection to port 192.168.179.4:81 aborted (Socket closed). Reconnect scheduled.
12:49:55.620 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:46' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
12:49:55.628 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:BC81' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
12:49:55.629 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Reader for TCP port 192.168.179.4:81 finished...
12:49:55.636 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:5828' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
12:49:55.646 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:591E' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
12:49:55.646 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:13' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
12:49:55.676 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:29' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
12:49:55.680 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:46' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
12:49:55.687 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:29' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
12:49:55.689 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:jeelinkTcp:lgw' changed from OFFLINE (COMMUNICATION_ERROR): Socket closed to ONLINE
12:49:55.696 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:16' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
12:49:55.705 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:B0A7' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
12:49:55.711 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:BC81' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

i know it says online but there no more log entrys and no updates

edit:
it does not work even after bundle:stop bundle:start

15:41:48.292 [DEBUG] [org.openhab.binding.jeelink         ] - BundleEvent STOPPING - org.openhab.binding.jeelink
15:41:48.312 [DEBUG] [org.openhab.binding.jeelink         ] - BundleEvent STOPPED - org.openhab.binding.jeelink
15:41:53.804 [DEBUG] [org.openhab.binding.jeelink         ] - BundleEvent STARTING - org.openhab.binding.jeelink
15:41:53.846 [DEBUG] [org.openhab.binding.jeelink         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=binding.jeelink, component.id=204, service.id=348, service.bundleid=240, service.scope=bundle} - org.openhab.binding.jeelink
15:41:53.874 [DEBUG] [org.openhab.binding.jeelink         ] - BundleEvent STARTED - org.openhab.binding.jeelink
15:41:53.987 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:591E' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
15:41:53.990 [DEBUG] [elink.internal.JeeLinkHandlerFactory] - creating JeeLinkHandler for thing lgw...
15:41:53.992 [DEBUG] [elink.internal.JeeLinkHandlerFactory] - registering sensor discovery service...
15:41:53.998 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:5828' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
15:41:54.004 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:B0A7' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
15:41:54.005 [DEBUG] [org.openhab.binding.jeelink         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=349, service.bundleid=240, service.scope=singleton} - org.openhab.binding.jeelink
15:41:54.029 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:BC81' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
15:41:54.031 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Opening TCP connection to host 192.168.179.4 port 81...
15:41:54.033 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Creating TCP socket to 192.168.179.4:81...
15:41:54.037 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:jeelinkTcp:lgw' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
15:41:54.043 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - TCP socket created.
15:41:54.052 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:jeelinkTcp:lgw' changed from INITIALIZING to ONLINE
15:41:54.079 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:46' changed from UNINITIALIZED to INITIALIZING
15:41:54.088 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:46' changed from INITIALIZING to UNKNOWN
15:41:54.108 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:13' changed from UNINITIALIZED to INITIALIZING
15:41:54.121 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:13' changed from INITIALIZING to UNKNOWN
15:41:54.154 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:16' changed from UNINITIALIZED to INITIALIZING
15:41:54.180 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:16' changed from INITIALIZING to UNKNOWN
15:41:54.191 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:29' changed from UNINITIALIZED to INITIALIZING
15:41:54.199 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:29' changed from INITIALIZING to UNKNOWN
15:41:54.251 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Closing TCP connection to port 192.168.179.4:81...
15:41:54.254 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Shutting down reader for TCP port 192.168.179.4:81...
15:41:54.259 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Opening TCP connection to host 192.168.179.4 port 81...
15:41:54.263 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Creating TCP socket to 192.168.179.4:81...
15:41:54.269 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - TCP socket created.
15:41:54.281 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:jeelinkTcp:lgw' has been updated.
15:41:54.295 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:lacrosse:46' has been updated.
15:41:54.311 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:lacrosse:13' has been updated.
15:41:54.321 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:lacrosse:16' has been updated.
15:41:54.336 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:lacrosse:29' has been updated.
15:41:54.373 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:BC81' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
15:41:54.386 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:BC81' changed from INITIALIZING to UNKNOWN
15:41:54.402 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:B0A7' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
15:41:54.412 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:B0A7' changed from INITIALIZING to UNKNOWN
15:41:54.428 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:5828' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
15:41:54.441 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:5828' changed from INITIALIZING to UNKNOWN
15:41:54.455 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:591E' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
15:41:54.466 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:591E' changed from INITIALIZING to UNKNOWN

only a openhab restart helps

Hello Volker,
after a long time I restarted with a new openhab installation.
Now I red that the binding is in the official release, but I can not find it in the paperUI at bindings.
How to install the binding?
Do I still need to download a jar file?
If so, do you have a link?

Thank you in advance.

Matthias

Hey Matze, look 4 posts over you for the link :wink:

The last lines show that the sensors come online. They only do that when they get a reading. If you enable TRACE, you will most likely see that something is read from the lgw.

I have now updated the binding once again to support LGWs (and added more logging). Can you please test if this works better? If not, please enable TRACE level and post the relevant part of the log.

Edit: just to make that clear, discovery still needs a high polling rate set by an init command, but you should now be able to control the socket with the LGW. I have also fixed a bug in the TCP connection code.

I was a little too fast in saying that the binding is now part of the official distribution. It is, but only from 2.2-SNAPSHOT onwards. So if you are on 2.2-SNAPSHOT, you can install it normally. If you are still on 2.1, you can use the jar from here:
https://openhab.jfrog.io/openhab/libs-pullrequest-local/org/openhab/binding/org.openhab.binding.jeelink/2.1.0-SNAPSHOT/org.openhab.binding.jeelink-2.1.0-SNAPSHOT.jar

Hi Volker,
these logs were with enabled TRACE.
TRACE shows the raw readings, but as you see, there was the problem, no readings.
I try your new version and report back.
Thanks!

P.S. I use the 2.2.0 SNAPSHOT under 2.1, is it ok?

Hi Volker,
i did a reboot of the LGW but the binding doesnt reconnect.
Here the log:

14:41:51.793 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 9 13 1 4 24 76
14:41:51.795 [TRACE] [.LaCrosseTemperatureReadingConverter] - Creating reading from: OK 9 13 1 4 24 76
14:41:51.799 [DEBUG] [sse.LaCrosseTemperatureSensorHandler] - updating states for thing Thermometer Balkon (13): temp=4.8 (4.8), humidity=76, batteryNew=false, batteryLow=false
14:41:52.820 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 9 29 1 4 185 48
14:41:52.822 [TRACE] [.LaCrosseTemperatureReadingConverter] - Creating reading from: OK 9 29 1 4 185 48
14:41:52.826 [DEBUG] [sse.LaCrosseTemperatureSensorHandler] - updating states for thing Thermometer Schlafzimmer (29): temp=20.9 (20.9), humidity=48, batteryNew=false, batteryLow=false
14:41:52.841 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 9 46 1 4 197 46
14:41:52.844 [TRACE] [.LaCrosseTemperatureReadingConverter] - Creating reading from: OK 9 46 1 4 197 46
14:41:52.848 [DEBUG] [sse.LaCrosseTemperatureSensorHandler] - updating states for thing Thermometer Bad (46): temp=22.1 (22.1), humidity=46, batteryNew=false, batteryLow=false
14:41:52.972 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 22 89 30 1 148 181 78 1 148 179 239 0 11 47 165 11 247 43 32 1 0
14:41:52.977 [DEBUG] [link.internal.ec3k.Ec3kSensorHandler] - updating states for thing 591E: currWatt=306.3 (306.3), maxWatt=1104.0, consumption=733, secondsOn=26522607, secondsTotal=26522958
14:41:53.111 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 9 16 1 4 32 106
14:41:53.113 [TRACE] [.LaCrosseTemperatureReadingConverter] - Creating reading from: OK 9 16 1 4 32 106
14:41:53.117 [DEBUG] [sse.LaCrosseTemperatureSensorHandler] - updating states for thing Thermometer Kuehlschrank (16): temp=5.6 (5.6), humidity=106, batteryNew=false, batteryLow=false
14:41:54.222 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 22 176 167 0 2 123 66 0 1 198 15 0 0 1 127 0 15 11 109 4 0
14:41:54.226 [DEBUG] [link.internal.ec3k.Ec3kSensorHandler] - updating states for thing B0A7: currWatt=1.5 (1.5), maxWatt=292.5, consumption=0, secondsOn=116239, secondsTotal=162626
14:41:54.361 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 22 188 129 1 89 2 88 0 225 168 159 0 1 229 21 0 69 8 190 2 0
14:41:54.367 [DEBUG] [link.internal.ec3k.Ec3kSensorHandler] - updating states for thing BC81: currWatt=6.9 (6.9), maxWatt=223.8, consumption=124, secondsOn=14788767, secondsTotal=22610520```

The part you just posted only contains an ongoing connection. Is 192.168.179.4:82 your LGW?

There is no entry at all about the connection being lost. Have you updated to the newest version? I have used ser2net to make the serial port of my Jeelink clone available on my pc. After defining the Jeelink TCP to the PC, the following happens when I kill ser2net and restart it:

2017-12-01 14:51:12.504 [ERROR] [rnal.connection.JeeLinkTcpConnection] - IO exception
java.io.IOException: Got EOF on port 192.168.178.33:6666
at org.openhab.binding.jeelink.internal.connection.JeeLinkTcpConnection$Reader.run(JeeLinkTcpConnection.java:122) [228:org.openhab.binding.jeelink:2.2.0.201712010856]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
2017-12-01 14:51:12.516 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Closing TCP connection to port 192.168.178.33:6666ā€¦
2017-12-01 14:51:12.519 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Shutting down reader for TCP port 192.168.178.33:6666ā€¦
2017-12-01 14:51:12.545 [DEBUG] [ding.jeelink.internal.JeeLinkHandler] - Connection to port 192.168.178.33:6666 aborted (Got EOF on port 192.168.178.33:6666). Reconnect scheduled.
2017-12-01 14:51:12.550 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Reader for TCP port 192.168.178.33:6666 finishedā€¦
2017-12-01 14:51:22.546 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Opening TCP connection to host 192.168.178.33 port 6666ā€¦
2017-12-01 14:51:22.549 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Creating TCP socket to 192.168.178.33:6666ā€¦
2017-12-01 14:51:22.554 [ERROR] [rnal.connection.JeeLinkTcpConnection] - Uncaught exception
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:?]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:?]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
at java.net.Socket.connect(Socket.java:589) ~[?:?]
at java.net.Socket.connect(Socket.java:538) ~[?:?]
at java.net.Socket.(Socket.java:434) ~[?:?]
at java.net.Socket.(Socket.java:211) ~[?:?]
at org.openhab.binding.jeelink.internal.connection.JeeLinkTcpConnection.openConnection(JeeLinkTcpConnection.java:71) ~[?:?]
at org.openhab.binding.jeelink.internal.JeeLinkHandler.lambda$0(JeeLinkHandler.java:93) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
2017-12-01 14:51:22.581 [DEBUG] [ding.jeelink.internal.JeeLinkHandler] - Connection to port 192.168.178.33:6666 aborted (Connection refused (Connection refused)). Reconnect scheduled.
2017-12-01 14:51:32.581 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Opening TCP connection to host 192.168.178.33 port 6666ā€¦
2017-12-01 14:51:32.584 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Creating TCP socket to 192.168.178.33:6666ā€¦
2017-12-01 14:51:32.588 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - TCP socket created.
2017-12-01 14:51:32.591 [DEBUG] [ding.jeelink.internal.JeeLinkHandler] - Connection to port 192.168.178.33:6666 opened.
2017-12-01 14:51:32.592 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Reader for TCP port 192.168.178.33:6666 startingā€¦
2017-12-01 14:51:32.607 [DEBUG] [ding.jeelink.internal.JeeLinkHandler] - Connection to port 192.168.178.33:6666 established. Reconnect cancelled.
2017-12-01 14:51:32.614 [DEBUG] [.internal.pca301.Pca301SensorHandler] - updating states for thing PCA301 power monitoring wireless socket (1-160-236): state=true, current=0.0, total=170

You can see that the connection has been dropped and re-established. This should be exactly what happens when you reboot the LGW.

Forget this post.
After some minutes the binding show up. :slight_smile:

Thank you for the reply.
I downloaded the jar file and added it into /usr/share/openhab2/addons
After that I installed the feature openhab-transport-serial via Karaf Console
Then I restarted the openhab service

Unfortunately I still can not find the binding in the binding list of the Paper UI.

Whats wrong?

Thank you in advance.

BR
Matthias

Hi Volker, thanks a lot for implementing the PCA301 socket support. I tested the the new binding from your link. The discovery of the new things (PCA301) was working like a charm.

Inside the thing-configuration of a PCA301 socket I was not able to configure/see details like values or turning off/on to bind them to items (I was using Paper-UI).

Log-Output (Discovery):
2017-12-01 22:16:47.983 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:1-160-236ā€™ has been added.
2017-12-01 22:16:48.063 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-205-137ā€™ has been added.
2017-12-01 22:16:48.087 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-204-80ā€™ has been added.
2017-12-01 22:16:48.110 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-205-30ā€™ has been added.
2017-12-01 22:16:48.133 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:1-163-61ā€™ has been added.
2017-12-01 22:16:48.158 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-132-127ā€™ has been added.
2017-12-01 22:16:48.181 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-241-53ā€™ has been added.
2017-12-01 22:16:48.205 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-137-41ā€™ has been added.
2017-12-01 22:16:48.233 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-183-74ā€™ has been added.
2017-12-01 22:16:48.256 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-181-249ā€™ has been added.
2017-12-01 22:16:48.280 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:187-199-255ā€™ has been added.
2017-12-01 22:16:48.302 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-240-203ā€™ has been added.
2017-12-01 22:16:48.334 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:1-160-172ā€™ has been added.
2017-12-01 22:17:00.480 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:2-241-96ā€™ has been added.
2017-12-01 22:17:00.505 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-241-49ā€™ has been added.
2017-12-01 22:17:00.529 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:48-64-124ā€™ has been added.
2017-12-01 22:17:00.552 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:195-243-181ā€™ has been added.
2017-12-01 22:17:00.576 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:5-132-63ā€™ has been added.
2017-12-01 22:17:00.599 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:67-137-41ā€™ has been added.
2017-12-01 22:17:00.624 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:131-132-127ā€™ has been added.
2017-12-01 22:17:00.648 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:4-81-195ā€™ has been added.
2017-12-01 22:17:00.672 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:255-255-255ā€™ has been added.
2017-12-01 22:17:00.694 [InboxAddedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:0-0-0ā€™ has been added.
2017-12-01 22:17:39.685 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:1-160-236ā€™ has been removed.
2017-12-01 22:17:39.686 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:1-160-236ā€™ has been added.
2017-12-01 22:17:39.688 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:1-160-236ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:17:39.689 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:1-160-236ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:17:43.946 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-205-30ā€™ has been removed.
2017-12-01 22:17:43.947 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:3-205-30ā€™ has been added.
2017-12-01 22:17:43.950 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-205-30ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:17:43.951 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-205-30ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:17:46.423 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:1-160-172ā€™ has been removed.
2017-12-01 22:17:46.426 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:1-160-172ā€™ has been added.
2017-12-01 22:17:46.428 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:1-160-172ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:17:46.429 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:1-160-172ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:17:54.638 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:131-132-127ā€™ has been removed.
2017-12-01 22:17:54.639 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:131-132-127ā€™ has been added.
2017-12-01 22:17:54.640 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:131-132-127ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:17:54.640 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:131-132-127ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:17:58.288 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:2-241-96ā€™ has been removed.
2017-12-01 22:17:58.289 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:2-241-96ā€™ has been added.
2017-12-01 22:17:58.292 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:2-241-96ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:17:58.294 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:2-241-96ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:02.627 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-240-203ā€™ has been removed.
2017-12-01 22:18:02.629 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:3-240-203ā€™ has been added.
2017-12-01 22:18:02.632 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-240-203ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:02.632 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-240-203ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:02.963 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-205-30ā€™ changed from UNKNOWN to ONLINE
2017-12-01 22:18:08.668 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:255-255-255ā€™ has been removed.
2017-12-01 22:18:08.669 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:255-255-255ā€™ has been added.
2017-12-01 22:18:08.671 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:255-255-255ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:08.671 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:255-255-255ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:11.425 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:4-81-195ā€™ has been removed.
2017-12-01 22:18:11.426 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:4-81-195ā€™ has been added.
2017-12-01 22:18:11.427 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:4-81-195ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:11.427 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:4-81-195ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:13.769 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-137-41ā€™ has been removed.
2017-12-01 22:18:13.769 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:3-137-41ā€™ has been added.
2017-12-01 22:18:13.772 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-137-41ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:13.774 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-137-41ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:16.910 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-204-80ā€™ has been removed.
2017-12-01 22:18:16.910 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:3-204-80ā€™ has been added.
2017-12-01 22:18:16.911 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-204-80ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:16.912 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-204-80ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:18.946 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:48-64-124ā€™ has been removed.
2017-12-01 22:18:18.947 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:48-64-124ā€™ has been added.
2017-12-01 22:18:18.950 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:48-64-124ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:18.950 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:48-64-124ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:22.649 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-181-249ā€™ has been removed.
2017-12-01 22:18:22.650 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:3-181-249ā€™ has been added.
2017-12-01 22:18:22.651 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-181-249ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:22.652 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-181-249ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:24.924 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-205-137ā€™ has been removed.
2017-12-01 22:18:24.925 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:3-205-137ā€™ has been added.
2017-12-01 22:18:24.926 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-205-137ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:24.927 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-205-137ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:27.520 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:5-132-63ā€™ has been removed.
2017-12-01 22:18:27.521 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:5-132-63ā€™ has been added.
2017-12-01 22:18:27.522 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:5-132-63ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:27.524 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:5-132-63ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:30.043 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:1-163-61ā€™ has been removed.
2017-12-01 22:18:30.043 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:1-163-61ā€™ has been added.
2017-12-01 22:18:30.045 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:1-163-61ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:30.045 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:1-163-61ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:32.645 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-132-127ā€™ has been removed.
2017-12-01 22:18:32.647 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:3-132-127ā€™ has been added.
2017-12-01 22:18:32.647 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-132-127ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:32.647 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-132-127ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:34.544 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-137-41ā€™ changed from UNKNOWN to ONLINE
2017-12-01 22:18:35.041 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-241-53ā€™ has been removed.
2017-12-01 22:18:35.042 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:3-241-53ā€™ has been added.
2017-12-01 22:18:35.046 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-241-53ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:35.047 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-241-53ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:35.856 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-132-127ā€™ changed from UNKNOWN to ONLINE
2017-12-01 22:18:36.960 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-241-53ā€™ changed from UNKNOWN to ONLINE
2017-12-01 22:18:37.783 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:187-199-255ā€™ has been removed.
2017-12-01 22:18:37.784 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:187-199-255ā€™ has been added.
2017-12-01 22:18:37.785 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:187-199-255ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:37.786 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:187-199-255ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:39.454 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:1-163-61ā€™ changed from UNKNOWN to ONLINE
2017-12-01 22:18:40.004 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-183-74ā€™ has been removed.
2017-12-01 22:18:40.005 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:3-183-74ā€™ has been added.
2017-12-01 22:18:40.007 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-183-74ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:40.008 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-183-74ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:40.558 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-204-80ā€™ changed from UNKNOWN to ONLINE
2017-12-01 22:18:42.759 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:3-241-49ā€™ has been removed.
2017-12-01 22:18:42.760 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:3-241-49ā€™ has been added.
2017-12-01 22:18:42.765 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-241-49ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:42.765 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-241-49ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:44.917 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:67-137-41ā€™ has been removed.
2017-12-01 22:18:44.918 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:67-137-41ā€™ has been added.
2017-12-01 22:18:44.919 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:67-137-41ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:44.920 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:67-137-41ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:45.260 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:3-181-249ā€™ changed from UNKNOWN to ONLINE
2017-12-01 22:18:47.289 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:0-0-0ā€™ has been removed.
2017-12-01 22:18:47.290 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:0-0-0ā€™ has been added.
2017-12-01 22:18:47.296 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:0-0-0ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:47.300 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:0-0-0ā€™ changed from INITIALIZING to UNKNOWN
2017-12-01 22:18:49.962 [InboxRemovedEvent ] - Discovery Result with UID ā€˜jeelink:pca301:195-243-181ā€™ has been removed.
2017-12-01 22:18:49.962 [ThingAddedEvent ] - Thing ā€˜jeelink:pca301:195-243-181ā€™ has been added.
2017-12-01 22:18:49.965 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:195-243-181ā€™ changed from UNINITIALIZED to INITIALIZING
2017-12-01 22:18:49.967 [hingStatusInfoChangedEvent] - ā€˜jeelink:pca301:195-243-181ā€™ changed from INITIALIZING to UNKNOWN

Yes, newest version.
Looks like the binding doesnt see that the connection is lost.
Here again a log before the reboot.

10:17:52.296 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 22 188 129 1 90 21 248 0 226 188 63 0 1 231 199 0 59 8 190 2 0
10:17:52.306 [DEBUG] [link.internal.ec3k.Ec3kSensorHandler] - updating states for thing BC81: currWatt=5.9 (5.9), maxWatt=223.8, consumption=124, secondsOn=14859327, secondsTotal=22681080
10:17:52.549 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 9 29 1 4 184 70
10:17:52.556 [TRACE] [.LaCrosseTemperatureReadingConverter] - Creating reading from: OK 9 29 1 4 184 70
10:17:52.576 [DEBUG] [sse.LaCrosseTemperatureSensorHandler] - updating states for thing Thermometer Schlafzimmer (29): temp=20.8 (20.8), humidity=70, batteryNew=false, batteryLow=false
10:17:52.623 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 22 89 30 1 149 200 238 1 149 199 143 0 11 56 74 11 111 43 32 1 0
10:17:52.651 [DEBUG] [link.internal.ec3k.Ec3kSensorHandler] - updating states for thing 591E: currWatt=292.7 (292.7), maxWatt=1104.0, consumption=735, secondsOn=26593167, secondsTotal=26593518
10:17:52.955 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 22 88 40 1 123 99 254 1 123 66 213 0 8 91 195 0 51 11 45 1 0
10:17:52.959 [DEBUG] [link.internal.ec3k.Ec3kSensorHandler] - updating states for thing 5828: currWatt=5.1 (5.1), maxWatt=286.1, consumption=547, secondsOn=24855253, secondsTotal=24863742
10:17:53.857 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port 192.168.179.4:82: OK 9 46 1 4 190 59
10:17:53.859 [TRACE] [.LaCrosseTemperatureReadingConverter] - Creating reading from: OK 9 46 1 4 190 59
10:17:53.864 [DEBUG] [sse.LaCrosseTemperatureSensorHandler] - updating states for thing Thermometer Bad (46): temp=21.4 (21.4), humidity=59, batteryNew=false, batteryLow=false

Maybe the LGW reboots too fast?
I try to set a bootup delay.

Edit:
The Startup-delay (s) parameter doesnt seem to interrupt the network, ping is only lost 1 sec.
Maybe the connection is coming up again too fast so the binding doesnt realize it.

@WiredLife:

It should not make a difference how fast the LGW reboots. The connection will be dropped regardless. What does your log above show? From what I can see, there is a steady connection.

Once again, is 192.168.179.4:82 your LGW? If yes, then this looks like you either did not reboot, or pasted the wrong part of the log.

@arosswog:

I have not yet used paper ui to create items. I only start the discovery for creating the things and then add my items definition in an items file. These are the items definitions I have for the PCA sensor:

Switch SocketSwitch {channel=ā€œjeelink:pca301:1-160-236:switchingStateā€}
Number SocketWattage {channel=ā€œjeelink:pca301:1-160-236:currentWattā€}
Number SocketConsumption {channel=ā€œjeelink:pca301:1-160-236:consumptionTotalā€}

If you use paper ui you have to provide more details on what exactly you did and what went wrong.

192.168.179.4 is the LGW with the ports 81,82,83 open.
I tried all three.
Iā€™m pretty sure that the LGW reboots because the ping is lost 1 time and the UpTimeSeconds is set to 0.

If the LGW reboots, how does it still send values? Your log shows 2 values per second.

Please tail the log with -f, cut the power to the LGW, plug it back in and send the part of the log that tail showed in that time.

It doesnt send values anymore after i push reboot, thats the problem.
I cut the power 30 secs and report back.

So the log above ends at the point you press reboot? What does pushing reboot mean? Does the LGW have a dedicated button for rebooting or is this a function of the web interface?

Yes, it stops after i press reboot on the web interface of the LGW.
Did a power cutoff but still nothing in the logsā€¦
Maybe because i use openhab 2.1 or so?

Edit:
Did a bundle:stop and bundle:start and getting this

10:48:43.072 [DEBUG] [org.openhab.binding.jeelink         ] - BundleEvent STARTING - org.openhab.binding.jeelink
10:48:43.128 [DEBUG] [org.openhab.binding.jeelink         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=binding.jeelink, component.id=202, service.id=337, service.bundleid=245, service.scope=bundle} - org.openhab.binding.jeelink
10:48:43.242 [DEBUG] [org.openhab.binding.jeelink         ] - BundleEvent STARTED - org.openhab.binding.jeelink
10:48:43.412 [DEBUG] [elink.internal.JeeLinkHandlerFactory] - creating JeeLinkHandler for thing lgw...
10:48:43.415 [DEBUG] [elink.internal.JeeLinkHandlerFactory] - registering sensor discovery service...
10:48:43.432 [DEBUG] [org.openhab.binding.jeelink         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=338, service.bundleid=245, service.scope=singleton} - org.openhab.binding.jeelink
10:48:43.476 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Opening TCP connection to host 192.168.179.4 port 82...
10:48:43.480 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:jeelinkTcp:lgw' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
10:48:43.483 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Creating TCP socket to 192.168.179.4:82...
10:48:43.489 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - TCP socket created.
10:48:43.498 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:jeelinkTcp:lgw' changed from INITIALIZING to ONLINE
10:48:43.557 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:46' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
10:48:43.565 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:46' changed from INITIALIZING to UNKNOWN
10:48:43.593 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:13' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
10:48:43.601 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:13' changed from INITIALIZING to UNKNOWN
10:48:43.648 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:16' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
10:48:43.671 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:16' changed from INITIALIZING to UNKNOWN
10:48:43.689 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:29' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
10:48:43.713 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:lacrosse:29' changed from INITIALIZING to UNKNOWN
10:48:43.753 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:5828' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
10:48:43.760 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:5828' changed from INITIALIZING to UNKNOWN
10:48:43.798 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:591E' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
10:48:43.808 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:591E' changed from INITIALIZING to UNKNOWN
10:48:43.835 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:BC81' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
10:48:43.841 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:BC81' changed from INITIALIZING to UNKNOWN
10:48:43.861 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:B0A7' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
10:48:43.873 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'jeelink:ec3k:B0A7' changed from INITIALIZING to UNKNOWN
10:48:44.041 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Closing TCP connection to port 192.168.179.4:82...
10:48:44.044 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Shutting down reader for TCP port 192.168.179.4:82...
10:48:44.053 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Opening TCP connection to host 192.168.179.4 port 82...
10:48:44.055 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - Creating TCP socket to 192.168.179.4:82...
10:48:44.061 [DEBUG] [rnal.connection.JeeLinkTcpConnection] - TCP socket created.
10:48:44.073 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:jeelinkTcp:lgw' has been updated.
10:48:44.091 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:lacrosse:46' has been updated.
10:48:44.118 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:lacrosse:13' has been updated.
10:48:44.135 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:lacrosse:16' has been updated.
10:48:44.153 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:lacrosse:29' has been updated.
10:48:44.170 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:ec3k:5828' has been updated.
10:48:44.189 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:ec3k:591E' has been updated.
10:48:44.208 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:ec3k:BC81' has been updated.
10:48:44.226 [INFO ] [smarthome.event.ThingUpdatedEvent   ] - Thing 'jeelink:ec3k:B0A7' has been updated.

after that, nothing more
When i restart the whole openhab, than it works again.

The reader is stopped after the bundle has been started, without any indication why. Is it possible that you have two different versions running at the same time? Did you also get messages when the bundle was stopped, or is what you pasted everything you got?

Does the LGW status in the paper ui show an additional error message?

Nope only
245 | Active | 80 | 2.2.0.201712011340 | JeeLink Binding
This is the complete log from bundle:stop and bundle:start, nothing more.
Paper UI says online to everything.

I have just pushed an update with more logging. Can you please re-test?

Edit; can you please also test if the 2.1 version of the binding behaves differently?