Can't get the Sonoff Zigbee USB stick to work - please help

Hello dear community,

because I had problems with the use of HAAS.io in a Docker container, I have set up HomeAssistant (Core) again (also in a Docker container). Everything is running as well so far.

Now I wanted to implement my new SONOFF Zigbee USB stick, but I can’t get it connected properly.

I added the following in the docker-compose and updated the stack:

version: ‘3’
SERVICES:
homeassistant:

devices:
- /dev/ttyUSB0:/dev/ttyUSB0

2022-01-02 12_28_05-Window

I use the intergation ZHA.
If I add this integration the USB stick with serial number is shown:

After that a success message comes.

In Zigbee Coordinator I go to “Add devices via this device” but I don’t see any. Although there is a Zigbee bulb from IKEA just above the stick and in the hallway next to it (both bulbs are on).

here is the logfile from portainer concerning the homeassistant-volumes:

And here the log of HomeAssistant itself (Settings → Preferences → Logs):slight_smile:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/zha/core/device.py:181
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:31:44 (1 occurrences)
Last logged: 12:31:44

[140322997763520] Error handling message: Unknown error
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py”, line 27, in _handle_async_response
await func(hass, connection, msg)
File “/usr/src/homeassistant/homeassistant/components/zha/api.py”, line 248, in websocket_get_devices
devices = [device.zha_device_info for device in zha_gateway.devices.values()]
File “/usr/src/homeassistant/homeassistant/components/zha/api.py”, line 248, in
devices = [device.zha_device_info for device in zha_gateway.devices.values()]
File “/usr/src/homeassistant/homeassistant/components/zha/core/device.py”, line 470, in zha_device_info
device_info.update(self.device_info)
File “/usr/src/homeassistant/homeassistant/components/zha/core/device.py”, line 409, in device_info
ATTR_MODEL: self.model,
File “/usr/src/homeassistant/homeassistant/components/zha/core/device.py”, line 181, in model
if self._zigpy_device.model is None:
File “/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py”, line 91, in model
if self.application._znp.version > 3.0:
AttributeError: ‘NoneType’ object has no attribute ‘version’

What am I doing wrong?
Please ask for your help.

Put the bulb in pairing mode

1 Like

You also have to add volume to the HA container.
So, both volume and device should be added. Either in docker-compose.yml or via Protainer.

volumes:
 ...
  - /dev/serial/by-id/:/dev/serial/by-id
devices:
  - /dev/ttyUSB0:/dev/ttyUSB0
1 Like

I have home assistant running in Portainer… can you elaborate a little more I would like to connect my Sonoff 3.0 Plus dongle to a ZHA integration to Aqara sensors but am having little luck. The HA server recognizes it under device manager(using Windows) but it will not “see” the dongle when it is plugged in.

I have HA docker container on Windows 10, and unable to install the newly purchased sonoff dongle plus. The dongle is recognized in device manager(Windows) but not detected in HA. I have already flashed the dongle using python method but unable to find any output when executing " ls /dev/serial/by-id" in HA terminal. I get the message “no such file or directory in HA”. Any help would be appreciated.

Docker desktop on windows does not support USB pass through

Any solution. Should I install docker on Ubuntu or a supervised?

Should work, take docker CE

Thanks. I will and update.