Hey everyone, I’m excited to share my journey in setting up Appdaemon alongside Home Assistant using Docker-Compose. Initially, I faced some challenges, but it was a great learning experience!
I started by following the official documentation, but since I’m using Nginx-Proxy-Manager as a reverse proxy, things got a bit tricky. My main issue was getting Appdaemon to connect to Home Assistant properly. After some research and trial and error, here’s what worked for me:
- Docker-Compose Configuration: I made sure both Home Assistant and Appdaemon were on the same network. This was crucial for internal communication. Here’s a snippet of my
docker-compose.yamlfile:
yaml
services:
homeassistant:
container_name: homeassistant
image: ghcr.io/home-assistant/home-assistant:stable
networks:
- proxy-manager
environment:
- VIRTUAL_HOST=mydomain.example
- VIRTUAL_PORT=8123
appdaemon:
container_name: appdaemon
image: acockburn/appdaemon:latest
networks:
- proxy-manager
environment:
- HA_URL=“http://homeassistant:8123”
- DASH_URL=“http://homeassistant:5050”
depends_on:
- homeassistant
-
HA_URL and DASH_URL Settings: I initially used the internal IP addresses, but switching to service names (
homeassistant:8123andhomeassistant:5050) made a huge difference. This ensures that Appdaemon can dynamically find Home Assistant without hardcoding IPs. -
Networking: Ensuring both services are on the same Docker network (
proxy-managerin my case) was essential. This allows them to communicate seamlessly. -
Appdaemon.yaml Configuration: I made sure the
httpsection inappdaemon.yamlmatched the URLs set in the Docker environment. This consistency was key to resolving the connection issues.
After making these adjustments, Appdaemon started connecting to Home Assistant without any issues. It’s been a fantastic addition to my setup, enabling me to automate more complex tasks!
If anyone else is struggling with similar issues, I highly recommend checking your network configurations and ensuring service names are correctly referenced. Happy automating! ![]()