openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.86k stars 3.58k forks source link

RFXCOM binding 2.0 not working in beta 1 #625

Closed lolodomo closed 8 years ago

lolodomo commented 8 years ago

I was able to install the RFXCOM binding with the Paper UI.

The automatic discovery of my RFXtrx433E did not work. So I added a thing (bridge) manually through the Paper UI using /dev/ttyUSB0 as serial port. But the thing remained in a status OFFLINE.

If I restart openHAB2, I see this error in the logs:

Exception in thread "Thread-38" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
        at org.openhab.binding.rfxcom.internal.connector.RFXComSerialConnector$SerialReader.run(RFXComSerialConnector.java:178)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter cannot be found by org.openhab.binding.rfxcom_2.0.0.b1
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 1 more
lolodomo commented 8 years ago

In case it could help, here is the exception I got after the thing is created:

12:39:04.233 [INFO ] [rthome.event.ItemThingLinkAddedEvent] - Link 'rfxcom_RFXtrx433_d05457dd-rfxcom:RFXtrx433:d05457dd' has been added.
12:39:04.429 [ERROR] [rnal.discovery.RFXComBridgeDiscovery] - Error occured during discovery
java.io.IOException: device not found (2)
        at jd2xx.JD2XX.listDevices(Native Method)
        at jd2xx.JD2XX.listDevicesByDescription(JD2XX.java:826)
        at org.openhab.binding.rfxcom.internal.discovery.RFXComBridgeDiscovery.discoverRfxcom(RFXComBridgeDiscovery.java:95)
        at org.openhab.binding.rfxcom.internal.discovery.RFXComBridgeDiscovery.startScan(RFXComBridgeDiscovery.java:68)
        at org.eclipse.smarthome.config.discovery.AbstractDiscoveryService.startScan(AbstractDiscoveryService.java:199)
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:336)
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScans(DiscoveryServiceRegistryImpl.java:313)
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:172)
        at org.eclipse.smarthome.io.rest.core.discovery.DiscoveryResource.scan(DiscoveryResource.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0]
        at java.lang.reflect.Method.invoke(Method.java:483)[:1.8.0]
        at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:267)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:471)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:425)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:383)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:336)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:223)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[12:com.eclipsesource.jaxrs.publisher:5.3.0.201512270850]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)[71:org.eclipse.jetty.servlet:9.2.10.v20150310]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[71:org.eclipse.jetty.servlet:9.2.10.v20150310]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[135:org.ops4j.pax.web.pax-web-jetty:4.2.3]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[69:org.eclipse.jetty.security:9.2.10.v20150310]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[135:org.ops4j.pax.web.pax-web-jetty:4.2.3]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[71:org.eclipse.jetty.servlet:9.2.10.v20150310]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[135:org.ops4j.pax.web.pax-web-jetty:4.2.3]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.Server.handle(Server.java:497)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)[62:org.eclipse.jetty.io:9.2.10.v20150310]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[73:org.eclipse.jetty.util:9.2.10.v20150310]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[73:org.eclipse.jetty.util:9.2.10.v20150310]
        at java.lang.Thread.run(Thread.java:744)[:1.8.0]

And then I see that in the logs

12:40:04.066 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
12:40:04.077 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)

The device exists:

pi@raspberrypi2:/dev $ ls -l ttyUSB0
crw-rw---- 1 root dialout 188, 0 janv. 16 11:33 ttyUSB0
pi@raspberrypi2:/dev $

I previously run this folowing command: sudo usermod -a -G dialout pi I am running openHAB2 beta 1 using the pi account.

kaikreuzer commented 8 years ago

Please only report bugs that still exist on the latest SNAPSHOT. This here was already fixed 4 days ago: https://github.com/openhab/openhab2-addons/pull/612/files

lolodomo commented 8 years ago

Sorry but even with the last snapshot I still have the same issue, serial connection fails:

