More than one topic
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
I use four networks of zigbee2mqtt and a solution to listen on more as one topic would be great.
Best regards Joachim
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 ....
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.
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.
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
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
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 ?
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
Subscribe to more topics is easy. What I still don't know how to do is mixing devices and groups...