Yoda-x/ha-zha-new

Trying to use zha_new with Hass.io v1.3 & Home Assistant 0.68.1

Closed this issue · 4 comments

Got this error message... any guidance?

Traceback (most recent call last): File "/config/custom_components/zha_new.py", line 355, in async_device_initialized populate_data() File "/config/custom_components/zha_new.py", line 80, in populate_data zha.DeviceType.COLOR_SCENE_CONTROLLER: 'binary_sensor' File "/usr/lib/python3.6/enum.py", line 324, in __getattr__ raise AttributeError(name) from None AttributeError: COLOR_SCENE_CONTROLLER

you have my versions of bellows and zigpy? I may have missed it in the readme, but they are mandatory.

Hi @Yoda-x , just got a new server Pi3 with Raspbian, since Hassio is not that flexible for testing.

Installled your bellows and zigpy:

pip3 install git+https://github.com/Yoda-x/zigpy git+https://github.com/Yoda-x/bellows --user

Name: bellows
Version: 0.6.0-YD
Summary: Library implementing EZSP
Home-page: http://github.com/zigpy/bellows
Author: Russell Cloran
Author-email: rcloran@gmail.com
License: GPL-3.0
Location: /home/homeassistant/.local/lib/python3.5/site-packages
Requires: Click, click-log, pure-pcapy3, pyserial-asyncio, zigpy

Name: zigpy
Version: 0.1.0-Y
Summary: Library implementing a ZigBee stack
Home-page: http://github.com/zigpy/zigpy
Author: Russell Cloran
Author-email: rcloran@gmail.com
License: GPL-3.0
Location: /home/homeassistant/.local/lib/python3.5/site-packages
Requires: pycryptodome, crccheck

But still get those errors trying to pair a Xiaomi Aqara door sensor:

Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/home/homeassistant/.homeassistant/custom_components/zha_new.py", line 355, in async_device_initialized
populate_data()
File "/home/homeassistant/.homeassistant/custom_components/zha_new.py", line 80, in populate_data
zha.DeviceType.COLOR_SCENE_CONTROLLER: 'binary_sensor'
File "/usr/lib/python3.5/enum.py", line 274, in getattr
raise AttributeError(name) from None
AttributeError: COLOR_SCENE_CONTROLLER

···

homeassistant@hassbian:~/.homeassistant $ bellows -d /dev/ttyUSB1 -v DEBUG devices -D ./zigbee.db
debug: Loading application state from ./zigbee.db
debug: Considering <class 'zigpy.quirks.xiaomi.TemperatureHumiditySensor'>
debug: Fail because endpoint list mismatch: dict_keys([1, 2, 3]) {1}
debug: Considering <class 'zigpy.quirks.xiaomi.AqaraTemperatureHumiditySensor'>
debug: Fail because input cluster mismatch on at least one endpoint
debug: Considering <class 'zigpy.quirks.xiaomi.AqaraOpenCloseSensor'>
debug: Found custom device replacement for 00:15:8d:00:01:xx:xx:xx: <class 'zigpy.quirks.xiaomi.AqaraOpenCloseSensor'>
Device:
NWK: 0x0968
IEEE: 00:15:8d:00:01:xx:xx:xx
Endpoints:
1: profile=0x104, device_type=24321
Input Clusters:
Basic (0)
Identify (3)
On/Off (6)

I imported the upstream commits from rcloran. The quirks patch is not compatible with my code. I removed it again. please try now, if it works, and pull a fresh copy of my repo

reopen if the problem persists