Zha no longer works

Hi all,

My zha was working fine until this morning suddenly all my zigbee lights turned on and I can no longer control them via home assistant.

Whenever I toggle the light via HASS, I get one of this error:

2017-07-03 03:22:25 ERROR (MainThread) [bellows.ezsp] Exception running handler
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/bellows/ezsp.py", line 175, in handle_callback
  File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/application.py", line 149, in ezsp_callback_handler
  File "/home/homeassistant/.homeassistant/deps/bellows/zigbee/application.py", line 221, in _handle_frame_failure
    send_fut.set_exception(Exception("Message send failure: %s" % (status, )))
  File "/usr/lib/python3.4/enum.py", line 464, in __str__
    return "%s.%s" % (self.__class__.__name__, self._name_)
AttributeError: 'EmberStatus' object has no attribute '_name_'

Does anyone know what’s causing this and know how to fix?


I have same issues.

2018-06-18 23:36:02 INFO (MainThread) [zigpy.application] Device 0xf82a (00:15:8d:00:02:04:29:ca) joined the network

2018-06-18 23:36:02 ERROR (MainThread) [bellows.ezsp] Exception running handler
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/ezsp.py”, line 194, in handle_callback
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/zigbee/application.py”, line 139, in ezsp_callback_handler
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/zigbee/application.py”, line 160, in _handle_frame
tsn, command_id, is_reply, args = self.deserialize(device, aps_frame.sourceEndpoint, aps_frame.clusterId, message)
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/application.py”, line 73, in deserialize
return sender.deserialize(endpoint_id, cluster_id, data)
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/device.py”, line 97, in deserialize
return self.endpoints[endpoint_id].deserialize(cluster_id, data)
KeyError: 1

2018-06-18 23:36:47 ERROR (MainThread) [zigpy.device] Failed ZDO request during device initialization: Message send failure: EmberStatus.DELIVERY_FAILED
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/device.py”, line 51, in _initialize
epr = await self.zdo.request(0x0005, self.nwk, tries=3, delay=2)
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/util.py”, line 52, in retry
r = await func()
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/device.py”, line 89, in request
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/zigbee/application.py”, line 241, in request
v = await send_fut
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
zigpy.exceptions.DeliveryError: Message send failure: EmberStatus.DELIVERY_FAILED

I’m seeing similar problems - what’s the best way to resolve?

Edit: my bulb was unplugged! Doh!