fruggy83 / openocean

27 stars 11 forks source link

Enocean discovery process makes Ember Zigbee dongle go offline #57

Open johanneskropf opened 5 years ago

johanneskropf commented 5 years ago

Im running Openhab2 installed with Openhabian on a Raspberry Pi 3 B+ with both an Ember Zigbee and USB300 Enocean dongle attached. There is Symlinks for both. When I start the Enocean discovery Process the Zigbee dongle (Bitron Video ember) goes offline with a communication error and the only way to get it back online is to reboot the Raspberry Pi. This happens every time. Maybe this is an issue of the Zigbee Binding too.

johanneskropf commented 5 years ago

just did again after installing Openocean 2.5.0.1 here is the log from when I click discovery:

2019-01-19 16:39:21.966 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:013C17D4' changed from ONLINE to UNKNOWN

2019-01-19 16:39:21.982 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_ember:013C17D4' has been updated.

==> /var/log/openhab2/openhab.log <==

2019-01-19 16:39:22.105 [INFO ] [transceiver.EnOceanSerialTransceiver] - Transceiver shutdown

==> /var/log/openhab2/events.log <==

2019-01-19 16:39:22.116 [hingStatusInfoChangedEvent] - 'enocean:bridge:FT2VDC6O' changed from ONLINE to OFFLINE (CONFIGURATION_PENDING): trying to connect to gateway...

2019-01-19 16:39:22.120 [hingStatusInfoChangedEvent] - 'enocean:bridge:FT2VDC6O' changed from OFFLINE (CONFIGURATION_PENDING): trying to connect to gateway... to OFFLINE (CONFIGURATION_PENDING): opening serial port...

2019-01-19 16:39:22.128 [me.event.ThingUpdatedEvent] - Thing 'enocean:bridge:FT2VDC6O' has been updated.

==> /var/log/openhab2/openhab.log <==

2019-01-19 16:39:22.134 [INFO ] [covery.EnOceanDeviceDiscoveryService] - Stopping EnOcean discovery scan

2019-01-19 16:39:22.138 [INFO ] [covery.EnOceanDeviceDiscoveryService] - Starting EnOcean discovery and accepting teach in requests

2019-01-19 16:39:22.139 [INFO ] [transceiver.EnOceanSerialTransceiver] - EnOceanSerialTransceiver initialized

==> /var/log/openhab2/events.log <==

2019-01-19 16:39:22.148 [hingStatusInfoChangedEvent] - 'enocean:bridge:FT2VDC6O' changed from OFFLINE (CONFIGURATION_PENDING): opening serial port... to OFFLINE (CONFIGURATION_PENDING): starting rx thread...

2019-01-19 16:39:22.152 [hingStatusInfoChangedEvent] - 'enocean:bridge:FT2VDC6O' changed from OFFLINE (CONFIGURATION_PENDING): starting rx thread... to OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id...

2019-01-19 16:39:22.177 [hingStatusInfoChangedEvent] - 'enocean:bridge:FT2VDC6O' changed from OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id... to ONLINE

==> /var/log/openhab2/openhab.log <==

2019-01-19 16:39:23.463 [ERROR] [ding.zigbee.handler.ZigBeeSerialPort] - Serial Error: Port /dev/ttyUSB0 does not exist.

2019-01-19 16:39:23.465 [ERROR] [zigbee.dongle.ember.ZigBeeDongleEzsp] - Unable to open Ember serial port

==> /var/log/openhab2/events.log <==

2019-01-19 16:39:23.475 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:013C17D4' changed from UNKNOWN to OFFLINE: Failed to open communications port

2019-01-19 16:39:23.483 [hingStatusInfoChangedEvent] - 'zigbee:device:013C17D4:8418260000ca5653' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-01-19 16:39:23.490 [hingStatusInfoChangedEvent] - 'zigbee:device:013C17D4:84182600000aeb1b' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-01-19 16:39:23.497 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:013C17D4' changed from OFFLINE: Failed to open communications port to OFFLINE (COMMUNICATION_ERROR)

2019-01-19 16:39:23.503 [hingStatusInfoChangedEvent] - 'zigbee:device:013C17D4:84182600000c86ae' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-01-19 16:39:23.507 [hingStatusInfoChangedEvent] - 'zigbee:device:013C17D4:84182600000aeee3' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-01-19 16:39:23.511 [hingStatusInfoChangedEvent] - 'zigbee:device:013C17D4:8418260000ca9986' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-01-19 16:39:23.516 [hingStatusInfoChangedEvent] - 'zigbee:device:013C17D4:8418260000ca5c38' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-01-19 16:39:23.526 [hingStatusInfoChangedEvent] - 'zigbee:device:013C17D4:84182600000a3f8a' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

==> /var/log/openhab2/openhab.log <==

2019-01-19 16:39:31.574 [INFO ] [ernal.transceiver.EnOceanTransceiver] - Received teach in message from 050F7968

2019-01-19 16:39:31.583 [INFO ] [covery.EnOceanDeviceDiscoveryService] - EnOcean Package discovered, RORG _1BS, payload D500050F796800, additional 00FFFFFFFF5600

2019-01-19 16:39:31.621 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'enocean:contact:FT2VDC6O:050F7968' to inbox.
johanneskropf commented 5 years ago

I thing it might have to do with another issue where the Enocean Binding resets the serial Port of the USB300 after every restart and I have to change it to the Symlink manually to make it work. After Discovery it is on the wrong serial Port again and I have to change it back. The Zigbee Binding has the same Problem, I think its been discussed somewhere. Zwave had this Problem too.