====== Установка (докер) ======
https://www.home-assistant.io/installation/alternative#docker-compose
# Вариант для использования с реверс-прокси
version: '3.7'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
restart: unless-stopped
environment:
- TZ=Europe/Moscow
volumes:
- ./homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
expose:
- "8123"
labels:
- "traefik.enable=true"
- "traefik.http.routers.homeassistant.rule=Host(`10.1.0.235`)"
- "traefik.http.services.homeassistant.loadbalancer.server.port=8123"
После запуска нужно добавить в ''./homeassistant/config/configuration.yaml''
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.0.0/16
- 172.16.0.0/12
- 10.0.0.0/8
:-\ Добавлены все приватные диапазоны, т. к. по имени контейнера он не понимает. Если не добавить этот конфиг, то работать не будет (HTTP error 400) и в ''config/home-assistant.log'' будут ошибки
2023-11-21 14:27:32.666 ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 192.168.80.3, but your HTTP integration is not set-up for reverse proxies
https://community.home-assistant.io/t/home-assistant-400-bad-request-docker-proxy-solution/322163\\
https://www.reddit.com/r/docker/comments/zy1v0q/enabling_home_assistant_remote_access_via_traefik/
====== Интеграция Frigate ======
Установить магазин приложений HACS (Home Assistant Community Store)
docker exec -it hass bash
wget -q -O - https://install.hacs.xyz | bash -
exit
docker restart hass
Зайти в интерфейс, там Settings -> Devices and Services -> Add integration -> hacs.