Hardware: Raspberry Pi 5/4GB RAM/32GB flash SD card
OS: Raspberry Pi OS
Java Runtime Environment: from the official docker image
root@raspberrypi:/openhab# java --version
openjdk 17.0.11 2024-04-16
OpenJDK Runtime Environment (build 17.0.11+9-Debian-1deb11u1)
OpenJDK Server VM (build 17.0.11+9-Debian-1deb11u1, mixed mode, sharing)
openHAB version: 4.1.3
Issue of the topic: The “Sonoff Zigbee 3.0 USB Dongle Plus E” seems to be working and OpenHAB is communicating with it according to the logs, but there seems to be a communication error during the initialization phase which I cant understand. The logs periodically show a sequence of calls which i have saved into this pastebin. What particularly struck me is the periodic showing of [DEBUG] [gbee.handler.ZigBeeCoordinatorHandler] - Mesh Update Period 86400.
Hi,
Welcome to the community!
Search the forum and you will find where is/was a known issue with dongles and Rpi4 related to power consumption. Some of the earlier revisions of the Rpi4 had a design flaw related to usb power.
Also, another one related to RF interference.
For the first issue the most recommended solution was to move the dongle to a powered usb hub.
The second on the most recommended solution was to use a usb extension cable to move the dongle farther away from your Rpi4
Also, another issue related to plugging the dongle in to a usb3.0 port instead of a usb2.0 port.
and
Obviously, the last issue most common recommendation was move dongle to a usb2.0 port.
You may want to review those known issues and insure you are not having any of those type problems.
I have searched the forum and only found the issue related to RF interference and could not find similiar message in the log, which would indicate such issue.
The dongle is connected to the USB3.0 port, I forgot to mention that in the OP.
Powercycling of the dongle due to low power from the USB port would explain the repeated logs.
I will try and get my hand at a USB powered hub to test out if that is the issue.
Hi,
Have you confirmed the firmware version of your dongle is the correct one tested for openhab
from here?
Also, the other thing you may want to double check is the instructions linked below that are required for docker based install and use of USB for OpenHab.
I did not update the firmware. I did notice the link to this repo in the OpenHAB docs for the Zigbee binding. I missed the part related to this being mandatory. I will try and update to the recommended version.
ad Docker and USBs: I have had trouble running the command which is required when using USB devices with docker from my docker-compose because OpenHAB refused to start up correctly if I combined it with the default entrypoint command and started throwing exceptions upon startup so I have to run it manualy if I rebuild the container. This sucks for now, but will deal with it later once I find what causes the connection issues.
If anyone knows what could cause the problem, this is what I added to the dockerfile
It’s what I identified as the entrypoint of the container based on running docker ps --no-trunc. I did not include the /entrypoint part before gosu openhab tini -s ./start.sh, because if I included it, it showed another /entrypoint in the docker ps output in the COMMAND section. Like this:
This indicates, that the version which was on the device is the one recommended in the link to firmware in OH docs and it might not be the firmware that is faulty because the issue prevails.
HI,
At this point you have pretty much eliminated most to the most common issues that occur.
The only thing left is docker and the dongle itself. You might try and toss a fresh sd card in and throw a pure openhabian install and Openhab last stable build to remove any docker related challenges.
Otherwise maybe the binding maintainer may have suggestions.
I think he is traveling currently but if he does see this he could at least speak to any firmware version related questions you may have.
Thank you, I will try that in a few weeks once I get to the device physically. For the next two weeks I can only connect via SSH so I will try and throw in a fresh install.
If that won’t help, I will wait for the maintainer to come back.
Thank you, I have heard of this and will check it out. What do you see as the main limitations of the zigbee binding, that the Z2M doesn’t have? I have understood it as an in-between bridge.
Unfortunately the info here isn’t very useful. Can you please set logging to DEBUG level and provide a longer log - this log is only 10 seconds long.
While it is correct that Z2M has support for devices that don’t meet the zigbee spec, the “device support list” is not really relevant. The zigbee binding doesn’t maintain a proper list of devices - it supports devices that conform to the spec and we don’t try and list all these . I believe Z2M is a lot more hassle than the OH binding, so both have advantages and disadvantages.
Anyway, if you can supply a DEBUG log I will try and work out what is wrong.
Thanks. It looks like the device isn’t communicating, but we need to change some logging settings…
Do you see the following (or something similar) in the log settings? If so, can you change the ones I put the star against to DEBUG and try again. Currently I just see the main binding - i.e. the first one I starred.
Thanks for the quick reply. I have set all of them to debug and restarted the container. The log file is over 1MB so I cant attach it here. I have uploaded it to mega.
I have configured the bridge via file, so I could not flip this switch in the config, however I have tried adding the dongle as another thing via UI config and the device came online! Does this mean I have to rely on the configuration via UI, or can I flip this setting inside the config file? I did not find any information related to this switch in the binding docs.