My system is fully containerized. The issue I have is that my OZWD times out when connecting to the MQTT broker and restarts. My MQTT is working insofar as the test that runss in HA (under MQTT Configure) shows that it can publish and receive the message. But no matter how much I Google I cannot figure out how to get OZWD to talk to it. I do see in the MQTT log that a client is connecting but OZWD times out waiting for MQTT to be available. I am at my wits end and would appreciate any help!
My docker-compose.yaml is as follows:
homeassistant:
container_name: home-assistant
image: homeassistant/raspberrypi3-homeassistant:stable
ports:
- "8123:8123"
volumes:
- /home/pi/homeassistant:/config
environment:
- TZ=America/New_York
restart: always
network_mode: host
depends_on:
- mosquitto
- ozwd
mosquitto:
container_name: "mosquitto"
image: eclipse-mosquitto:latest
volumes:
- /home/pi/mosquitto/data:/mosquitto/data
- /home/pi/mosquitto/log:/mosquitto/log
- /home/pi/mosquitto.conf:/mosquitto/config/mosquitto.conf
network_mode: host
ports:
- "1883:1883"
- "9001:9001"
restart: always
ozwd:
image: openzwave/ozwdaemon:allinone-latest
container_name: "ozwd"
security_opt:
- seccomp:unconfined
devices:
- "/dev/ttyACM0"
volumes:
- /home/pi/ozw:/opt/ozw/config
environment:
MQTT_SERVER: localhost
# MQTT_USERNAME: ""
# MQTT_PASSWORD: ""
USB_PATH: /dev/ttyACM0
ports:
- "1983:1983"
- "5901:5901"
- "7800:7800"
# OZW_NETWORK_KEY: "0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00"
restart: always
depends_on:
- mosquitto
My mosquitto.conf file is as follows:
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
allow_anonymous true
What am I missing that would allows OZWD to connect to MQTT? Thanks!
Incidentally, if I should have posted this elsewhere or if there is someplace else I should have looked, please let me know. Thanks.