13:37:44.411 [INFO ] [smarthome.event.ThingAddedEvent     ] - Thing 'rfxcom:RFXtrx433:043d6b50' has been added.
13:37:44.454 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'rfxcom:RFXtrx433:043d6b50' changed from UNINITIALIZED to INITIALIZING
13:37:44.481 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'rfxcom:RFXtrx433:043d6b50' changed from INITIALIZING to OFFLINE
13:37:44.525 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
13:37:44.536 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)
13:37:44.599 [INFO ] [smarthome.event.ItemAddedEvent      ] - Item 'rfxcom_RFXtrx433_043d6b50' has been added.
13:37:44.670 [INFO ] [rthome.event.ItemThingLinkAddedEvent] - Link 'rfxcom_RFXtrx433_043d6b50-rfxcom:RFXtrx433:043d6b50' has been added.
13:37:44.879 [ERROR] [rnal.discovery.RFXComBridgeDiscovery] - Error occured during discovery
java.io.IOException: device not found (2)
        at jd2xx.JD2XX.listDevices(Native Method)
        at jd2xx.JD2XX.listDevicesByDescription(JD2XX.java:826)
        at org.openhab.binding.rfxcom.internal.discovery.RFXComBridgeDiscovery.discoverRfxcom(RFXComBridgeDiscovery.java:95)
        at org.openhab.binding.rfxcom.internal.discovery.RFXComBridgeDiscovery.startScan(RFXComBridgeDiscovery.java:68)
        at org.eclipse.smarthome.config.discovery.AbstractDiscoveryService.startScan(AbstractDiscoveryService.java:199)
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:336)
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScans(DiscoveryServiceRegistryImpl.java:313)
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:172)
        at org.eclipse.smarthome.io.rest.core.discovery.DiscoveryResource.scan(DiscoveryResource.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0]
        at java.lang.reflect.Method.invoke(Method.java:483)[:1.8.0]
        at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:267)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:471)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:425)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:383)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:336)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:223)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[12:com.eclipsesource.jaxrs.publisher:5.3.0.201512270850]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)[71:org.eclipse.jetty.servlet:9.2.10.v20150310]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[71:org.eclipse.jetty.servlet:9.2.10.v20150310]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[135:org.ops4j.pax.web.pax-web-jetty:4.2.3]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[69:org.eclipse.jetty.security:9.2.10.v20150310]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[135:org.ops4j.pax.web.pax-web-jetty:4.2.3]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[71:org.eclipse.jetty.servlet:9.2.10.v20150310]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[135:org.ops4j.pax.web.pax-web-jetty:4.2.3]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.Server.handle(Server.java:497)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)[62:org.eclipse.jetty.io:9.2.10.v20150310]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[73:org.eclipse.jetty.util:9.2.10.v20150310]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[73:org.eclipse.jetty.util:9.2.10.v20150310]
        at java.lang.Thread.run(Thread.java:744)[:1.8.0]
13:38:42.144 [INFO ] [marthome.event.ItemStateChangedEvent] - Date changed from 2016-01-16T13:37:42 to 2016-01-16T13:38:42
13:38:44.498 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
13:38:44.508 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)
13:39:42.144 [INFO ] [marthome.event.ItemStateChangedEvent] - Date changed from 2016-01-16T13:38:42 to 2016-01-16T13:39:42
13:39:44.498 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
13:39:44.511 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)
13:40:42.139 [INFO ] [marthome.event.ItemStateChangedEvent] - Date changed from 2016-01-16T13:39:42 to 2016-01-16T13:40:42
13:40:44.498 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
13:40:44.505 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)
13:41:42.147 [INFO ] [marthome.event.ItemStateChangedEvent] - Date changed from 2016-01-16T13:40:42 to 2016-01-16T13:41:42
13:41:44.498 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
13:41:44.506 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)
13:42:42.143 [INFO ] [marthome.event.ItemStateChangedEvent] - Date changed from 2016-01-16T13:41:42 to 2016-01-16T13:42:42
13:42:44.498 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
13:42:44.508 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)
13:43:24.502 [ERROR] [apache.karaf.shell.support.ShellUtil] - Exception caught while executing command
java.lang.IllegalArgumentException: No matching bundles
        at org.apache.karaf.bundle.command.BundlesCommand.doExecute(BundlesCommand.java:59)[32:org.apache.karaf.bundle.core:4.0.3]
        at org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:54)[32:org.apache.karaf.bundle.core:4.0.3]
        at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[48:org.apache.karaf.shell.core:4.0.3]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[48:org.apache.karaf.shell.core:4.0.3]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[48:org.apache.karaf.shell.core:4.0.3]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[48:org.apache.karaf.shell.core:4.0.3]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[48:org.apache.karaf.shell.core:4.0.3]
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[48:org.apache.karaf.shell.core:4.0.3]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[48:org.apache.karaf.shell.core:4.0.3]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[48:org.apache.karaf.shell.core:4.0.3]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[48:org.apache.karaf.shell.core:4.0.3]
        at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:270)[48:org.apache.karaf.shell.core:4.0.3]
        at java.lang.Thread.run(Thread.java:744)[:1.8.0]
