One Zigbee gateway to rule them all?

https://github.com/rcloran/bellows/issues/16

You should be able to work around this by changing line 26-31 in bellows/cli/opts.py to just be type=click.STRING. I haven’t tested that yet, though.

Hi thanks for your help,

Looking good, we’re getting further along after I pulled the latest code from your git repo.

I’m now getting the following when I call zha “permit”:

ERROR:homeassistant.core:Error doing job: Exception in callback SerialTransport._read_ready()
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/events.py”, line 120, in _run
self._callback(*self._args)
File “/opt/hass/.homeassistant/deps/serial_asyncio/init.py”, line 106, in _read_ready
self._protocol.data_received(data)
File “/opt/hass/.homeassistant/deps/bellows/uart.py”, line 61, in data_received
self.frame_received(frame)
File “/opt/hass/.homeassistant/deps/bellows/uart.py”, line 73, in frame_received
self.data_frame_received(data)
File “/opt/hass/.homeassistant/deps/bellows/uart.py”, line 94, in data_frame_received
self._application.frame_received(self.randomize(data[1:-3]))
File “/opt/hass/.homeassistant/deps/bellows/ezsp.py”, line 179, in frame_received
result, data = t.deserialize(data, schema)
File “/opt/hass/.homeassistant/deps/bellows/types/init.py”, line 9, in deserialize
value, data = type
.deserialize(data)
File “/opt/hass/.homeassistant/deps/bellows/types/basic.py”, line 13, in deserialize
r = cls(int.from_bytes(data[:cls._size], ‘little’, signed=cls._signed))
File “/usr/lib/python3.4/enum.py”, line 222, in call
return cls.new(cls, value)
File “/usr/lib/python3.4/enum.py”, line 457, in new
raise ValueError(“%r is not a valid %s” % (value, cls.name))
ValueError: 6 is not a valid EmberOutgoingMessageType

And then the following when the device joins:

DEBUG:bellows.ezsp:Application frame 63 (messageSentHandler) received
DEBUG:bellows.uart:Data frame: b’1556b157546f15b658944a24ab5593499c59d8770af29874f8de6782fcbf132d7e’
DEBUG:bellows.uart:Sending: b’82503a7e’
DEBUG:bellows.ezsp:Application frame 69 (incomingMessageHandler) received
ERROR:homeassistant.core:Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/tasks.py”, line 237, in _step
result = next(coro)
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/zha/init.py”, line 142, in async_device_initialized
discovered_info = yield from _discover_endpoint_info(endpoint)
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/zha/init.py”, line 269, in _discover_endpoint_info
allow_cache=True,
File “/opt/hass/.homeassistant/deps/bellows/zigbee/zcl/init.py”, line 183, in read_attributes
for record in result[0]:
TypeError: ‘uint8_t’ object is not iterable

Looks like there’s still a few things to be tweaked but it feels like it’s almost there.

2 Likes

Those both seem very strange to me (eg, there is no EmberOutgoingMessageType 6 in the spec). Unfortunately, I don’t have an EZSP 5 device to test with. I’ve created

https://github.com/rcloran/bellows/issues/18 (permit issue)
https://github.com/rcloran/bellows/issues/19 (device join issue)

I see you had debug logging on in the second case. It’d really help if you could get it on in the first, and provide more of the previous log lines. What would be ideal would be the output of bellows -d yourdevicepath -v debug permit. If you can put that on the github issue that’d be great.

Thanks for the update, I’ve pulled the latest version and posted the output to the first issue.

Any luck with 0.49?

Looks like it’s still not quite there yet:

DEBUG:bellows.uart:Data frame: b'104db157540e9c95a77d8325aa738acd9d4e27ab54077e'
DEBUG:bellows.uart:Sending: b'82503a7e'
DEBUG:bellows.ezsp:Application frame 36 (trustCenterJoinHandler) received
INFO:bellows.zigbee.application:Device 0x2789 (84:18:26:00:00:c9:e9:fe) joined the network
INFO:bellows.zigbee.device:[0x2789] Discovering endpoints
DEBUG:bellows.ezsp:Send command sendUnicast
DEBUG:bellows.uart:Sending: b'02522157541e153b7d5e944a20aa5592099d4e27aaeccd6602da3fb97e'
DEBUG:bellows.uart:Data frame: b'2152a157541e158d0a947e'
DEBUG:bellows.uart:Sending: b'83401b7e'
DEBUG:bellows.ezsp:Application frame 52 (sendUnicast) received
DEBUG:bellows.uart:Data frame: b'3152b1575415153b7e944a20aa5592099d4e2794eca867e17b7e'
DEBUG:bellows.uart:Sending: b'8430fc7e'
DEBUG:bellows.ezsp:Application frame 63 (messageSentHandler) received
ERROR:homeassistant.core:Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/root/.homeassistant/deps/bellows/zigbee/device.py", line 39, in initialize
    epr = yield from self.zdo.request(0x0005, self._nwk)
  File "/root/.homeassistant/deps/bellows/zigbee/application.py", line 260, in request
    v = yield from send_fut
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
Exception: Message send failure: EmberStatus.DELIVERY_FAILED
DEBUG:bellows.uart:Data frame: b'4152b157540e9c95a77d8325aa738acd9d4e27ab2df67e'
DEBUG:bellows.uart:Sending: b'8520dd7e'
DEBUG:bellows.ezsp:Application frame 36 (trustCenterJoinHandler) received
INFO:bellows.zigbee.application:Device 0x2789 (84:18:26:00:00:c9:e9:fe) joined the network
INFO:bellows.zigbee.device:[0x2789] Discovering endpoints
DEBUG:bellows.ezsp:Send command sendUnicast
DEBUG:bellows.uart:Sending: b'15532157541e153b7d5e944a20aa5592099d4e27a9efcd6502daa2317e'
DEBUG:bellows.uart:Data frame: b'5253a157541e15f355d57e'
DEBUG:bellows.uart:Sending: b'8610be7e'
DEBUG:bellows.ezsp:Application frame 52 (sendUnicast) received
DEBUG:bellows.uart:Data frame: b'6253b1575415153b7e944a20aa5592099c4e27eaefa867d30e7e'
DEBUG:bellows.uart:Sending: b'87009f7e'
DEBUG:bellows.ezsp:Application frame 63 (messageSentHandler) received
ERROR:homeassistant.core:Error doing job: Task exception was never retrieved

This was trying to add a Osram lightify bulb, same error with my Innr light strip.

Any suggestions?

Try with 0.49.1

Wish I could post better news, trying to add an Osram lightify bulb again. Still looks like it’s got some issues I’m afraid:

2017-07-24 19:17:56 INFO (MainThread) [homeassistant.setup] Setting up zha
2017-07-24 19:17:57 DEBUG (MainThread) [bellows.zigbee.appdb] Loading application state from /opt/hass/zigbee.db
2017-07-24 19:17:57 DEBUG (MainThread) [bellows.uart] Sending: b'1ac038bc7e'
2017-07-24 19:17:57 INFO (MainThread) [homeassistant.setup] Setting up updater
2017-07-24 19:17:57 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
2017-07-24 19:17:57 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=updater>
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] RSTACK Version: 2 Reason: RESET_SOFTWARE frame: b'c1020b0a527e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command version
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'004221a850ed2c7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'0142a1a8512805ebd87b7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'8160597e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 0 (version) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Switching to eszp version 5
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command version
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'7d31432157542a1025c57e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'1243a157542a10b049cd89937e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'82503a7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 0 (version) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'22402157547919b059c46e7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'2340a157547915fbd27e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'83401b7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'3341215754797d38b75995c77e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'3441a157547915904d7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'8430fc7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'44462157547938b35902ad7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'4546a157547915640c7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'8520dd7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'5547215754793fb1591e517e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'5647a157547915ce557e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'8610be7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'6644215754790cb059a0a67e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'6744a157547915e1597e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'87009f7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'774521575479144d59d0f77e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'7045a1575479158ac67e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'8070787e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command networkInit
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'004a2157543de6f77e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'014aa557543d153bcb7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'8160597e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 23 (networkInit) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'114ab157543385215a7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'82503a7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 25 (stackStatusHandler) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command getNetworkParameters
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'124b215754027d3ade7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'224ba157540215b349ddd31cba75d2c21b6fd9a5edce678bfd3e9c8e422a7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'83401b7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 40 (getNetworkParameters) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command setPolicy
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'23482157547f10e25bc07e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'3348a157547f156b4d7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'8430fc7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 85 (setPolicy) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command setPolicy
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'34492157547f7d33d36a2c7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'4449a157547f15b3c87e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'8520dd7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 85 (setPolicy) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command setPolicy
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'454e2157547f15b342b77e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'554ea157547f15f4937e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'8610be7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 85 (setPolicy) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command getNodeId
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'564f2157540d0e867e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'664fa157540d15b23ba27e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'87009f7e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 39 (getNodeId) received
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Send command getEui64
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'674c2157540c9a597e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Data frame: b'774ca157540ccf0450944a86885527a57e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.uart] Sending: b'8070787e'
2017-07-24 19:17:58 DEBUG (MainThread) [bellows.ezsp] Application frame 38 (getEui64) received
2017-07-24 19:17:58 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=permit, domain=zha>
2017-07-24 19:17:58 INFO (MainThread) [homeassistant.setup] Setup of domain zha took 2.1 seconds.
2017-07-24 19:17:58 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=zha>
2017-07-24 19:17:58 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 6.65s
2017-07-24 19:17:58 INFO (MainThread) [homeassistant.core] Starting Home Assistant core loop
2017-07-24 19:17:58 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2017-07-24 19:17:58 INFO (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_start[L]>
2017-07-24 19:17:58 INFO (MainThread) [homeassistant.core] Timer:starting
2017-07-24 19:18:14 INFO (MainThread) [homeassistant.components.http] Serving /states to 192.168.100.2 (auth: True)
2017-07-24 19:18:20 DEBUG (MainThread) [bellows.uart] Data frame: b'074cb157546f10b2598b4a25aa5592499cb1d8abedce9874f7476288c96e3da663dade32307e'
2017-07-24 19:18:20 DEBUG (MainThread) [bellows.uart] Sending: b'8160597e'
2017-07-24 19:18:20 DEBUG (MainThread) [bellows.ezsp] Application frame 69 (incomingMessageHandler) received
2017-07-24 19:18:20 DEBUG (MainThread) [bellows.zigbee.application] No such device 0
2017-07-24 19:18:20 WARNING (MainThread) [bellows.zigbee.zdo] Unknown ZDO cluster 0x1f
2017-07-24 19:18:20 WARNING (MainThread) [bellows.zigbee.application] Message on unknown device 0x0000
2017-07-24 19:18:21 DEBUG (MainThread) [bellows.uart] Data frame: b'174cb1575415134ea6944a3aaa5592499c4e2754edce67a57b7e'
2017-07-24 19:18:21 DEBUG (MainThread) [bellows.uart] Sending: b'82503a7e'
2017-07-24 19:18:21 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2017-07-24 19:18:21 WARNING (MainThread) [bellows.zigbee.application] Unexpected message send notification
2017-07-24 19:18:22 INFO (MainThread) [homeassistant.components.http] Serving /states to 192.168.100.2 (auth: True)
2017-07-24 19:18:42 INFO (MainThread) [homeassistant.components.http] Serving /api/websocket to 192.168.100.2 (auth: True)
2017-07-24 19:18:42 INFO (MainThread) [homeassistant.components.http] Serving /api/themes to 192.168.100.2 (auth: True)
2017-07-24 19:18:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=, service_call_id=1978596752-1, service=permit, domain=zha>
2017-07-24 19:18:52 INFO (MainThread) [homeassistant.components.zha] Permitting joins for 60s
2017-07-24 19:18:52 DEBUG (MainThread) [bellows.ezsp] Send command permitJoining
2017-07-24 19:18:52 DEBUG (MainThread) [bellows.uart] Sending: b'724d215754082909007e'
2017-07-24 19:18:52 DEBUG (MainThread) [bellows.uart] Data frame: b'204da157540815567b7e'
2017-07-24 19:18:53 DEBUG (MainThread) [bellows.uart] Sending: b'83401b7e'
2017-07-24 19:18:53 DEBUG (MainThread) [bellows.ezsp] Application frame 34 (permitJoining) received
2017-07-24 19:18:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1978596752-1>
2017-07-24 19:18:54 DEBUG (MainThread) [bellows.uart] Data frame: b'304db157540915b3a3904b10ba5793c18b4e232bab7e'
2017-07-24 19:18:54 DEBUG (MainThread) [bellows.uart] Sending: b'8430fc7e'
2017-07-24 19:18:54 DEBUG (MainThread) [bellows.ezsp] Application frame 35 (childJoinHandler) received
2017-07-24 19:18:55 DEBUG (MainThread) [bellows.uart] Data frame: b'404db157540eefb658a15a27abdd85499d4e27abf4f97e'
2017-07-24 19:18:55 DEBUG (MainThread) [bellows.uart] Sending: b'8520dd7e'
2017-07-24 19:18:55 DEBUG (MainThread) [bellows.ezsp] Application frame 36 (trustCenterJoinHandler) received
2017-07-24 19:18:55 INFO (MainThread) [bellows.zigbee.application] Device 0x04fa (00:17:88:01:02:10:35:01) joined the network
2017-07-24 19:18:55 INFO (MainThread) [bellows.zigbee.device] [0x04fa] Discovering endpoints
2017-07-24 19:18:55 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2017-07-24 19:18:55 DEBUG (MainThread) [bellows.uart] Sending: b'05522157541e15485d944a20aa5592099d4e27aaeccd6671f94f767e'
2017-07-24 19:18:55 DEBUG (MainThread) [bellows.uart] Data frame: b'5152a157541e151a49c67e'
2017-07-24 19:18:55 DEBUG (MainThread) [bellows.uart] Sending: b'8610be7e'
2017-07-24 19:18:55 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2017-07-24 19:19:01 DEBUG (MainThread) [bellows.uart] Data frame: b'6152b157540eaa13a77d8325aa738acd9d4e27ab91c47e'
2017-07-24 19:19:01 DEBUG (MainThread) [bellows.uart] Sending: b'87009f7e'
2017-07-24 19:19:01 DEBUG (MainThread) [bellows.ezsp] Application frame 36 (trustCenterJoinHandler) received
2017-07-24 19:19:01 INFO (MainThread) [bellows.zigbee.application] Device 0xa1bf (84:18:26:00:00:c9:e9:fe) joined the network
2017-07-24 19:19:01 INFO (MainThread) [bellows.zigbee.device] [0xa1bf] Discovering endpoints
2017-07-24 19:19:01 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2017-07-24 19:19:01 DEBUG (MainThread) [bellows.uart] Sending: b'17532157541e150df8944a20aa5592099d4e27a9efcd65345ce2a47e'
2017-07-24 19:19:01 DEBUG (MainThread) [bellows.uart] Data frame: b'7253a157541e151862f87e'
2017-07-24 19:19:01 DEBUG (MainThread) [bellows.uart] Sending: b'8070787e'
2017-07-24 19:19:01 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2017-07-24 19:19:02 DEBUG (MainThread) [bellows.uart] Data frame: b'0253b15754aa57485de54e7e'
2017-07-24 19:19:02 DEBUG (MainThread) [bellows.uart] Sending: b'8160597e'
2017-07-24 19:19:02 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2017-07-24 19:19:06 DEBUG (MainThread) [bellows.uart] Data frame: b'1253b1575415150df8944a20aa5592099d4e2701efa86747047e'
2017-07-24 19:19:06 DEBUG (MainThread) [bellows.uart] Sending: b'82503a7e'
2017-07-24 19:19:06 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2017-07-24 19:19:07 DEBUG (MainThread) [bellows.uart] Data frame: b'2253b15754aa57485d42b27e'
2017-07-24 19:19:07 DEBUG (MainThread) [bellows.uart] Sending: b'83401b7e'
2017-07-24 19:19:07 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.uart] Sending: b'23502157541e150df8944a20aa5592099d4e27a8eecd64345c49dd7e'
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.uart] Data frame: b'3350a157541e15191b587e'
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.uart] Sending: b'8430fc7e'
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.uart] Data frame: b'4350b157540eaa13a77d8325aa738acd9d4e27ab801b7e'
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.uart] Sending: b'8520dd7e'
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.ezsp] Application frame 36 (trustCenterJoinHandler) received
2017-07-24 19:19:08 INFO (MainThread) [bellows.zigbee.application] Device 0xa1bf (84:18:26:00:00:c9:e9:fe) joined the network
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.zigbee.application] Skip initialization for existing device 84:18:26:00:00:c9:e9:fe
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.uart] Data frame: b'5350b157541515485d944a20aa5592099d4e2703eca867b9117e'
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.uart] Sending: b'8610be7e'
2017-07-24 19:19:08 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2017-07-24 19:19:10 DEBUG (MainThread) [bellows.uart] Data frame: b'6350b157540915b3a3904b10ba5793c18b4e23ab847e'
2017-07-24 19:19:10 DEBUG (MainThread) [bellows.uart] Sending: b'87009f7e'
2017-07-24 19:19:10 DEBUG (MainThread) [bellows.ezsp] Application frame 35 (childJoinHandler) received
2017-07-24 19:19:10 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2017-07-24 19:19:10 DEBUG (MainThread) [bellows.uart] Sending: b'37512157541e15485d944a20aa5592099d4e27afe9cd6371f93af17e'
2017-07-24 19:19:10 DEBUG (MainThread) [bellows.uart] Data frame: b'7451a157541e151ff2377e'
2017-07-24 19:19:10 DEBUG (MainThread) [bellows.uart] Sending: b'8070787e'
2017-07-24 19:19:10 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2017-07-24 19:19:11 DEBUG (MainThread) [bellows.uart] Data frame: b'0451b157540eefb658a15a27abdd85499d4e27ab77247e'
2017-07-24 19:19:11 DEBUG (MainThread) [bellows.uart] Sending: b'8160597e'
2017-07-24 19:19:11 DEBUG (MainThread) [bellows.ezsp] Application frame 36 (trustCenterJoinHandler) received
2017-07-24 19:19:11 INFO (MainThread) [bellows.zigbee.application] Device 0x04fa (00:17:88:01:02:10:35:01) joined the network
2017-07-24 19:19:11 DEBUG (MainThread) [bellows.zigbee.application] Skip initialization for existing device 00:17:88:01:02:10:35:01
2017-07-24 19:19:12 DEBUG (MainThread) [bellows.uart] Data frame: b'1451b1575415150df8944a20aa5592099c4e2700eea8672b4a7e'
2017-07-24 19:19:12 DEBUG (MainThread) [bellows.uart] Sending: b'82503a7e'
2017-07-24 19:19:12 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2017-07-24 19:19:14 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2017-07-24 19:19:14 DEBUG (MainThread) [bellows.uart] Sending: b'42562157541e150df8944a20aa5592099d4e27aee8cd62345c143f7e'
2017-07-24 19:19:14 DEBUG (MainThread) [bellows.uart] Data frame: b'2556a157541e151d47867e'
2017-07-24 19:19:14 DEBUG (MainThread) [bellows.uart] Sending: b'83401b7e'
2017-07-24 19:19:14 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2017-07-24 19:19:15 DEBUG (MainThread) [bellows.uart] Data frame: b'3556b157540eaa13a77d8325aa738acd9d4e27abd9297e'
2017-07-24 19:19:15 DEBUG (MainThread) [bellows.uart] Sending: b'8430fc7e'
2017-07-24 19:19:15 DEBUG (MainThread) [bellows.ezsp] Application frame 36 (trustCenterJoinHandler) received
2017-07-24 19:19:15 INFO (MainThread) [bellows.zigbee.application] Device 0xa1bf (84:18:26:00:00:c9:e9:fe) joined the network
2017-07-24 19:19:15 DEBUG (MainThread) [bellows.zigbee.application] Skip initialization for existing device 84:18:26:00:00:c9:e9:fe
2017-07-24 19:19:19 DEBUG (MainThread) [bellows.uart] Data frame: b'4556b1575415150df8944a20aa5592099d4e2704e8a8676ef67e'
2017-07-24 19:19:19 DEBUG (MainThread) [bellows.uart] Sending: b'8520dd7e'
2017-07-24 19:19:19 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2017-07-24 19:19:19 WARNING (MainThread) [bellows.zigbee.device] [0xa1bf] Failed ZDO request during device initialization: Message send failure: EmberStatus.DELIVERY_FAILED
2017-07-24 19:19:22 DEBUG (MainThread) [bellows.uart] Data frame: b'5556b15754aa57485d107c7e'
2017-07-24 19:19:22 DEBUG (MainThread) [bellows.uart] Sending: b'8610be7e'
2017-07-24 19:19:22 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2017-07-24 19:19:23 DEBUG (MainThread) [bellows.uart] Data frame: b'6556b157546f15b259acca25aa1593499cffd8abedce9874e6c66389048138b3ebc6de7f4e2c7b106611d041f68e1855cd89094664607e'
2017-07-24 19:19:23 DEBUG (MainThread) [bellows.uart] Sending: b'87009f7e'
2017-07-24 19:19:23 DEBUG (MainThread) [bellows.ezsp] Application frame 69 (incomingMessageHandler) received
2017-07-24 19:19:23 DEBUG (MainThread) [bellows.zigbee.application] No such device 0
2017-07-24 19:19:23 WARNING (MainThread) [bellows.zigbee.zdo] Unknown ZDO cluster 0x8038
2017-07-24 19:19:23 WARNING (MainThread) [bellows.zigbee.application] Unexpected response TSN=0 command=32824 args=b'\x00\x00\xf8\xff\x07\x14\x00\x0b\x00\x10\xc1\xd3\xbc\xcb\xb3\xc3\xb9\xcd\xb0\xad\xb1\xb9\xbb\xb2\xac\xac'
2017-07-24 19:19:23 WARNING (MainThread) [bellows.zigbee.application] Message on unknown device 0x0000
2017-07-24 19:19:24 DEBUG (MainThread) [bellows.uart] Data frame: b'7556b157541515485d944a20aa5592099d4e2706e9a867bca27e'
2017-07-24 19:19:24 DEBUG (MainThread) [bellows.uart] Sending: b'8070787e'
2017-07-24 19:19:24 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2017-07-24 19:19:26 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2017-07-24 19:19:26 DEBUG (MainThread) [bellows.uart] Sending: b'50572157541e15485d944a20aa5592099d4e27adebcd6171f9b9ed7e'
2017-07-24 19:19:26 DEBUG (MainThread) [bellows.uart] Data frame: b'0657a157541e15008f667e'
2017-07-24 19:19:26 DEBUG (MainThread) [bellows.uart] Sending: b'8160597e'
2017-07-24 19:19:26 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2017-07-24 19:19:29 DEBUG (MainThread) [bellows.uart] Data frame: b'1657b15754aa57485d25327e'
2017-07-24 19:19:29 DEBUG (MainThread) [bellows.uart] Sending: b'82503a7e'
2017-07-24 19:19:29 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2017-07-24 19:19:31 DEBUG (MainThread) [bellows.uart] Data frame: b'2657b157540915b3a3904b10ba5793c18b4e230c257e'
2017-07-24 19:19:31 DEBUG (MainThread) [bellows.uart] Sending: b'83401b7e'
2017-07-24 19:19:31 DEBUG (MainThread) [bellows.ezsp] Application frame 35 (childJoinHandler) received
2017-07-24 19:19:32 DEBUG (MainThread) [bellows.uart] Data frame: b'3657b157540eefb658a15a27abdd85499d4e27ab45b77e'
2017-07-24 19:19:32 DEBUG (MainThread) [bellows.uart] Sending: b'8430fc7e'
2017-07-24 19:19:32 DEBUG (MainThread) [bellows.ezsp] Application frame 36 (trustCenterJoinHandler) received
2017-07-24 19:19:32 INFO (MainThread) [bellows.zigbee.application] Device 0x04fa (00:17:88:01:02:10:35:01) joined the network
2017-07-24 19:19:32 DEBUG (MainThread) [bellows.zigbee.application] Skip initialization for existing device 00:17:88:01:02:10:35:01
2017-07-24 19:19:39 DEBUG (MainThread) [bellows.uart] Data frame: b'4657b157541515485d944a20aa5592099d4e2719eba8678fd47e'
2017-07-24 19:19:39 DEBUG (MainThread) [bellows.uart] Sending: b'8520dd7e'
2017-07-24 19:19:39 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2017-07-24 19:19:39 WARNING (MainThread) [bellows.zigbee.device] [0x04fa] Failed ZDO request during device initialization: Message send failure: EmberStatus.DELIVERY_FAILED
2017-07-24 19:19:53 DEBUG (MainThread) [bellows.uart] Data frame: b'5657b157540915b2a3904b10ba5793c18b4e239ec37e'
2017-07-24 19:19:53 DEBUG (MainThread) [bellows.uart] Sending: b'8610be7e'
2017-07-24 19:19:53 DEBUG (MainThread) [bellows.ezsp] Application frame 35 (childJoinHandler) received

