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

I understand that there is a minimum limit of 10 characters for a post on this forum so a “yes” or a “no” is too short to post but you sure spent an awful lot more characters than that in multiple posts blowing me a load of crap about asking a question to which the answer was “obvious” without actually even answering the original question.

Unless you don’t actually know the answer yourself…:thinking:

:wink:

2 Likes

Stop it please.

1 Like

I’ve added more routers (2x cc2531 + 2x xiaomi plugs), yet there is no mesh going on in my network.

digraph G { node[shape=record]; “0x00124b0014d9dfdf” [label=“{0x00124b0014d9dfdf|Coordinator|No model information available|online}”]; “0x00158d000232ac3f” [label=“{0x00158d000232ac3f|EndDevice|Xiaomi Aqara door & window contact sensor (MCCGQ11LM)|online}”]; “0x00158d000232ac3f” -> “0x00124b0014d9dfdf” [label=“68”] “0x00158d0001e52dee” [label=“{0x00158d0001e52dee|EndDevice|Xiaomi Aqara human body movement and illuminance sensor (RTCGQ11LM)|online}”]; “0x00158d0001e52dee” -> “0x00124b0014d9dfdf” [label=“62”] “0x00124b0012023169” [label=“{0x00124b0012023169|Router|Custom devices (DiY) CC2530 router (CC2530.ROUTER)|online}”]; “0x00124b0012023169” -> “0x00124b0014d9dfdf” [label=“10”] “0x00158d0002236ae8” [label=“{0x00158d0002236ae8|EndDevice|Xiaomi Aqara human body movement and illuminance sensor (RTCGQ11LM)|online}”]; “0x00158d0002236ae8” -> “0x00124b0014d9dfdf” [label=“51”] “0x00158d0001dc7526” [label=“{0x00158d0001dc7526|EndDevice|Xiaomi MiJia human body movement sensor (RTCGQ01LM)|online}”]; “0x00158d0001dc7526” -> “0x00124b0014d9dfdf” [label=“95”] “0x00158d0001d90a59” [label=“{0x00158d0001d90a59|EndDevice|Xiaomi MiJia human body movement sensor (RTCGQ01LM)|online}”]; “0x00158d0001d90a59” -> “0x00124b0014d9dfdf” [label=“55”] “0x00124b0012013c6e” [label=“{0x00124b0012013c6e|Router|Custom devices (DiY) CC2530 router (CC2530.ROUTER)|online}”]; “0x00158d0001f9e2e2” [label=“{0x00158d0001f9e2e2|EndDevice|Xiaomi MiJia door & window contact sensor (MCCGQ01LM)|online}”]; “0x00158d0001f9e2e2” -> “0x00124b0014d9dfdf” [label=“79”] “0x00158d0001a94c35” [label=“{0x00158d0001a94c35|EndDevice|Xiaomi MiJia door & window contact sensor (MCCGQ01LM)|online}”]; “0x00158d0001a94c35” -> “0x00124b0014d9dfdf” [label=“61”] “0x00158d0001b8624f” [label=“{0x00158d0001b8624f|EndDevice|Xiaomi MiJia door & window contact sensor (MCCGQ01LM)|online}”]; “0x00158d0001b8624f” -> “0x00124b0014d9dfdf” [label=“73”] “0x00158d00019fd731” [label=“{0x00158d00019fd731|EndDevice|Xiaomi MiJia door & window contact sensor (MCCGQ01LM)|online}”]; “0x00158d0001f38b1f” [label=“{0x00158d0001f38b1f|EndDevice|Xiaomi MiJia door & window contact sensor (MCCGQ01LM)|online}”]; “0x00158d0001e57659” [label=“{0x00158d0001e57659|EndDevice|Xiaomi Aqara human body movement and illuminance sensor (RTCGQ11LM)|online}”]; “0x00158d0001fd55d5” [label=“{0x00158d0001fd55d5|EndDevice|Xiaomi Aqara door & window contact sensor (MCCGQ11LM)|online}”]; “0x00158d0001fa9ac2” [label=“{0x00158d0001fa9ac2|EndDevice|Xiaomi Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)|online}”]; “0x00158d0001f52edb” [label=“{0x00158d0001f52edb|EndDevice|Xiaomi Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)|online}”]; “0x00158d0001f52edb” -> “0x00124b0014d9dfdf” [label=“63”] “0x00158d0001a4b1e4” [label=“{0x00158d0001a4b1e4|Router|Xiaomi Mi power plug ZigBee (ZNCZ02LM)|online}”]; “0x00158d0001a4b1e4” -> “0x00124b0014d9dfdf” [label=“55”] “0x00158d0001a65059” [label=“{0x00158d0001a65059|Router|Xiaomi Mi power plug ZigBee (ZNCZ02LM)|online}”]; “0x00158d0001a65059” -> “0x00124b0014d9dfdf” [label=“91”] }

