I’m having trouble getting the ZHA component to pair with a SmartThings Motion Sensor (2015 model). Other users have reported this device to pair and work successfully. The failure happens immediately after restarting following pairing of the first device from a clean database.
##Environment
- Raspberry Pi 3
- Raspbian GNU/Linux 8 (jessie)
- Home Assistant 0.49.0 deployed via AIO installer
- Python 3.4.2
- Nortek HUSBZB-1
##configuration.yaml
zha:
usb_path: /dev/zigbee
database_path: /home/homeassistant/.homeassistant/zigbee.db
##Process
sudo systemctl stop home-assistant.service
sudo rm /home/homeassistant/.homeassistant/zigbee.db
sudo systemctl start home-assistant.service
- In web interface, issue
zha.permit
service call - Run through inclusion procedure on device
Log result:
2017-07-17 07:52:07 WARNING (MainThread) [bellows.zigbee.application] Unexpected message send notification
2017-07-17 07:52:09 WARNING (MainThread) [bellows.zigbee.util] Error calling listener.device_initialized: No such command name: cluster_id
2017-07-17 07:52:28 WARNING (MainThread) [bellows.zigbee.zcl] Data remains after deserializing ZCL frame
2017-07-17 07:52:28 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 1
2017-07-17 07:52:29 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 0
2017-07-17 07:52:30 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 0
2017-07-17 07:52:31 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 0
2017-07-17 07:52:59 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 0
2017-07-17 07:53:03 WARNING (MainThread) [bellows.zigbee.zcl] [0x9539:1:0x0500] No handler for cluster command 0
- Restart hass:
sudo systemctl restart home-assistant.service
Log result:
2017-07-17 07:53:43 ERROR (MainThread) [homeassistant.setup] Error during setup of component zha
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/setup.py", line 187, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/zha/__init__.py", line 87, in async_setup
APPLICATION_CONTROLLER = ControllerApplication(ezsp_, database)
File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/application.py", line 30, in __init__
self._dblistener.load()
File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/appdb.py", line 204, in load
clus = ep.in_clusters[cluster]
KeyError: 0
Device details
Friendly Name: CentraLite 3325-S
Type of Device: Smartthings Motion Sensor (2015)
Database Values
Attributes
| endpoint_id | cluster | attrid | value |
|-------------|---------|--------|------------|
| 1 | 0 | 4 | CentraLite |
| 1 | 0 | 5 | 3325-S |
| 2 | 0 | 4 | CentraLite |
| 2 | 0 | 5 | 3325-S |
| 1 | 1280 | 1 | 13 |
Clusters
| endpoint_id | cluster |
|-------------|---------|
| 1 | 0 |
| 1 | 1 |
| 1 | 1026 |
| 1 | 3 |
| 1 | 2821 |
| 1 | 32 |
| 1 | 1280 |
Devices
| nwk | status |
|-----------|--------|
| <network> | 1 |
Endpoints
| endpoint_id | profile_id | device_type | status |
|-------------|------------|-------------|--------|
| 1 | 260 | 1026 | 1 |
| 2 | 49887 | 263 | 1 |