matterbridge-zigbee2mqtt icon indicating copy to clipboard operation
matterbridge-zigbee2mqtt copied to clipboard

More than one topic

Open Luligu opened this issue 1 year ago • 9 comments

Discussed in https://github.com/Luligu/matterbridge-zigbee2mqtt/discussions/54

Originally posted by Burki24 August 10, 2024 I use two networks of zigbee2mqtt. One has the topic "zigbee2mqtt" and the other uses "z2m-Klima". Do I have to run 2 session of matterbridge-zigbee2mqtt, or will there be a solution, maybe in the future, to put more than one topic inside the matterbridge-zigbee2mqtt?

Thanks Burkhard

Luligu avatar Oct 07 '24 09:10 Luligu

I use four networks of zigbee2mqtt and a solution to listen on more as one topic would be great.

Best regards Joachim

Net-Crawler avatar Apr 24 '25 16:04 Net-Crawler

Hi, what is the use case for this?

What do you need to solve with four z2m networks ?

My concern is how to manage duplicate serial number or device name ....

Luligu avatar May 24 '25 13:05 Luligu

I have a lot of Zigbee components in my house, so I have a coordinator on each floor that's responsible for that specific floor. If one coordinator fails, it doesn't mean the entire house can no longer be controlled. Each coordinator has its own topic (zigbee2mqtt-1 to zigbee2mqtt-4). All Zigbee devices have been renamed and no longer appear twice.

Net-Crawler avatar Jun 01 '25 20:06 Net-Crawler

If you have a robust host (I immagine you do have) you can run multiple instance of matterbridge (4 in your case).

I'm not sure how long does it take to add more topic and if it is possible.

If you want to solve with multiple instance let me know and I will tell you how.

Luligu avatar Jun 05 '25 21:06 Luligu

One more question: you have only one broker for all your 4 setups?

Cause in that way I could add more then one topic I guess

Luligu avatar Jun 07 '25 10:06 Luligu

For my Proxmox-Server, four instances wouldn't be a problem if I could customize the respective topics. I only use one broker.

Thanks for your effort. Joachim

Net-Crawler avatar Jun 07 '25 12:06 Net-Crawler

The idea here is:

  • 4 instances on the same host (your proxmox)
  • each instance must have different frontend port and different matter port so you need to change the command line adding -frontend and -port parameters
  • then in each instance 1 plugin with each topic you have

Very complex in my opinion but...

Furthermore you will have to pair each instance.

Btw let me think about using more topics on the same broker.

Did you see the latest with full support for SSL/TLS ?

Luligu avatar Jun 08 '25 10:06 Luligu

I'll try it out with multiple instances and hope you find a way to use the multi-topic feature. I'll enable SSL/TLS.

Thanks Joachim

Net-Crawler avatar Jun 09 '25 14:06 Net-Crawler

Subscribe to more topics is easy. What I still don't know how to do is mixing devices and groups...

Luligu avatar Jun 10 '25 16:06 Luligu