openhab / openhab1-addons

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

RFXCOM binding 1.9 not working in OH2 #3952

Closed lolodomo closed 8 years ago

lolodomo commented 8 years ago

In OH2, I first installed the openhab-transport-serial feature. Of course, the feature openhab-runtime-compat1x is installed too. Using RFXCOM binding 1.9, here are the debug logs I get at startup:

22:18:02.831 [DEBUG] [org.openhab.binding.rfxcom          ] - BundleEvent STARTING - org.openhab.binding.rfxcom
22:18:02.835 [DEBUG] [ding.rfxcom.internal.RFXComActivator] - RFXCOM binding has been started.
22:18:02.862 [DEBUG] [org.openhab.binding.rfxcom          ] - ServiceEvent REGISTERED - {org.osgi.service.cm.ManagedService}={service.pid=org.openhab.rfxcom, component.name=org.openhab.binding.rfxcom.connection, component.id=167, service.id=281, service.bundleid=162, service.scope=bundle} - org.openhab.binding.rfxcom
22:18:02.896 [DEBUG] [ing.rfxcom.internal.RFXComConnection] - Activate
22:18:02.899 [DEBUG] [ing.rfxcom.internal.RFXComConnection] - Deactivate
22:18:02.900 [DEBUG] [rnal.connector.RFXComSerialConnector] - Disconnecting
22:18:02.901 [DEBUG] [rnal.connector.RFXComSerialConnector] - Closed
22:18:02.903 [DEBUG] [ing.rfxcom.internal.RFXComConnection] - Activate
22:18:02.905 [DEBUG] [ing.rfxcom.internal.RFXComConnection] - Deactivate
22:18:02.906 [DEBUG] [rnal.connector.RFXComSerialConnector] - Disconnecting
22:18:02.908 [DEBUG] [rnal.connector.RFXComSerialConnector] - Closed
22:18:02.916 [DEBUG] [org.openhab.binding.rfxcom          ] - ServiceEvent REGISTERED - {org.openhab.model.item.binding.BindingConfigReader, org.openhab.binding.rfxcom.RFXComBindingProvider, org.openhab.core.autoupdate.AutoUpdateBindingProvider}={component.name=org.openhab.binding.rfxcom.genericbindingprovider, component.id=169, service.id=282, service.bundleid=162, service.scope=bundle} - org.openhab.binding.rfxcom
22:18:02.921 [DEBUG] [org.openhab.binding.rfxcom          ] - ServiceEvent REGISTERED - {org.osgi.service.event.EventHandler}={event.topics=openhab/command/*, component.name=org.openhab.binding.rfxcom.binding, component.id=168, service.id=283, service.bundleid=162, service.scope=bundle} - org.openhab.binding.rfxcom
22:18:02.957 [DEBUG] [inding.rfxcom.internal.RFXComBinding] - Activate
22:18:02.968 [DEBUG] [org.openhab.binding.rfxcom          ] - BundleEvent STARTED - org.openhab.binding.rfxcom
22:18:03.203 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
22:18:03.242 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
22:18:03.490 [INFO ] [.openhab.core.internal.CoreActivator] - openHAB runtime has been started (v2.0.0, build 201601310204).
22:18:05.058 [DEBUG] [ing.rfxcom.internal.RFXComConnection] - Activate
22:18:05.060 [DEBUG] [ing.rfxcom.internal.RFXComConnection] - Configuration updated, config true
22:18:05.062 [INFO ] [ing.rfxcom.internal.RFXComConnection] - Connecting to RFXCOM [serialPort='/dev/ttyUSB0' ].
22:18:05.205 [DEBUG] [ing.rfxcom.internal.RFXComConnection] - Reset controller
22:18:05.206 [DEBUG] [rnal.connector.RFXComSerialConnector] - Data listener started
22:18:06.245 [DEBUG] [ing.rfxcom.internal.RFXComConnection] - Deactivate
22:18:06.256 [DEBUG] [rnal.connector.RFXComSerialConnector] - Disconnecting
22:18:06.262 [DEBUG] [rnal.connector.RFXComSerialConnector] - Interrupt serial listener
22:18:06.268 [DEBUG] [rnal.connector.RFXComSerialConnector] - Close serial out stream
22:18:06.272 [DEBUG] [rnal.connector.RFXComSerialConnector] - Close serial in stream
22:18:06.273 [DEBUG] [rnal.connector.RFXComSerialConnector] - Close serial port
22:18:06.280 [DEBUG] [rnal.connector.RFXComSerialConnector] - Closed
22:18:06.286 [DEBUG] [ing.rfxcom.internal.RFXComConnection] - Data received:
Raw data = 0D0100010253F100002000010200
 - Packet type = INTERFACE_MESSAGE
 - Seq number = 1
 - Sub type = INTERFACE_RESPONSE
 - Command = GET_STATUS
 - Transceiver type = _443_92MHZ_TRANSCEIVER
 - Firmware version = -15
 - Hardware version = 0.1
 - Undecoded packets = false
 - RFU6 packets = false
 - RFU5 packets = false
 - RFU4 packets = false
 - RFU3 packets = false
 - FineOffset / Viking (433.92) packets = false
 - Rubicson (433.92) packets = false
 - AE (433.92) packets = false
 - BlindsT1/T2/T3 (433.92) packets = false
 - BlindsT0 (433.92) packets = false
 - ProGuard (868.35 FSK) packets = false
 - FS20 (868.35) packets = false
 - La Crosse (433.92/868.30) packets = false
 - Hideki/UPM (433.92) packets = false
 - AD (433.92) packets = false
 - Mertik (433.92) packets = false
 - Visonic (315/868.95) packets = false
 - ATI (433.92) packets = false
 - Oregon Scientific (433.92) packets = true
 - Meiantech (433.92) packets = false
 - HomeEasy EU (433.92) packets = false
 - AC (433.92) packets = false
 - ARC (433.92) packets = false
 - X10 (310/433.92) packets = false
Exception in thread "Thread-38" java.lang.NullPointerException
        at org.openhab.binding.rfxcom.internal.connector.RFXComSerialConnector$SerialReader.run(RFXComSerialConnector.java:229)
lolodomo commented 8 years ago

Fixed by PR #3981