[SOLVED] MySensors Serial Gateway stopped working after upgrade to OH 2.2

I have a serial gateway which is an Arduino Nano connected to a NRF24L01 transceiver using the MySensors arduino library. It is connected to my raspberry pi (openhab controller) via USB.

It’s been a long time since I researched this and got it working with openhab and have forgotten or lost the websites that helped me get it up and running.

I have recently upgraded openhab2 to the latest version (2.2.0-1) and since then openhab is not seeing this serial gateway.

In the last version of openhab I believe I had to manually enter the gateway as a thing in the things file:

Bridge mysensors:bridge-ser:gateway [ serialPort="/dev/ttyUSB0", sendDelay=200, startupCheckEnabled=false ]
        {
                // define things connected to that bridge here
        }

This no longer shows up in the paperUI and all mySensors nodes that used to connect to it are now showing as uninitialized.

Has anyone had any experience similar to this ?

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage --> Raspberry Pi 3
    • OS: what OS is used and which version β€”> Raspbian Stretch
    • Java Runtime Environment: which java platform is used and what version β€”> Java version 1.8.0_171
    • openHAB version: 2.2.0-1

When I do a bundle:list in the karaf console i get:

openhab> bundle:list
START LEVEL 100 , List Threshold: 50
 ID β”‚ State     β”‚ Lvl β”‚ Version                β”‚ Name
────┼───────────┼─────┼────────────────────────┼────────────────────────────────
 15 β”‚ Active    β”‚  80 β”‚ 5.3.1.201602281253     β”‚ OSGi JAX-RS Connector
 16 β”‚ Active    β”‚  80 β”‚ 2.4.5                  β”‚ Jackson-annotations
 17 β”‚ Active    β”‚  80 β”‚ 2.4.5                  β”‚ Jackson-core
 18 β”‚ Active    β”‚  80 β”‚ 2.4.5                  β”‚ jackson-databind
 19 β”‚ Active    β”‚  80 β”‚ 2.4.5                  β”‚ Jackson-dataformat-XML
 20 β”‚ Active    β”‚  80 β”‚ 2.4.5                  β”‚ Jackson-dataformat-YAML
 21 β”‚ Active    β”‚  80 β”‚ 2.4.5                  β”‚ Jackson-module-JAXB-annotations
 22 β”‚ Active    β”‚  80 β”‚ 2.7.0                  β”‚ Gson
 23 β”‚ Active    β”‚  80 β”‚ 18.0.0                 β”‚ Guava: Google Core Libraries f
 24 β”‚ Active    β”‚  80 β”‚ 3.0.0.v201312141243    β”‚ Google Guice (No AOP)
 25 β”‚ Active    β”‚  80 β”‚ 3.12.0.OH              β”‚ nrjavaserial
 26 β”‚ Active    β”‚  80 β”‚ 1.5.8                  β”‚ swagger-annotations
 27 β”‚ Active    β”‚  80 β”‚ 3.19.0.GA              β”‚ Javassist
 29 β”‚ Active    β”‚  80 β”‚ 3.5.2                  β”‚ JmDNS
 32 β”‚ Active    β”‚  80 β”‚ 1.1.0.Final            β”‚ Bean Validation API
 34 β”‚ Active    β”‚  80 β”‚ 2.0.1                  β”‚ javax.ws.rs-api
 35 β”‚ Active    β”‚  80 β”‚ 3.2.0.v201101311130    β”‚ ANTLR Runtime
 38 β”‚ Active    β”‚  80 β”‚ 3.2.1                  β”‚ Commons Collections
 39 β”‚ Active    β”‚  80 β”‚ 1.1                    β”‚ Commons Exec
 40 β”‚ Active    β”‚  80 β”‚ 2.2.0                  β”‚ Commons IO
 41 β”‚ Active    β”‚  80 β”‚ 2.6                    β”‚ Commons Lang
 51 β”‚ Active    β”‚  80 β”‚ 4.1.3                  β”‚ Apache Karaf :: OSGi Services
 70 β”‚ Active    β”‚  80 β”‚ 2.11.0.v20150805-0538  β”‚ EMF Common
 71 β”‚ Active    β”‚  80 β”‚ 2.11.1.v20150805-0538  β”‚ EMF Ecore
 72 β”‚ Active    β”‚  80 β”‚ 2.11.1.v20150805-0538  β”‚ EMF XML/XMI Persistence
 73 β”‚ Active    β”‚  80 β”‚ 3.8.0.v20160509-1230   β”‚ Common Eclipse Runtime
 74 β”‚ Active    β”‚  80 β”‚ 3.6.100.v20160223-2218 β”‚ Extension Registry Support
