Created
February 28, 2021 02:45
-
-
Save robdaemon/23a70736a6b67059e812067ce80a3afd to your computer and use it in GitHub Desktop.
HomeAssistant + zwavejs2mqtt + Mosquitto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
homeassistant: | |
container_name: homeassistant | |
image: homeassistant/home-assistant:stable | |
volumes: | |
- /home/rroland/homeassistant/config:/config | |
- /etc/localtime:/etc/localtime:ro | |
restart: unless-stopped | |
networks: | |
- ha-internal | |
links: | |
- zwavejs2mqtt | |
- mosquitto | |
ports: | |
- '8123:8123' # port for web interface | |
zwavejs2mqtt: | |
container_name: zwavejs2mqtt | |
image: zwavejs/zwavejs2mqtt:latest | |
restart: always | |
tty: true | |
stop_signal: SIGINT | |
environment: | |
- SESSION_SECRET=setthistosomethingorelse | |
- TZ=America/Los_Angeles # uncomment and edit to match you timezone if you want logs time and dates to match your timezone instead of UTC. | |
networks: | |
- ha-internal | |
links: | |
- mosquitto | |
devices: | |
- /dev/ttyUSB0:/dev/ttyUSB0 | |
- /dev/ttyUSB1:/dev/ttyUSB1 | |
volumes: | |
- /home/rroland/homeassistant/zwavejs/store:/usr/src/app/store | |
ports: | |
- '8091:8091' # port for web interface | |
- '3000:3000' # port for zwave-js websocket server | |
mosquitto: | |
container_name: broker | |
image: eclipse-mosquitto:2 | |
restart: always | |
networks: | |
- ha-internal | |
volumes: | |
- /home/rroland/homeassistant/broker/config/mosquitto.conf:/mosquitto/config/mosquitto.conf | |
- /home/rroland/homeassistant/broker/data:/mosquitto/data | |
- /home/rroland/homeassistant/broker/log:/mosquitto/log | |
ports: | |
- '9001:9001' # port for web interface | |
networks: | |
ha-internal: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place your local configuration in /mqtt/config/conf.d/ | |
persistence true | |
persistence_location /mosquitto/data/ | |
log_dest stdout | |
# include_dir /mosquitto/config/conf.d | |
socket_domain ipv4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment