Zigbee2mqtt: getting rid of your proprietary Zigbee bridges (Xiaomi, Hue, TRADFRI)

Already found it in amazon but it looks pricey around 42€. At that price tag one can take the fibaro route, which I believe offers a bit more and if I’m not mistaken no live wiring is needed.

Agree - its not cheap.
I contacted sunricher on alibaba to try to order ten (their minimum consignment size) but they told me they will only deal with resellers, not end users.

Tell them you are a reseller :slight_smile:

They wanted the url for my web store.
It would have to be a fairly elaborate hoax…

So I had everything up and running, 3 tradfri motion sensors and 2 xiaomi vibration sensors.
Then the next day my tradfri motion sensors where not working anymore.
If I reset them and add again they work for a short time before they stop working again.

Any ideas what is wrong ?

This is log from re-adding to stop responding.

  zigbee2mqtt:info 5/8/2019, 9:02:07 PM Zigbee: allowing new devices to join.
  zigbee2mqtt:info 5/8/2019, 9:02:07 PM MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.3.1","commit":"unknown","coordinator_firmware":20190223,"log_level":"info","permit_join":true}'
  zigbee2mqtt:warn 5/8/2019, 9:02:21 PM Device with modelID 'undefined' is not supported.
  zigbee2mqtt:warn 5/8/2019, 9:02:21 PM Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html
  zigbee2mqtt:info 5/8/2019, 9:02:23 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":true,"linkquality":118,"battery":47}'
  zigbee2mqtt:warn 5/8/2019, 9:02:26 PM Message without device!
  zigbee2mqtt:info 5/8/2019, 9:02:32 PM Device incoming...
  zigbee2mqtt:info 5/8/2019, 9:02:32 PM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
  zigbee2mqtt:warn 5/8/2019, 9:02:38 PM Device with modelID 'undefined' is not supported.
  zigbee2mqtt:warn 5/8/2019, 9:02:38 PM Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html
  zigbee2mqtt:info 5/8/2019, 9:02:50 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":true,"linkquality":68,"battery":47}'
  zigbee2mqtt:info 5/8/2019, 9:02:54 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":true,"linkquality":15,"battery":47}'
  zigbee2mqtt:warn 5/8/2019, 9:03:14 PM Failed to configure 0x90fd9ffffe871633 (0x90fd9ffffe871633) ('Error: Timed out after 10000 ms') (attempt #3)
  zigbee2mqtt:warn 5/8/2019, 9:03:14 PM This can be ignored if the device is working properly
  zigbee2mqtt:info 5/8/2019, 9:03:48 PM Device incoming...
  zigbee2mqtt:info 5/8/2019, 9:03:48 PM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
  zigbee2mqtt:info 5/8/2019, 9:03:54 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":false,"linkquality":15,"battery":47}'
  zigbee2mqtt:info 5/8/2019, 9:06:55 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":true,"linkquality":13,"battery":47}'
  zigbee2mqtt:info 5/8/2019, 9:07:55 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":false,"linkquality":13,"battery":47}'
  zigbee2mqtt:info 5/8/2019, 9:08:08 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":true,"linkquality":23,"battery":47}'
  zigbee2mqtt:info 5/8/2019, 9:08:24 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":true,"linkquality":26,"battery":47}'
  zigbee2mqtt:info 5/8/2019, 9:08:26 PM Zigbee: disabling joining new devices.
  zigbee2mqtt:info 5/8/2019, 9:08:26 PM MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.3.1","commit":"unknown","coordinator_firmware":20190223,"log_level":"info","permit_join":false}'
  zigbee2mqtt:info 5/8/2019, 9:08:27 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":true,"linkquality":26,"battery":47}'
  zigbee2mqtt:info 5/8/2019, 9:09:27 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":false,"linkquality":26,"battery":47}'
  zigbee2mqtt:info 5/8/2019, 9:09:31 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":true,"linkquality":18,"battery":47}'
  zigbee2mqtt:info 5/8/2019, 9:10:31 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe871633', payload '{"occupancy":false,"linkquality":18,"battery":47}'

I had the same. Try moving it nearer to your Coordinator for a while and see if it stays connected.

If yes you will have to extend your range somehow.
One way tondo this would be to add an antenna to the coordinator.

seems like it might be a range issue yes, because today one of them was connected again without me doing anything. I’ve gotten an extender cable now, maybe it’s too much noise behind the computer. I guess there is poor antenna in the tradfree sensors then, since the Xiaomi sensors work fine.

Anyone know if how close the device you wish to pair to the CC2530/31 is SPECIFICALLY WHEN PAIRING? Last night I was trying to add additional devices to my network. I tried to pair a Mijia PIR sensor and a Mijia Temp sensor and neither were having it. With the temp sensor the only hint I got in the log that ANYTHING was progressing was a “timed out” error message. Otherwise there were no hints that any messages were being received by the CC chip from the new Mijia devices. Obviously I had “allow new devices” set to true. But…I was a couple of floors away from the CC chip. I have paired devices this far away from the CC chip and they work very reliably - but is it a different matter when they’re not yet paired?

Also, anyone know how to pair the Mijia temp sensor? I’ve seen some guides where it says you have to keep pressing the button every second and other guides where it says don’t!

Thanks

Hi all,

I have one ZigBee Router (CC2530 + CC2591) that connected to two ZigBee Coordinators (CC2531) without any issue.

However, the state of both ZigBee Router (binary_sensor.0x00XXXXXXXXXX_router) will only updates in more than 1 minutes or later, as per screenshot below:

It is suppose to connect at this time, but not reflect in real time. This have confused me for a while.

The state of ZigBee Router should reflect to Connect or Disconnected in real time (Around 1 seconds is acceptable).

Could anyone advise on this issue?

GitHub Issue Link: https://github.com/Koenkk/zigbee2mqtt/issues/1525

Thanks.

Has Anyone seen the following error, I’m trying to update the configuration in the zigbee2mqtt add-on.

    19-05-18 18:24:19 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/hassio/hassio/api/security.py", line 144, in token_validation
    return await handler(request)
  File "/usr/src/hassio/hassio/api/utils.py", line 32, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/src/hassio/hassio/api/addons.py", line 291, in security
    addon.save_data()
AttributeError: 'Addon' object has no attribute 'save_data'

Edit: managed to adapt the config through the configurator.

Any luck with these?

The cc2530 does not have a USB port (although it does say there is a uart/serial support).

The user @wixoff has used a cc2530 with the dev kit, see Zigbee2mqtt: getting rid of your proprietary Zigbee bridges (Xiaomi, Hue, TRADFRI)

Hi @zoggels, it works very well. I connected it to my Pi via a USB UART connector and flashed it with 2530 code.

The range is MUCH better.

2 Likes

Yes, my cc2530+cc2591 with the dev motherboard works great. Excellent range, and my network has never been more reliable. I’m currently running on the recent “max stability” firmware and network connectivity is fantastic, like a spiderweb in the Zigbee Map.

Here’s what I have: https://www.waveshare.com/wiki/ZB502

This plus an XCore2530 daughterboard for the Zigbee functionality. And a big 2.4 GHz antenna! All but the antenna fits nicely into a small project enclosure.

Looks great. Out of curiosity, what do you use to map the network?

Not answering for @wixoff, but this thread has details of a method to see your network map in home assistant. Zigbee2mqtt: show the networkmap in home assistant

This looks good, thanks. I am currently fiddling with the ZHA integration. Which is working quite well at the moment. It appears this doesn’t work which ZHA, do you know of any that do?

Is it the case, that the closer you get to the 15 device limit, the more chance you get of a ‘message’ from a node being missed? I could have sworn my setup didn’t miss a beat until I started adding a few more devices and now PIR or door contact status updates sometimes don’t seem to register.

Also if I am to improve reception/range/reliability with a CC2530 router, I must admit I’m confused as to by what mechanism this helps. Is the CC2530 effectively a repeater? How are duplicate messages avoided? Presumably the CC2530 needs to be within range of the CC2531 but other than that all it needs is power? Thanks
Finally, anyone aware of any CC2530 available in Europe?

Yes, and somebody on this board is selling them, pre-flashed with a case and antenna. That’s a bit more expensive than buying them from Gearbest/AliExpress, but far more convenient.

Yes it is (the term here is router), and the same way as with any mesh network - a device will talk to a single node - either a router, or the coordinator itself.

Yes, and yes. Mine’s hanging off an old mobile phone charger plug.

1 Like

That’s me. :wave:

See my ad here:

Ad: Buy a ready2use zigbee2mqtt stick - flashed, antenna mod and printed case - Hardware - Home Assistant Community

1 Like