Home Assistant Integration - Entities Unavailable
Specifically, I get this:
WARN There are apps that have missing configuration options: [Home Assistant] please input the correct secrets once again for the concerned app(s), save them, exit edit mode and reload the page.
I have the correct token. And since that didn't work, I generated a new one, and it still doesn't work. Direct copy and paste.
Solution:Jump to solution
Well, that's interesting. Closed all the possible Homarr tabs. Shut down and started the Docker instead of a restart and no errors
37 Replies
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?
Running Homarr as a Docker on Unraid. Home Assistant is on a separate Odroid box.
Since I don't know much about HA, I really won't be able to help unless you provide all the asked information there
Version 0.15.4.
The 192.168.1.221 address is the HA device
This look like a communication issue between the 2 services
could you also show me how you setup HA in homarr?
I've tried taking the path out of the URL, but it keeps adding it back in so I assume Homarr is insiting on it
Huh? No it shouldn't do that, we actually recommend users not to add any path to the internal address
Current:
Saved this, came back, still gone:
And now it took, even after a restart.
That's nice.
Hasn't actually helped though.
This here:
ERROR Failed to fetch from 'http://192.168.1.221:8123/config/dashboard/api': SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON (repeated 3 times)
Makes me think that it's expecting a JSON and that's not what it's landing at.
That URL is good. Just goes to the settings page.
Yes, like I said earlier, there seems to be a communication issue between the services.
The API path should return json objects.
Getting an html page instead means it's not getting what it should.
Usually this happens because the service is simply not accessible
I don't know a more direct way to check for JSON (or not) than that
And when I refresh I get this in my log:
ERROR Failed to fetch from 'http://192.168.1.221:8123/config/dashboard/api': SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON So, yeah, did HA move the JSON maybe?
ERROR Failed to fetch from 'http://192.168.1.221:8123/config/dashboard/api': SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON So, yeah, did HA move the JSON maybe?
Well, you're not hitting the api so you won't get the json, but this is actually a good test to check that the service is available
did you execute the wget from homarr's container?
if not, try the same cmd from homarr's container to confirm they can communicate
Yes, from the container
alright, then maybe the api key is wrong
You've been following the docs here right?
https://homarr.dev/docs/widgets/home-assistant/
I mean, anything is possible, but I've created and copied it a number of times. Unless my clipboard is F'd up or something...
Yes, it's pretty straight forward.
Yeah I figured
If there's an actual "How to add Home Assistant" page somewhere, I don't see it. As far as settting up the integration.
no proxies or anything that could be impeding on the trafic?
Nope. All internal. That's also why I tried the Wget because I didn't have a much better way to test it.
There's curl but even in advanced setup it's the best test
wget and curl
From what I see, it's still using the /config/dashboard path and it really shouldn't
are you sure you've updated the internal address?
Sorry, was done for the day.
If there's somewhere else to check for the internal address, let me know.
Saved and reloaded? (I assume so with the time between) if "/config/dashboard" is still present in the address in your logs, there's a problem
just in case could you send your logs again
Solution
Well, that's interesting. Closed all the possible Homarr tabs. Shut down and started the Docker instead of a restart and no errors
Does this matter? I've seen it in other people's postings, but I thhink this is the first I've seen it in my logs.
Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
Doesn't matter
I guess it's a common issue since the error does say to completely reload. All working then?
Seems like it.
Thanks for the help.
I had Plex go funny a while ago so I may have to ask for help on that one too but that should probably be a separate thread if I can't figure itout
Sure thing. I'll mark this as resolved. Have fun