Skip to content

Commit

Permalink
feat(homeassistant): Add Home Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienPoupa committed Jan 19, 2024
1 parent 16c3edd commit 48724e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,15 @@ Set the `HOMEASSISTANT_HOSTNAME`, since it does not support
[running in a subfolder](https://github.com/home-assistant/architecture/issues/156).
Add the necessary DNS records in your domain.

You will need to allow Traefik to access Home Assistant by adding the following in `homeassistant/configuration.yaml`:

```yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.0.0.0/8 # You can put a more precise range instead
```

Set the `HOMEASSISTANT_ACCESS_TOKEN` for homepage support.

## Customization
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ services:
- traefik.http.routers.homeassistant.middlewares=haHeaders
- traefik.http.middlewares.haHeaders.headers.customrequestheaders.Connection=Upgrade
- homepage.group=Apps
- homepage.name=homeassistant
- homepage.icon=homeassistant.png
- homepage.name=Home Assistant
- homepage.icon=home-assistant.png
- homepage.href=https://${HOMEASSISTANT_HOSTNAME}
- homepage.description=Open source home automation that puts local control and privacy first
- homepage.weight=3
Expand Down

0 comments on commit 48724e2

Please sign in to comment.