101 β”‚ Active    β”‚  80 β”‚ 0.2.1.v20170706-0855   β”‚ org.eclipse.lsp4j
102 β”‚ Active    β”‚  80 β”‚ 0.2.1.v20170706-0855   β”‚ org.eclipse.lsp4j.jsonrpc
103 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Config Core
104 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Configuratio
105 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Configuratio
106 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Config Dispa
107 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Config Serial
108 β”‚ Active    β”‚  75 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Config XML
109 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Core
110 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Core Audio
111 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome AutoUpdate B
112 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Core Binding
113 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Core ID
114 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Core Persist
115 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Scheduler Se
116 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Core Thing
117 β”‚ Active    β”‚  75 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Core Thing X
118 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Transformati
119 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Core Voice
120 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Console
121 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Console for
122 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome JavaSound I/
123 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Monitor
124 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Net I/O Bund
125 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome REST Interfa
126 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Core REST API
127 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome REST mDNS An
128 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome REST Interfa
129 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Sitemap REST
130 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome SSE REST API
131 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Voice REST A
132 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Bonjour/MDS
133 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Web Audio Su
134 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Model Core
135 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Item Model
136 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Item Model I
137 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Item Model R
138 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Language Ser
139 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Persistence
140 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Persistence
141 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Persistence
142 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Rule Model
143 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Rule Model I
144 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Rule Runtime
145 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Script
146 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Script Model
147 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Script Runti
148 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Sitemap Model
149 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Sitemap Mode
150 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Sitemap Runt
151 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Thing Model
152 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Thing Model
153 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Thing Model
154 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Json Storage
155 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome UI
156 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome UI Icons
157 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Classic Icon
158 β”‚ Active    β”‚  80 β”‚ 2.12.0.v20170518-0757  β”‚ Xtend Runtime Library
159 β”‚ Active    β”‚  80 β”‚ 2.12.0.v20170518-0757  β”‚ Xtend Macro Interfaces
160 β”‚ Active    β”‚  80 β”‚ 2.12.0.v20170518-0959  β”‚ Xtext
161 β”‚ Active    β”‚  80 β”‚ 2.12.0.v20170519-0752  β”‚ Xtext Common Types
162 β”‚ Active    β”‚  80 β”‚ 2.12.0.v20171017-1700  β”‚ Xtext IDE Core
163 β”‚ Active    β”‚  80 β”‚ 2.12.0.v20170518-0959  β”‚ Xtext Utility
164 β”‚ Active    β”‚  80 β”‚ 2.12.0.v20170519-0752  β”‚ Xbase Model
165 β”‚ Active    β”‚  80 β”‚ 2.12.0.v20170519-0752  β”‚ Xbase Generic IDE Services
166 β”‚ Active    β”‚  80 β”‚ 2.12.0.v20170518-0757  β”‚ Xbase Runtime Library
181 β”‚ Active    β”‚  80 β”‚ 2.3.0                  β”‚ JUPnP Library
182 β”‚ Active    β”‚  80 β”‚ 1.9.6                  β”‚ MIME streaming extension
183 β”‚ Active    β”‚  80 β”‚ 5.0.2                  β”‚ Require-Bundle Fix :: org.obje
185 β”‚ Active    β”‚  90 β”‚ 2.2.0                  β”‚ openHAB Core
186 β”‚ Active    β”‚  80 β”‚ 2.2.0                  β”‚ openHAB Karaf Integration
188 β”‚ Resolved  β”‚  80 β”‚ 2.2.0                  β”‚ openHAB Sound Support, Hosts:
189 β”‚ Active    β”‚  80 β”‚ 2.2.0                  β”‚ openHAB Dashboard UI
194 β”‚ Active    β”‚  80 β”‚ 3.1.4                  β”‚ Stax2 API
200 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation A
201 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation c
202 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation C
203 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation M
204 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation M
205 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation M
206 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation S
207 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation S
208 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation M
209 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation G
210 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation P
211 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Automation R
234 β”‚ Active    β”‚  80 β”‚ 1.6.0                  β”‚ Commons Codec
235 β”‚ Active    β”‚  80 β”‚ 3.2.0                  β”‚ Commons Net
236 β”‚ Active    β”‚  80 β”‚ 4.2.3                  β”‚ Apache HttpClient OSGi bundle
237 β”‚ Active    β”‚  80 β”‚ 4.2.3                  β”‚ Apache HttpCore OSGi bundle
238 β”‚ Active    β”‚  80 β”‚ 3.1.0.7                β”‚ Apache ServiceMix :: Bundles :
239 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Astro Binding
240 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome hue Binding
241 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ ntp Binding
242 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Wemo Binding
243 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Configuratio
244 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome IoT Marketpl
245 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome UPnP Transpo
246 β”‚ Active    β”‚  75 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Map Transfor
247 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Basic UI, Fr
248 β”‚ Active    β”‚  80 β”‚ 0.10.0.b1              β”‚ Eclipse SmartHome Paper UI, Fr
249 β”‚ Active    β”‚  80 β”‚ 2.2.0                  β”‚ HarmonyHub Binding
250 β”‚ Active    β”‚  80 β”‚ 1.11.0                 β”‚ openHAB MQTT Binding
251 β”‚ Active    β”‚  80 β”‚ 2.2.0                  β”‚ Network Binding
252 β”‚ Active    β”‚  80 β”‚ 1.11.0                 β”‚ openHAB Weather Binding
253 β”‚ Active    β”‚  80 β”‚ 2.2.0                  β”‚ openHAB 1.x Compatibility Layer
254 β”‚ Active    β”‚  80 β”‚ 2.2.0                  β”‚ openHAB Cloud Connector Bundle
255 β”‚ Active    β”‚  80 β”‚ 1.11.0                 β”‚ openHAB MQTT Transport Bundle
256 β”‚ Active    β”‚  80 β”‚ 1.11.0                 β”‚ openHAB RRD4j Persistence Bund
257 β”‚ Resolved  β”‚  75 β”‚ 2.2.0                  β”‚ openHAB Basic UI Fragment, Hos
258 β”‚ Active    β”‚  80 β”‚ 2.2.0                  β”‚ HABPanel User Interface
259 β”‚ Resolved  β”‚  75 β”‚ 2.2.0                  β”‚ openHAB Paper UI Theme Fragmen
261 β”‚ Installed β”‚  80 β”‚ 2.3.0.201803141156     β”‚ MySensors Binding