@MindrustUK Any updates on getting this stick working? Thinking of purchasing the same one.

Hi @andrewpc

Unfortunately not, I’m still seeing various errors even with bellows 0.3.5, at present it might be worth looking at alternatives.

Sorry to resurrect this thread, but did you end up getting the SiLabs stick to work? There’s another thread about the ETRX357USB where they had to flash it with EZSP 4 firmware to get it to work.

I’ve been poking at this as the code matures but not had a great amount of success. I think the issues are related mainly to unhanded clusters but I’ll certainly try the EZSP 4 firmware and see what results I get. In the mean time I’ve also been trying http://zigate.fr/ which needs more work in getting the code right but seems the most promising solution I’ve found so far.

You could also try deCONZ with either the RaspBee (Pi GPIO) or Conbee (USB) hardware by Dresden Elektronik. There’s a HASS component written for it that I’m currently testing and the integration is very very good. The only possible downside is that you have to run the deCONZ server alongside HASS (deCONZ talks to the lights/sensors/remotes while HASS talks to deCONZ to get light states etc and send commands). It’s using websockets though so state reporting is instant.

3 Likes

I’ve got the Conbee module as well, I can’t say I’m getting on wonderfully with it. So far the Zigate module with the code here: New custom component : ZiGate (obsolete) has been working best for me.

