Problem with ZHA/Bellows in Docker

Hi,

I am running the home assistant docker image on my qnap nas (intel based).

With home assistant 0.49.1 zha seems to work fine (although without support for all my zigbee devices), however the dimmable light can be controlled from home assistant.

Output from Bellows as follows:
<ows -d /zigbeeusbstick devices -D /config/zigbee.db
Device:
NWK: 0xcea7
IEEE: 00:17:88:01:02:33:bb:b0
Endpoints:
11: profile=0xc05e, device_type=DeviceType.DIMMABLE_LIGHT
Input Clusters:
Basic (0)
Identify (3)
Groups (4)
Scenes (5)
On/Off (6)
Level control (8)
LightLink (4096)
Output Clusters:
Ota (25)
242: profile=0xa1e0, device_type=97
Input Clusters:
GreenPowerProxy (33)
Output Clusters:
GreenPowerProxy (33)
Device:
NWK: 0x430b
IEEE: 84:18:26:00:00:cb:79:47
Endpoints:
3: profile=0xc05e, device_type=DeviceType.EXTENDED_COLOR_LIGHT
Input Clusters:
Basic (0)
Identify (3)
Groups (4)
Scenes (5)
On/Off (6)
Level control (8)
Color Control (768)
LightLink (4096)
Manufacturer Specific (64527)
Output Clusters:
Ota (25)
Device:
NWK: 0x349e
IEEE: 84:18:26:00:00:cb:9b:92
Endpoints:
3: profile=0xc05e, device_type=DeviceType.EXTENDED_COLOR_LIGHT
Input Clusters:
Basic (0)
Identify (3)
Groups (4)
Scenes (5)
On/Off (6)
Level control (8)
Color Control (768)
LightLink (4096)
Manufacturer Specific (64527)
Output Clusters:
Ota (25)
Device:
NWK: 0xb151
IEEE: 00:17:88:01:02:0f:71:f0
Endpoints:
1: profile=0xc05e, device_type=DeviceType.SCENE_CONTROLLER
Input Clusters:
Basic (0)
Output Clusters:
Basic (0)
Identify (3)
Groups (4)
Scenes (5)
On/Off (6)
Level control (8)
2: profile=0x104, device_type=DeviceType.SIMPLE_SENSOR
Input Clusters:
Basic (0)
Power Configuration (1)
Identify (3)
Binary Input (Basic) (15)
Manufacturer Specific (64512)
Output Clusters:
Ota (25)

When I use a newer docker image (in this instance 0.54) I am not able to run bellows from the command line. This makes trouble shooting difficult. I can still control my zigbee devices from within home assistant.

When I try to run bellows on the command line I receive:
root@93a1192c26c1:/usr/src/app# bellows
Traceback (most recent call last):
File “/usr/local/bin/bellows”, line 11, in
load_entry_point(‘bellows==0.3.4’, ‘console_scripts’, ‘bellows’)()
File “/usr/local/lib/python3.6/site-packages/pkg_resources/init.py”, line 570, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/local/lib/python3.6/site-packages/pkg_resources/init.py”, line 2687, in load_entry_point
return ep.load()
File “/usr/local/lib/python3.6/site-packages/pkg_resources/init.py”, line 2341, in load
return self.resolve()
File “/usr/local/lib/python3.6/site-packages/pkg_resources/init.py”, line 2347, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/usr/local/lib/python3.6/site-packages/bellows/cli/init.py”, line 2, in
from . import application
File “/usr/local/lib/python3.6/site-packages/bellows/cli/application.py”, line 13, in
from .main import main
File “/usr/local/lib/python3.6/site-packages/bellows/cli/main.py”, line 13, in
@click_log.simple_verbosity_option()
TypeError: simple_verbosity_option() missing 1 required positional argument: ‘logger’

Any ideas what could be causing this?

Thanks,
Nichol

1 Like

Has anybody else seen this?

I am trying to work out if this is a problem with the HA docker image or something else in my system.

Thanksl
Nichol

Yep! Happening for me on the 0.54 Docker image, too. Regular ZHA home-assistant functions still work fine, but I get the same errors on CLI bellows calls. I assumed it was related to Python upgrade woes. Will share if it bothers me enough to dig deeper!

thanks.
I will try to have a look, however this may be outside my skills.