Here’s my docker-compose.yml
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant:stable
devices:
- /dev/ttyUSB1:/dev/ttyUSB1
- /dev/ttyUSB2:/dev/ttyUSB2
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
ports:
- "8123:8123"
networks:
- traefik_proxy
labels:
- "traefik.enable=true"
- "traefik.tags=frontend"
- "traefik.frontend.passHostHeader=true"
- "traefik.admin.backend=hassio"
- "traefik.admin.frontend.rule=Host:hassio.${DOMAINNAME}"
- "traefik.admin.port=8123"
volumes:
- ${USERDIR}/docker/home-assistant/config:/config
- "/etc/localtime:/etc/localtime:ro"
## Node-Red ####################################################################
node-red:
container_name: node-red
image: nodered/node-red:latest
restart: always
networks:
- traefik_proxy
ports:
- "1880:1880"
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
networks:
- traefik_proxy
labels:
- "traefik.enable=true"
- "traefik.tags=frontend"
- "traefik.frontend.passHostHeader=true"
- "traefik.admin.backend=nodered"
- "traefik.admin.frontend.rule=Host:nodered.${DOMAINNAME}"
- "traefik.admin.port=1880"
in my hass configuration.yaml I have:
http:
api_password: xxxxxxxxxxxx
here’s what any of the home assistant nodes look like within node-red using the node-red-contrib-home-assistant-websocket:
In the Server config shown above I have:
base url: http://10.0.0.189:8123
and API Password using password from http: in configuration.yml
Ive also tried with localhost:8123, 127.0.0.1:8123, etc.