link to the graph

everything is working fine, but a lot of the devices don’t connect to anything on the graph.

It’s more your own implementation of mqtt and how you’re triggering the devices. Often it just needs a second set of eyes to spot something that hours of staring at your screen misses.

I’m using hassio 0.83.3 with the mosquitto and zigbee2mqtt addon. Both up to date.
This is the mosquitto config:

{
  "logins": [
    {
      "username": "xxx",
      "password": "xxxx!"
    }
  ],
  "anonymous": true,
  "customize": {
    "active": false,
    "folder": "mosquitto"
  },
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "plain": true,
  "plain_websockets": false,
  "ssl": false,
  "ssl_websockets": false
}

This is the config for the zigbee2mqtt addon:

{
  "data_path": "/share/zigbee2mqtt",
  "homeassistant": true,
  "permit_join": false,
  "mqtt_base_topic": "zigbee2mqtt",
  "mqtt_server": "mqtt://homeassistant",
  "serial_port": "/dev/ttyACM0",
  "mqtt_user": "xxx",
  "mqtt_pass": "xxx"
}

This is the yaml code for the lamp:

- platform: "mqtt_json"
  state_topic: "zigbee2mqtt/0x7cb03eaa00ac34e2"
  availability_topic: "zigbee2mqtt/bridge/state"
  brightness: true
  command_topic: "zigbee2mqtt/0x7cb03eaa00ac34e2/set"
  name: Kitchen

I’m trying change the state with an dash button using the toggle event.
But it doesnt matter if i toggle the light or use the turn_off eventmanually in the web ui.
The command is send twice and after a few seconds the light turns on again.

Should i reset the blub and pair it again? Do i need to delete it before somewhere?

How would you connect an SMA connector to the CC2531 device?

I found some variations:

…where the center pin of the connector is connected with one of the trace on the board. The other pin on the connector (2 pin outside) is not necessary to connect?

Is my following idea wrong?

%24_32

I would cut the trace at the red line, and connect sma connector with two small wires as on the picture.

I’m in the same situation as you.

I have a cc2531 as coordinator and 4 routers (cc2530, two OSRAM Smart plugs and a Ikea plug). All of them are detected as routers but they don’t create a mesh or at least they don’t extend my zigbee range.

I’ve deleted all from the database added them again and the result is always the same. This is getting frustrating.

Do all of your devices connect on the map some of my devices don’t have arrows connecting them to anything else on the map. These devices work fine so I think maybe the map publish command doesn’t show the mesh correctly rather than there being a problem with the mesh.

I haven’t set up my zigbee2mqtt yet, but can anyone tell me if a xiaomi smart plug works as a router in a Z2M environment? From the pictures on the Z2M wiki I think it is a ZNCZ02LM.

The Xiaomi zigbee wall plug is detected as a router.

1 Like

Hey,

How did you pair your OSRAM light strips to Zigbee2mqtt? I don’t see any buttons on the device to initiate the pair.

It should say how to do it in the instructions that came with but Osram stuff normally goes into straight into pairing mode the first time you turn it on. Repairing involves turn them on and off a number of times at set intervals.

Not aware of anything with a plug attached that doesn’t work as a router, been discussed a few times above.

hmm. maybe I bought the wrong one?

I don’t see it here https://github.com/Koenkk/zigbee2mqtt/wiki/Supported-devices

Could you please advise what type of card are you using in Lovelace to show the map.png I used type: picture it shows map, but never updating the new map…
Thank you!

  - type: picture
    image: /local/map.png

Are you sure the daemon is doing his job?
Sometimes it hangs, and a restart is needed…

Mesh is happening but map function is buggy and doesn’t show it.

How do you guys handle bulbs losing power?

My hue lights if they lose power and then turn back on when its back (someone has manually hit the switches), home assistant doesnt get notified that the light is now powered on and the states are all wrong, previous when using the hue hub it seemed to poll every so often to see if the light was on

Interesting. Are you 100% confident the map function doesn’t work properly? I’ve pulled a lot of hair out trying to get routers to work based upon that map function.