1 Like

What issues are you experiencing?

@MindrustUK Did you end up trying the EZSP 4 firmware?

1 Like

I can confirm that ZiGate USB stick is working great for me. So far I have tested it with:

  • Xiaomi Temperature Sensor (both Aqara and Mijia)
  • Xiaomi Human Motion Sensor (both Aqara and regular)
  • Xiaomi Aqara Window Door Sensor
  • Xiaomi Smart Wireless Switch(both Aqara and Mijia)
  • OSRAM SMART+ Plug
  • Ikea TRÅDFRI Light Bulb

and I’m very happywith the results.
Here’s full list of what ZiGate is compatible with (in French):

1 Like

Really, you don’t have any trouble at all with either TRÅDFRI or Xiaomi, specifically the two best known companies to incorrectly implement ZigBee Light Link and ZigBee Home Automation protocols respectively?

Yeah, it works quite well for me with HA and Zigate stick.
I think the idea behind Zigate is to take care of these incompatibilities.
One device I tried recently and didn’t work is Xiaomi Water Leak sensor, but I didn’t troubleshoot it.
There are now 2 separate implementations of Zigate plugin for HA:

Unfortunately both didn’t receive commits for months now.

It’s quite tragic that the deCONZ and ZiGate do so much processing upfront.
Would be a lot better to dump everything, so that efforts in classifying devices didn’t have to be duplicated.

Can anyone point me towards instructions on how I might infiltrate a network where a Xiaomi Gateway is the Coordinator using something like a Texas Instruments CC2531 to observe how some stuff is actuated?
Or is deCONZ in Router (not Coordinator) mode a better option?