MySensors Binding shows as β€˜Installed’ but not β€˜Active’

Try bundle:start 261
https://docs.openhab.org/administration/console.html#using-the-console

Thanks, I tried this and got the following error:

openhab> bundle:start 261
Error executing command: Error executing command on bundles:
	Error starting bundle 261: Could not resolve module: org.openhab.binding.mysensors [261]
  Unresolved requirement: Import-Package: org.eclipse.jdt.annotation; resolution:="optional"
  Unresolved requirement: Import-Package: org.eclipse.smarthome.io.transport.mqtt

Looks llike some dependencies are missing, try this:

Edit: I guess you need to use feature:install org.eclipse.smarthome.io.transport.mqtt

1 Like

OK, that worked!

Using:

feature:install esh-io-transport-mqtt

One more problem I now have, which may be related to openhab, but equally may not be:

From my raspberry pi terminal window (within raspbian desktop) I can ssh into openhab using:

ssh -p 8101 openhab@localhost

but if I use putty from my windows PC on the same network with the same settings, I get:

Network error: Connection refused

I think this started to happen after upgrading openhab to version 2.2

1 Like

:+1:

SSH port is not 8101, it’s 22.
Put in your networkname and port 22 (or ip adress and port 22), then login via username/password for your operating system (not openHAB).

Sorry, I wasn’t very clear.

I’m trying to remotely log in to the karaf console using putty (I used to be able to do it) using port 8101.

I can log in to the operating system in the way that you mention with no problems.

Sorry, never tried that and even did not know that is possible :sunglasses:

Hehe, no problem, I’ll figure it out eventually :+1:

Thanks again for your help :slightly_smiling_face:

1 Like

deleted - New Topic started