13:43:42.145 [INFO ] [marthome.event.ItemStateChangedEvent] - Date changed from 2016-01-16T13:42:42 to 2016-01-16T13:43:42
13:43:44.498 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
13:43:44.504 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)
13:44:42.145 [INFO ] [marthome.event.ItemStateChangedEvent] - Date changed from 2016-01-16T13:43:42 to 2016-01-16T13:44:42
13:44:44.498 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
13:44:44.506 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)
kaikreuzer commented 8 years ago

Ok, sorry, I only looked at your first problem (the NoClassDefFoundError), which is fixed.

Btw, please always use code formatting when posting exceptions, it makes it so much better to read!

lolodomo commented 8 years ago

For information, I am running OH2 on a raspi2 with Raspbian Jessie.

Maybe I should retry but running OH2 as root ?

maggu2810 commented 8 years ago

Perhaps you should give you all rw for ttyUSB0, but you should never run such software as root.

lolodomo commented 8 years ago

I tried to set rw rights to all to /dev/ttyUSB0 but it changed nothing. I tried to run openHAB2 as root but it changed nothing. Reading this topic https://community.openhab.org/t/rfxcom-2-0-binding/4427/15 and this documentation http://www.ftdichip.com/Support/Documents/AppNotes/AN_220_FTDI_Drivers_Installation_Guide_for_Linux%20.pdf, I tried to run these commands before starting openHAB2:

sudo rmmod ftdi_sio
sudo rmmod usbseria

but still no chance.

lolodomo commented 8 years ago

As an additional information, I installed openHAB 1.8 on the same RPI2, started it with the same user (pi) and openHAB was able to communicate normally with my RFXtrx433E on USB port /dev/ttyUSB0. So the problem is not my machine or my serial port. There is really a major bug in the new RFXCOM binding, at least when run on a raspbian OS.

kaikreuzer commented 8 years ago

May I ask you to try the latest build https://openhab.ci.cloudbees.com/job/openHAB-Distribution/88/? This should improve the compatibility to alpha2 and hopefully solve some issues.

lolodomo commented 8 years ago

New test with snapshot #89 (offline distro). Unchanged. There is apparently a problem of connection to the RFXtrx device (through serial port).

larsste commented 8 years ago

Just to let you know. I have tried the latest build b92(?) from cloudbees and it's working for me on Ubuntu 14.04. I do have to add the transceiver manually. I have a "non-E" version of RFXTrx433 and add the RFXCOM USB Transceiver and point it to /dev/ttyUSB0. It shows up as online and my sensors and switches get auto discovered.

The few builds I have tested so far have worked for me when I add the bridge manually. Yes there is the issue #581. But the binding as such seems to work when I poke around in OH2.

lolodomo commented 8 years ago

Unfortunately, it still does not work for me with snapshot #92. There is a problem with the JD2XX library not being able de list devices. That could mean the problem is not for all Linux platforms but maybe only for RPI running raspbian. Is JD2XX used in the 1.x version of the binding ?

lolodomo commented 8 years ago

Just to know: where was retrieved the jd2xx.jar file ? From here https://github.com/0x6a77/JD2XX ?

paulianttila commented 8 years ago

JD2XX library is used only for discovery and for discovered devices. If you add RFXCOM USB Transceiver" manually, it does not use JD2XX but nrjavaserial, which is provided by the OH transport serial bundle. JD2XX approach have know issue, because Linux provide native driver for D2XX chip (see https://community.openhab.org/t/rfxcom-2-0-binding/4427)

lolodomo commented 8 years ago

I have the JD2XX exception even afte adding manually the bridge. If not important, ok, but maybe a catch exception + a clear warning could be a good idea. So my problem is not discovery but connection to the serial port. Just remember that OH1 works well with RFXCOM on the same machine and serial port. I can provide debug logs this evening if it can help you to understand the problem.

lolodomo commented 8 years ago

Note that i add manually the bridge using Oaper UI.

lolodomo commented 8 years ago

Here are my DEBUG logs when I add manually a RFXtrx433E thing with Paper UI:


