Hardware: FriendlyElec Nanopi R5S with 1TB SSD installed locally. Sonoff ZBDongle-P with latest formware, used to work perfectly in HAOS setup
Software: FriendlyWRT/OpenWRT with Docker CE
First step: Mount, partition, format the NVME and map it in etc/fstab as media/nvme. SSD works fine.
Second step: Install HA Container, works like a charm. Sonoff stick shows up, all fine. Just I need Zigbee2MQTT for several things.
Third step: Installing Zigbee2MQTT as separate containers, so my expectation were 3 containers: HA, Z2M and Mosquitto.
First I set my Docker dir to the SSD, i.e. to media/nvme
But hey: It killed HA! o.k., lets handle HA later, check if Zigbee2MQTT is running, but http://localhost:8080/ is giving me
ERR_CONNECTION_REFUSED
What did I miss? Does HA need to run in order to get Z2M running? Do I have to build bridged between the Docker containers? Expose Z2M? Would it be better to install through the Docker-Install-GUI?
Thanks for the advice and sorry for not posting as text - I really tried but from the console in web interface I was really not able to copy the text. Will find a way next time. Now I will look how to tell Z2M to use port 1883 for MQTT.
Many thanks so far - my mistake was to not enter a name in the docker-compose-file, so maybe it was generated automatically. So I renamed the mosquitto container “mqtt” (first in the GUI and then also in the docker-compose-file to make sure) and restarted zigbee2mqtt - no success.
Maybe I tried to connect to the zigbee2mqtt GUI wrong - I tried localhost:8080 which worked (as localhost:8123 of course) with the HA container. So I did not have to do any port forwarding or so to access the container. Do I have to for Zigbee2MQTT?
My feeling is that zigbee2mqtt is up and running but I cannot reach it and wonder what is my mistake.
Do I have to
Many thanks for the hints. So yes in my docker-compose-file there was no container name so maybe docker(compose) just named it - so I entered it in the File and now it is names mqtt. Then I restarted everything but no success.
Do I contact it the right way by just accessing
localhost:8080
This is what worked with HA (of course port 8123) but maybe Zigbee2MQTT is up and running already and I simply don’t contact it the right way. So so I have to do some port forwarding that HA Docker does automatically? Is there another way of contacting it except “localhost”?
The reason I am asking is the error message
ERR_CONNECTION_REFUSED
that I get. No timeout or so.
Or does it require HA in any way? Because right not HA is not running (running out of memory for unclear reasons).
To summarize what errors I made, what I did and how to avoid it next time:
Zigbee2MQTT could not find MQTT. Why? In the docker-compose.yml I did not have
container_name: mqtt
Once I accidently did try to login to localhost. This was stupid of course as this tries to login to my laptop and not my HA computer. When using http://friendlywrt:8080/ (friendlywrt is the local name on my R5S) it did login to the correct machine
Zigbee2MQTT did not know which port to put the frontend on. So adding
And as usual, it was pure misconfiguration from my side, sorry I am a docker noob but learning.
What helped me was of course the comments here but also an example from a friend who runs it successfully. This is what I combined with the examples I colied from installation guides.