But I do have the enocean USB 300 on another port: the ttyUSB1 port.
ls -l /dev/enocean0 lrwxrwxrwx 1 root root 7 Feb 16 16:04 /dev/enocean0 -> ttyUSB1
And the udev rule that makes the simlink:
cat /etc/udev/rules.d/enocean.rules
SUBSYSTEM=="tty", ATTRS{serial}=="FT2PT0KS", SYMLINK+="enocean0"
chris
(Chris Jackson)
February 17, 2019, 12:18pm
22
Ok, then I suspect this is a bug in the Enocean binding and it probably needs to be fixed there.
That is irrelevant though. Probably the binding is looking at all USB ports to try and autodetect the stick, and itβs not doing this correctly.
Iβm trying to uninstall the enocean binding and try again. Iβll let you know in a few minutes
I uninstalled the interfering enocean binding, rebooted, the serials ports are now:
ttyUSB1 for the xbee key
ttyUSB0 for the rfxcom
ttyUSB2 for the enocean key
.
I cannot choose ttyUSB1 for the xbee key in the zigbee manuall add thing:
chris
(Chris Jackson)
February 17, 2019, 12:50pm
25
Sorry, but Iβm not really sure how this works. This is not part of the binding - itβs added somewhere else in the system.
Now, I uinstalled the zigbee binding via PaperUI and tried the script : Zigbee and Z-Wave manual install script
Here are the versions I have installed now:
300 β Active β 80 β 2.5.0.201902161217 β ZigBee CC2531 Binding
301 β Active β 80 β 1.1.6 β com.zsmartsystems.zigbee.dongle.telegesis
302 β Active β 80 β 1.1.6 β com.zsmartsystems.zigbee.dongle.ember
303 β Active β 80 β 1.1.6 β com.zsmartsystems.zigbee.dongle.xbee
304 β Active β 80 β 2.5.0.201902161217 β ZigBee XBee Binding
305 β Active β 80 β 2.5.0.201902161217 β ZigBee Binding
306 β Active β 80 β 2.5.0.201902161217 β ZigBee Ember Binding
307 β Active β 80 β 1.1.6 β com.zsmartsystems.zigbee
308 β Active β 80 β 1.1.6 β com.zsmartsystems.zigbee.dongle.cc2531
309 β Active β 80 β 2.5.0.201902161217 β ZigBee Telegesis Binding
I unplugged everything and had only the xbee USB key plugged in this time.
Then I rebooted
This time I have my xbee key connected to ttyUSB0
lrwxrwxrwx 1 root root 7 Feb 17 13:43 xbee0 -> ttyUSB0
I have a problem with the binding now:
2019-02-17 13:44:08.881 [ERROR] [org.openhab.binding.zigbee ] - bundle org.openhab.binding.zigbee:2.5.0.201902161217 (305)[org.openhab.binding.zigbee.internal.converter.ZigBeeChannelConverterFactory(41)] : Could not load implementation object class org.openhab.binding.zigbee.internal.converter.ZigBeeChannelConverterFactory
java.lang.ClassNotFoundException: org.openhab.binding.zigbee.internal.converter.ZigBeeChannelConverterFactory cannot be found by org.openhab.binding.zigbee_2.5.0.201902161217
more details:
https://pastebin.com/PvYGWyCD
This time I can type the serial port manually (now that I have unplugged all the others keys - enocean and rfxcom):
I try to put /dev/ttyUSB0
And here what happens:
2019-02-17 13:52:26.974 [DEBUG] [org.openhab.binding.zigbee.xbee ] - ServiceEvent REGISTERED - {org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler}={service.id=411, service.bundleid=304, service.scope=singleton} - org.openhab.binding.zigbee.xbee
==> /var/log/openhab2/events.log <==
2019-02-17 13:52:27.000 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_xbee:a94d1e93' changed from UNINITIALIZED to INITIALIZING
==> /var/log/openhab2/openhab.log <==
2019-02-17 13:52:27.019 [DEBUG] [ding.zigbee.xbee.handler.XBeeHandler] - Initializing ZigBee XBee serial bridge handler.
2019-02-17 13:52:27.025 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Initializing ZigBee network [zigbee:coordinator_xbee:a94d1e93].
2019-02-17 13:52:27.029 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Channel 0
2019-02-17 13:52:27.033 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - PANID 0
2019-02-17 13:52:27.036 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - EPANID 0000000000000000
2019-02-17 13:52:27.042 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network Key 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2019-02-17 13:52:27.043 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link Key null
2019-02-17 13:52:27.046 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Config: zigbee_initialise found, initializeNetwork=false
2019-02-17 13:52:27.048 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - ExtendedPanId or PanId not set: initializeNetwork=true
2019-02-17 13:52:27.050 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network Key String 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2019-02-17 13:52:27.055 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network key initialised 7713C64167DF439C679DE5FEE714D0B1
2019-02-17 13:52:27.057 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network key final array 7713C64167DF439C679DE5FEE714D0B1
2019-02-17 13:52:27.059 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link Key String
2019-02-17 13:52:27.061 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link Key String has invalid format. Revert to default key.
2019-02-17 13:52:27.063 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Initialising network
2019-02-17 13:52:27.065 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Channel set to 11.
2019-02-17 13:52:27.117 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Created random ZigBee PAN ID [274D].
==> /var/log/openhab2/events.log <==
2019-02-17 13:52:27.120 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_xbee:a94d1e93' has been updated.
==> /var/log/openhab2/openhab.log <==
2019-02-17 13:52:27.160 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Created random ZigBee extended PAN ID [40C5022FC2CDE2CF].
==> /var/log/openhab2/events.log <==
2019-02-17 13:52:27.161 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_xbee:a94d1e93' has been updated.
2019-02-17 13:52:27.193 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_xbee:a94d1e93' has been updated.
2019-02-17 13:52:27.222 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_xbee:a94d1e93' has been updated.
==> /var/log/openhab2/openhab.log <==
2019-02-17 13:52:27.222 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link key final array 5A6967426565416C6C69616E63653039
2019-02-17 13:52:27.245 [DEBUG] [ding.zigbee.xbee.handler.XBeeHandler] - ZigBee XBee Coordinator opening Port:'/dev/ttyUSB0' PAN:274d, EPAN:40C5022FC2CDE2CF, Channel:11
==> /var/log/openhab2/events.log <==
2019-02-17 13:52:27.261 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_xbee:a94d1e93' changed from INITIALIZING to UNKNOWN
==> /var/log/openhab2/openhab.log <==
2019-02-17 13:52:27.259 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Scheduling ZigBee start
2019-02-17 13:52:28.266 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - ZigBee network starting
2019-02-17 13:52:28.268 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Initialising ZigBee coordinator
2019-02-17 13:52:28.312 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Mesh Update Period 86400
2019-02-17 13:52:28.320 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - Adding supported cluster 1280
2019-02-17 13:52:28.326 [DEBUG] [com.zsmartsystems.zigbee.ZigBeeNode ] - ClusterMatcher starting
2019-02-17 13:52:28.450 [DEBUG] [com.zsmartsystems.zigbee.ZigBeeNode ] - ClusterMatcher adding cluster IAS_ZONE
2019-02-17 13:52:28.454 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - Adding supported cluster 25
2019-02-17 13:52:28.455 [DEBUG] [com.zsmartsystems.zigbee.ZigBeeNode ] - ClusterMatcher adding cluster OTA_UPGRADE
2019-02-17 13:52:28.469 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Loading ZigBee network state: Start.
2019-02-17 13:52:28.472 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Loading ZigBee network state: File does not exist
2019-02-17 13:52:28.476 [DEBUG] [.zigbee.dongle.xbee.ZigBeeDongleXBee] - XBee dongle initialize.
2019-02-17 13:52:28.476 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to UNINITIALISED
2019-02-17 13:52:28.478 [DEBUG] [ding.zigbee.handler.ZigBeeSerialPort] - Connecting to serial port [/dev/ttyUSB0] at 9600 baud, flow control FLOWCONTROL_OUT_RTSCTS.
2019-02-17 13:52:28.481 [DEBUG] [ding.zigbee.handler.ZigBeeSerialPort] - No communication ports found, cannot connect to [/dev/ttyUSB0]
2019-02-17 13:52:28.483 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - null: networkStateUpdated called with state=UNINITIALISED
2019-02-17 13:52:28.484 [ERROR] [.zigbee.dongle.xbee.ZigBeeDongleXBee] - Unable to open XBee serial port
2019-02-17 13:52:28.487 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to OFFLINE
2019-02-17 13:52:28.489 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - null: networkStateUpdated called with state=OFFLINE
==> /var/log/openhab2/events.log <==
2019-02-17 13:52:28.498 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_xbee:a94d1e93' changed from UNKNOWN to OFFLINE: Failed to open communications port
2019-02-17 13:52:28.503 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_xbee:a94d1e93' changed from OFFLINE: Failed to open communications port to OFFLINE (COMMUNICATION_ERROR)
==> /var/log/openhab2/openhab.log <==
2019-02-17 13:52:29.510 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state
2019-02-17 13:52:29.533 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Start.
2019-02-17 13:52:29.561 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Done.
I also tried to install manually the addon:
pwd
/usr/share/openhab2/addons
[14:20:38] openhabian@openHABianPi:/usr/share/openhab2/addons$ ls
archive com.zsmartsystems.zigbee-1.1.8.jar com.zsmartsystems.zigbee.dongle.xbee-1.1.8.jar org.openhab.binding.zigbee-2.5.0-SNAPSHOT.jar org.openhab.binding.zigbee.xbee-2.5.0-SNAPSHOT.jar
still have this problem:
https://pastebin.com/FtY87YJJ
The links are not working now. where can i get the .jar files ?