21:11:09.572 [INFO ] [smarthome.event.ThingAddedEvent     ] - Thing 'rfxcom:RFXtrx433:0d6ec55b' has been added.
21:11:09.612 [DEBUG] [org.openhab.binding.rfxcom          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=283, service.bundleid=162, service.scope=singleton} - org.openhab.binding.rfxcom
21:11:09.613 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'rfxcom:RFXtrx433:0d6ec55b' changed from UNINITIALIZED to INITIALIZING
21:11:09.618 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Initializing RFXCOM bridge handler
21:11:09.626 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'rfxcom:RFXtrx433:0d6ec55b' changed from INITIALIZING to OFFLINE
21:11:09.633 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Checking RFXCOM transceiver connection, thing status = OFFLINE
21:11:09.635 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Connecting to RFXCOM transceiver
21:11:09.641 [DEBUG] [org.openhab.binding.rfxcom          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandler}={thing.type=rfxcom:RFXtrx433, thing.id=rfxcom:RFXtrx433:0d6ec55b, service.id=284, service.bundleid=162, service.scope=singleton} - org.openhab.binding.rfxcom
21:11:09.658 [DEBUG] [ernal.connector.RFXComJD2XXConnector] - Disconnecting
21:11:09.659 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
21:11:09.671 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)
21:11:10.088 [INFO ] [smarthome.event.ItemAddedEvent      ] - Item 'rfxcom_RFXtrx433_0d6ec55b' has been added.
21:11:10.162 [INFO ] [rthome.event.ItemThingLinkAddedEvent] - Link 'rfxcom_RFXtrx433_0d6ec55b-rfxcom:RFXtrx433:0d6ec55b' has been added.
21:11:10.334 [DEBUG] [rnal.discovery.RFXComBridgeDiscovery] - Start discovery scan for RFXCOM transceivers
21:11:10.337 [DEBUG] [rnal.discovery.RFXComBridgeDiscovery] - Discovering RFXCOM transceiver devices by JD2XX version 66055
21:11:10.348 [ERROR] [rnal.discovery.RFXComBridgeDiscovery] - Error occured during discovery
java.io.IOException: device not found (2)
        at jd2xx.JD2XX.listDevices(Native Method)
        at jd2xx.JD2XX.listDevicesByDescription(JD2XX.java:826)
        at org.openhab.binding.rfxcom.internal.discovery.RFXComBridgeDiscovery.discoverRfxcom(RFXComBridgeDiscovery.java:95)
        at org.openhab.binding.rfxcom.internal.discovery.RFXComBridgeDiscovery.startScan(RFXComBridgeDiscovery.java:68)
        at org.eclipse.smarthome.config.discovery.AbstractDiscoveryService.startScan(AbstractDiscoveryService.java:199)
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:336)
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScans(DiscoveryServiceRegistryImpl.java:313)
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:172)
        at org.eclipse.smarthome.io.rest.core.discovery.DiscoveryResource.scan(DiscoveryResource.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0]
        at java.lang.reflect.Method.invoke(Method.java:483)[:1.8.0]
        at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:267)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:471)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:425)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:383)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:336)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:223)[10:com.eclipsesource.jaxrs.jersey-min:2.22.1]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[12:com.eclipsesource.jaxrs.publisher:5.3.0.201512270850]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)[71:org.eclipse.jetty.servlet:9.2.10.v20150310]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[71:org.eclipse.jetty.servlet:9.2.10.v20150310]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[135:org.ops4j.pax.web.pax-web-jetty:4.2.3]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[69:org.eclipse.jetty.security:9.2.10.v20150310]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[135:org.ops4j.pax.web.pax-web-jetty:4.2.3]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[71:org.eclipse.jetty.servlet:9.2.10.v20150310]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[135:org.ops4j.pax.web.pax-web-jetty:4.2.3]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.Server.handle(Server.java:497)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[70:org.eclipse.jetty.server:9.2.10.v20150310]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)[62:org.eclipse.jetty.io:9.2.10.v20150310]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[73:org.eclipse.jetty.util:9.2.10.v20150310]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[73:org.eclipse.jetty.util:9.2.10.v20150310]
        at java.lang.Thread.run(Thread.java:744)[:1.8.0]

And then every minute:

21:12:09.632 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Checking RFXCOM transceiver connection, thing status = OFFLINE
21:12:09.634 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Connecting to RFXCOM transceiver
21:12:09.635 [DEBUG] [ernal.connector.RFXComJD2XXConnector] - Disconnecting
21:12:09.637 [DEBUG] [ernal.connector.RFXComJD2XXConnector] - Close serial port
21:12:09.639 [DEBUG] [ernal.connector.RFXComJD2XXConnector] - Closed
21:12:09.641 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device '/dev/ttyUSB0'.
21:12:09.651 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)

Suddenly I have a big doubt. The parameter is named "Serial number". I filled the value "/dev/ttyUSB0". Is it correct ?

paulianttila commented 8 years ago

You are trying to add "discoverable" RFXCOM transceiver manually (JD2XX connected device). JD2XX devices are identified by the serial number not by serial port.

You should add "RFXCOM USB Transceiver" manually, which is direct serial port bridge for manual configuration purposes.

lolodomo commented 8 years ago

