Hey all,
I really am quite a newbie with this stuff. I’m trying to learn / follow guides / get lost with chatGPT help - but I’ve really hit a roadblock.
I’ve got a 2018 mac mini I’ve installed ubuntu 24.04 server onto, and got home assistant up and running using docker compose. Then installed Mosquitto just fine (I think) and for fun got portainer up and running but haven’t really used it yet.
The fun and games came when trying to get Zigbee2MQTT up and running.
I’ve got a SLZB-06 up and running. I can connect to it - although it is not allowing me to update it to use a static IP address. For the moment, thats cool. I can cope with it being on DHCP.
Now to bring it all together.
I have both my zigbee2mqtt config yaml and docker compose yaml setup as best I can. I’ll paste it all below.
Some things appear working, others do not. I cannot get to the frontend (tried a variety of machines), yet can’t see specific things in the logs which indicate why.
I have changed port from 8080 to 8081 after I couldn’t connect to the server via
“curl http://localhost:8080”
Nor
“curl http://192.168.1.90:8080”
(where .90 is my ubuntu box I’m configuring)
So something is seriously odd. Home assistant and portainer front ends both work fine.
The current config files are as follows.
Zigbee2MQTT:
homeassistant:
enabled: true
mqtt:
base_topic: zigbee2mqtt
server: mqtt://127.0.0.1:1883
user: hass
password: [hidden]
serial:
port: tcp://192.168.1.135:6638
adapter: zstack
advanced:
log_level: debug
version: 4
frontend:
enable: true
port: 8081
host: 0.0.0.0
And to my docker yaml
services:
portainer:
container_name: portainer
image: portainer/portainer-ce
restart: always
ports:
- "9000:9000/tcp"
environment:
- TZ=Australia/Sydney
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/klangadmin/dockertest/portainer:/data
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /home/klangadmin/dockertest/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
volumes:
- /home/klangadmin/dockertest/mosquitto:/mosquitto
- /home/klangadmin/dockertest/mosquitto/data:/mosquitto/data
- /home/klangadmin/dockertest/mosquitto/log:/mosquitto/log
ports:
- 1883:1883
- 9001:9001
zigbee2mqtt:
network_mode: host
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt
restart: unless-stopped
privileged: true
volumes:
- /home/klangadmin/dockertest/zigbee2mqtt/data:/app/data
- /run/udev:/run/udev:ro
ports:
- 8081:8081
environment:
- TZ=Australia/Sydney
I really don’t know which way to turn right now.
I’ve tried running in host mode (as its setup now) - but with no difference.
I’m not really sure what do try / where to go next. I’m at the edge of my abilities with all this, but I do know theres a bunch I don’t know that I could have easily overlooked. I just don’t know where to even look right now.
Any help would be most appreciated.