openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

[IPX800] OH2 does not reconnect on IPX800 reboot #5622

Closed bchabrier closed 6 years ago

bchabrier commented 6 years ago

When I reboot my IPX800, OpenHab looses the connection and does not recover.

Expected Behavior

I would expect OpenHab to retry connecting.

Current Behavior

IPX800 relay changes are no more recognized by OpenHab2

Possible Solution

Looking at the code in Ipx800DeviceConnection.java, it seems thatin.readLine() returns a null pointer, raising a NullPointerException which kills the KeepAlive.

Steps to Reproduce (for bugs)

  1. Change IPX800 relays, they are recognized by OH2
  2. Unplug your IPX800, wait 10 seconds
  3. Replug the IPX800, wait for it to reboot
  4. Change IPX800 relays, they are no more detected by OH2

Context

Your Environment

9037568 commented 6 years ago

Please attach configurations and a debug log.

bchabrier commented 6 years ago

In fact it works correctly now, when I try to get a debug log ?!?!? I don't know why it didn't work...

So I close this issue and will reopen if needed.

Thanks!