Thank you. I probably missed the right thing to be used in my case. I will try later. It is something that should be clearly documented if not yet done.

lolodomo commented 8 years ago

Ok, choosing the right bridge thing solved my issue.

yktoo commented 8 years ago

@lolodomo Which port did you specify here?

I'm struggling with the same issue, I have added an "RFXCOM USB Transceiver" thing manually, and specified /dev/ttyUSB0 as its serial port, yet I'm still getting these errors:

[ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: invalid port

openhab has been added to the group dialout.

lolodomo commented 8 years ago

Yes, you have to choose "RFXCOM USB Transceiver" and set the port to /dev/ttyUSB0 (the right serial port if you have several serial connections).

yktoo commented 8 years ago

Nevermind, nailed it.

The problem was that I followed the suggestion to include ports explicitly with

EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0,/dev/ttyUSB0"

Which was NOT a right thing to do. I've removed everything between the quotes and voila, it's up and running!

ghost commented 7 years ago

SOLVED

Hello!

Sorry -- I might be just dumb, but I still face this issue

10:13:27.364 [ERROR] [rnal.discovery.RFXComBridgeDiscovery] - Error occurred during discovery
java.io.IOException: device not found (2)
    at jd2xx.JD2XX.listDevices(Native Method)
    at jd2xx.JD2XX.listDevicesByDescription(JD2XX.java:826)
    at org.openhab.binding.rfxcom.internal.discovery.RFXComBridgeDiscovery.discoverRfxcom(RFXComBridgeDiscovery.java:90)
    at org.openhab.binding.rfxcom.internal.discovery.RFXComBridgeDiscovery.startScan(RFXComBridgeDiscovery.java:67)

when trying to add a new Somfy RTS roller shutter (RFY). I have already some included and they are well operated via openHAB, but I cannot add a new one. While earlier all elements were automatically added (i.e., Command, Shutter, Signal Strength), now I add the device but neither of the three mentioned items are linked (and I don't know how to link them). The device is shown as "online".

Since I'm totally new to openHAB (just a couple of days), I might just not yet have the experience to solve this issue.

I'm using openHAB from the openHABian distribution on Raspberry Pi 3.

Thank you a lot!

EDIT: I have added the RFXtrx433E "manually", by adding it using the "+" in Paper UI inbox and set /dev/ttyUSB0 as port for it.

EDIT2: Can I add the shutter also in conf/things manually?

EDIT3 - SOLVED: Sorry - I said I am new to openHAB and have to gain more experience: my mistake was to turn off "Item Linking" (Configuration - System)... now it does it automatically again. Though this doesn't solve the exception mentioned above, I can add shutters again. :)

RobertOnGit commented 7 years ago

I ran into the same problem with the RFXtrx433E running openHAB2 on a Synology NAS. So my first thought was that is was a NAS-specific problem. I've now set up a new openHAB2 system on a Raspberry Pi 3. Same problem. The RFXCOM Binding for the RFXtrx433E transceiver A) requires a mandatory serial number -- no clue what to enter here. B) always stays off-line.

Some people now mention that they somehow solved the problem in they environment. Could one of you give me the step-by-step instruction, since I'm still fairly new in the openHAB2 tweaking. I'm learning fast, but I'm stuck with this one.

Any help is appreciated! :-)

Edit: That mandatory serial number possibly must be the USB port, e.g. something like this: /dev/ttyUSB0 Anyway, the transceiver is still off-line.

RobertOnGit commented 7 years ago

This is how I got it running (inserting "sudo" for the command to get enough privileges):

  1. Edit /etc/openhab2/openhab.cfg, add line: rfxcom:serialPort=/dev/ttyUSB0
  2. Add user open to dialout group: gpasswd -a openhab dialout
  3. Edit /etc/default/openhab2 and set the following: EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyAMA0"
  4. Place a rfxtrx.things file in /etc/openhab2/things/ with the following content: Bridge rfxcom:bridge:usb0 [ serialPort="/dev/ttyUSB0" ]
  5. Run the following command: chmod 660 /dev/ttyUSB0
  6. Restart OH2 (reboot the RPi).
  7. Wait at least one full minute.
  8. Now push the remote control of the lamps, so that each is individually discovered.
ghost commented 7 years ago

Hi @RobertOnGit

I cannot find file /etc/openhab2/openhab.cfg that you mention under (1). Do you create that yourself? If not, what is its other content?

I'm using openHAB via apt installation on Raspberry Pi.

Thanks!

RobertOnGit commented 7 years ago

Hi @antares2001

That file didn't exist yet, so the above-mentioned line is the only content I have.

Cheers, Robert.