I am having no luck under docker
- Platform information:
- Hardware: amd64 docker image
- OS: Debian 10
- Java Runtime Environment: Whatever docker snapshot has
- openHAB version: 2.5.0
- Issue of the topic:
Unable to detect nortek dongle for either communication protocol. “Offline - Communication Error”
The dropdown under the controller/coordinator does not show any serial dropdown like i see on videos. Im guessing something is missing. I have read over and over all the docs with no luck. Here is what i tried
- Added openhab to groups on host: openhab tty dialout audio bluetooth
- Confirmed serial device is using proper driver “cp210x” with “dmesg | grep tty”
[ 5.148772] usb 1-1.1.3: cp210x converter now attached to ttyUSB0
[ 5.160085] usb 1-1.1.3: cp210x converter now attached to ttyUSB1 - Added EXTRA_JAVA_OPTS=-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyUSB1
- Docker device passed: --device=/dev/ttyUSB0 and --device=/dev/ttyUSB0
- Alternatively tried passing devices as volume path as well seperately
- Added zigbee as Port=/dev/ttyUSB1, flow control=software, baud=57600
- Checked to see if docker can see the file using "docker exec -it openhab ls -lisa /dev/ttyUSB*
11817 0 crw-rw-rw- 1 root dialout 188, 0 Dec 30 13:00 /dev/ttyUSB0
16696 0 crw-rw-rw- 1 root dialout 188, 1 Dec 30 13:00 /dev/ttyUSB1 - Checked docker uid and gid, both are 1000 (openhab)
- Changed udev rules to 666 for ttyUSB[0-9]
- Started home assistant docker image and zwave/zigbee both work and shows up with --device
Logs:
==> /srv/dev-disk-by-id-md-name-omv-Raid-part1/openhab/userdata/logs/events.log <==
2019-12-30 09:15:48.851 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:d407648b' changed from UNINITIALIZED to INITIALIZING
2019-12-30 09:15:48.858 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_ember:d407648b' has been updated.
2019-12-30 09:15:48.860 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_ember:d407648b' has been updated.
2019-12-30 09:15:48.861 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_ember:d407648b' has been updated.
2019-12-30 09:15:48.864 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_ember:d407648b' has been updated.
2019-12-30 09:15:48.865 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:d407648b' changed from INITIALIZING to UNKNOWN
2019-12-30 09:15:48.865 [nt.FirmwareStatusInfoEvent] - Firmware status of thing zigbee:coordinator_ember:d407648b changed to UNKNOWN.
==> /srv/dev-disk-by-id-md-name-omv-Raid-part1/openhab/userdata/logs/openhab.log <==
2019-12-30 09:15:49.864 [ERROR] [zigbee.dongle.ember.ZigBeeDongleEzsp] - Unable to open Ember serial port
==> /srv/dev-disk-by-id-md-name-omv-Raid-part1/openhab/userdata/logs/events.log <==
2019-12-30 09:15:49.865 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:d407648b' changed from UNKNOWN to OFFLINE: Failed to open communications port
2019-12-30 09:15:49.866 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:d407648b' changed from OFFLINE: Failed to open communications port to OFFLINE (COMMUNICATION_ERROR)
==> /srv/dev-disk-by-id-md-name-omv-Raid-part1/openhab/userdata/logs/openhab.log <==
2019-12-30 09:15:50.867 [ERROR] [zigbee.dongle.ember.ZigBeeDongleEzsp] - Unable to open Ember serial port
==> /srv/dev-disk-by-id-md-name-omv-Raid-part1/openhab/userdata/logs/events.log <==
2019-12-30 09:15:50.868 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:d407648b' changed from OFFLINE (COMMUNICATION_ERROR) to OFFLINE: Failed to open communications port
2019-12-30 09:15:50.869 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:d407648b' changed from OFFLINE: Failed to open communications port to OFFLINE (COMMUNICATION_ERROR)
==> /srv/dev-disk-by-id-md-name-omv-Raid-part1/openhab/userdata/logs/openhab.log <==
2019-12-30 09:15:55.869 [ERROR] [zigbee.dongle.ember.ZigBeeDongleEzsp] - Unable to open Ember serial port
==> /srv/dev-disk-by-id-md-name-omv-Raid-part1/openhab/userdata/logs/events.log <==
2019-12-30 09:15:55.870 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:d407648b' changed from OFFLINE (COMMUNICATION_ERROR) to OFFLINE: Failed to open communications port
2019-12-30 09:15:55.871 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_ember:d407648b' changed from OFFLINE: Failed to open communications port to OFFLINE (COMMUNICATION_ERROR)