H
Homarr10mo ago
The Guuul

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
2 Replies
Cakey Bot
Cakey Bot10mo ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Manicraft1001
Manicraft100110mo ago
Hi @The Guuul , please provide all data as requested by @Cakey Bot . Thank you
Want results from more Discord servers?
Add your server