yllibed / Zigbee2MqttAssistant

GUI for Zigbee2Mqtt running in docker and HASS.IO
450 stars 42 forks source link

[BUG] multiple zigbee2mqttassistant simultaneously same network #334

Closed LuukML closed 3 years ago

LuukML commented 3 years ago

Describe the bug

when configuring multiple zigbee2mqtt gateways, the zigbee2mqtt assistant always links to 1 of the two units.

To Reproduce

Steps to reproduce the behavior: statis ip 1.2.3.4 raspberry pi 3 + docker + z2m + z2m asisstant bastopic mqtt name1 mqttbroker mqtt:1... statis ip 1.2.3.5 raspberry pi 4 + docker + z2m + z2m asisstant bastopic mqtt name2 mqttbroker mqtt:1...

Expected behavior because I have two separate pis, each with their own docker setup and their own ip addresses and bastopics, I expect that when I go to 1.2.3.4:9000 I see the assistant of raspberry pi 3 and when I go to 1.2.3.5:9000 i would see the raspberry pi 4 assistant

Steps I took to try resolve the problem

I searched in the settings to see if I should make the reference somewhere to a specific code of z2m but can't find anything, read docs but I didn't find this setup there.

Screenshots

Installation

Zigbee2MqttAssistant: 0.3.157 (0.3.157+Branch.master.Sha.ea388c3bbc2d43c4c9c62f27bb6764911ba4acc9) Release Zigbee2Mqtt: 1.15.0 Coordinator version: 20190608

Pertinent logs

Additional context

LuukML commented 3 years ago

sorry my bad, did not read properly.

solution was: start the docker and change the bas topic of the mqtt

docker run -p 8880:80 -e "Z2MA_SETTINGSMQTTSERVER=" -e "Z2MA_SETTINGS__MQTTUSERNAME=" -e "Z2MA_SETTINGSMQTTPASSWORD=" --restart unless-stopped carldebilly/zigbee2mqttassistant

in this starting string add -e "Z2MA_SETTINGS__BaseTopic=yourbastopic"