I have today updated my 2.5 M1 installation to 2.5 M4 and ran into troubles with my zigbee devices. Non of my two zigbee humidy nodes turned online. I tried to remove all zigbee devices and tried to re-add them. The coordinator (Ember EM35x NCP) is automatically detected and shown in the inbox. However after adding it it stays offline with a communication error. In the log I can see the following lines:
21:36:40.857 [DEBUG] [.zigbee.dongle.ember.ZigBeeDongleEzsp] - EZSP dongle initialize with protocol ASH2.
21:36:40.858 [DEBUG] [nding.zigbee.handler.ZigBeeSerialPort] - Connecting to serial port [/dev/ttyUSB0] at 57600 baud, flow control FLOWCONTROL_OUT_XONOFF.
21:36:40.860 [ERROR] [nding.zigbee.handler.ZigBeeSerialPort] - Serial Error: Port /dev/ttyUSB0 does not exist.
21:36:40.861 [ERROR] [.zigbee.dongle.ember.ZigBeeDongleEzsp] - Unable to open Ember serial port
21:36:40.862 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to OFFLINE
The port is definitely available. And it was working before. Any ideas?
I am not where I can check but I vaguely recall a warning about the Ember devices when moving from M1 forward.
It may be worth looking at the Warnings generated when upgrading.
EXTRA_JAVA_OPTS are needed for Linus Serial ports & Zigbee. This is mentioned in the documentation. I recently tested & verified this.
If you are running on Linux, then you probably need to add the user āopenhabā to the tty group, and enable EXTRA_JAVA_OPTS for the serial port your coordinator uses (see Linux install guide).
it definitley was not an issue with the serial port not found by Java. Interestingly the coordinator was automatically found and shown in the inbox. Only after accepting it it did not work and I saw the log lines with /dev/ttyUSB0 not found.
After having removed all zigbee started once with a clean userdata directory and then again with my old userdata it is working fine again.
No idea what actually was the problem
That is a symptom of needing the JAVA OPTS entry. That issue wil reoccur if you do not add the lines.
The port appears fir selection but does not always work. If you restart the zigbee binding it will likely break after.
Not exactly, Bruceā¦
The Java opts is there, but āsomethingā happens when you add the Ember dongle.
The USB port is working just fineā¦ ItĀ“s something going wrong when you add the coordinator.
I find it very surprising that cleaning (I suspect he mean emptying) the userdata folder will solve this issue. It seems like there is a ārediscoveryā of the serialport which fails and hangs from the old previous dataā¦ I havnĀ“t tried myself yet. Maybe IĀ“ll give it a short try this weekend.
I tested quite extensively with an Ember controller and even opened a GitHub issue. The conclusion was the line is needed for all recent test versions.
Again - the java opts is there. I already got that lineā¦
(Just come to thinkā¦ maybe it got swiped during the update progressā¦ I need to investigate that part ofcouse).
I did some investigation last night. It turned out my symlinks were gone probably due the update to 2.5M4.
I created the symlink again. I got the ember dongle online again, and add my devices again, incl the Ikea Tradfri motion sensorā¦
Two things:
It can not be due to the missing symlinks, that I couldnĀ“t get the ember dongle online. How come it worked after I did the symlinks again, is a mystery to me.
The Ikea Tradfri motion sensor was found during scanning and added just fine - However, It seem to be missing a motion channel. All IĀ“ve got is this:
This is far better than it has ever been.
Now IĀ“ll let the system run to see for how long it will continue to work. I may try a few restarts/reboots. But not these first coupple of days.
Edit forgot to say, the only channel which has updated, is the BatterLevel. I dont know how to force the others to update.