I have an existing Mosquitto (Docker) server as well as a zigbee2mqtt Docker container — is it possible to connect Gladys to these two Docker containers to make use of Zigbee sensors? Or is it necessary to go through Gladys’ two internal Docker containers (mqtt and zigbee2mqtt)?
I’m trying to give an answer without being an expert at all, but I think it’s possible as long as access to the MQTT and z2m containers is configured correctly: username/password and IP:port
When in doubt, before modifying any config file… let’s wait for confirmation!
The problem is that you’ll have port conflicts if you deploy Gladys’s services in addition to yours when they are on the same machine,
ton docker mqtt = IP + port (1883 certainly) + username + password
ton docker zigbee2mqtt = IP + port (1884 certainly) + username + password
docker Gladys mqtt = IP + port (1883) + username (Gladys by default) + password defined in Gladys
docker Gladys zigbee2mqtt = IP + port (1884) + (Gladys by default) + password in the file « configuration.yaml » which is located in the « var/lib/gladysassistant/zigbee2mqtt/z2m » directory in the « mqtt: » section
So you need to change the ports on your containers, and I think wanting to use other dockers than Gladys’s is not necessarily a good idea unless you tinker with that file but inside your docker so they communicate with Gladys correctly. Gladys needs zigbee2mqtt to integrate the devices but its parameters are not accessible from Gladys, unlike the MQTT part
If they’re on another machine, no problem!
What are you currently running that requires these dockers before installing Gladys?
I was using these two containers with Jeedom, which I had been using previously.
I would have liked to keep them because I know them well, I know how to handle their config files, they are backed up and have been working together correctly for a long time. If it’s a bad idea to keep them, I’ll have to take the plunge and use only Gladys’s containers and
Like I said, put other ports in your config files besides 1883 and 1884 and there’s no problem working with your containers and Gladys’s, and at least you’ve got a stable config for Gladys!
It works very well and I’m already getting all my topics.
However, the zigbee2mqtt install creates a second Docker container for me; it doesn’t use my existing Mosquitto server.
Hello @zedyxer,
On my side, I use Gladys with K8S, so I don’t have access to automatic Docker mounts.
For Zigbee, like you I use a separate container that is connected to Gladys. To get the two to communicate, I modify the connection values directly inside the Docker container.
It’s not the best technique, but I’ve been using it for a long time and I’ve never had a problem. However, you should check the Zigbee code updates from time to time in case there are major changes (once so far)