The Guuul
HHomarr
•Created by The Guuul on 3/22/2024 in #💬・get-help
Having trouble getting homar to connect with Home Assistant
Hi,
I have tried to integrateHome Assistant with my homarr page. Homarr is doing well enough to ping Home Assistant, but it can't grab any of the entities/sensor data.
I get this error in the log of home assistent: "2024-03-22 14:59:17.287 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 172.18.0.2 (172.18.0.2). Requested URL: '/api/states/sensor.sun_next_dawn'. (undici)" (That IP is not one I recognise. I suspect it is the IP of the Homarr docker container)
Homar is throwing this error: " ERROR Failed to fetch from 'http://192.168.1.188:8123/api': SyntaxError: Unexpected non-whitespace character after JSON at position 3"
Both Homarr and Home Assistant are run in docker containers on the same machine (Running ubuntu server).
Have I understood correctly that it is the Long-lived access token from Home Assistant that I use as the API key under the integration tab in Homarr. (Version 15.2)
Thanks in advance! 😄
Homar docker compose setup:
version: '3'
services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- /home/usr/homarr/configs:/app/data/configs
- /home/usr/homarr/icons:/app/public/icons
- /home/usr/homarr/data:/data
ports:
- '7575:7575'
Home assistant setup:
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /home/usr/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
4 replies