-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/homeassistant/entities not found #76
Comments
Same problem. If I put http://192.168.0.11:8123 as my base URL in the server node settings I get the following error: If I manually check the URL http://192.168.0.11:8123/homeassistant/entities I get a 404 error. |
|
Oh, @AYapejian I figured out where's the problem, it should look for I think your lib should take in account that option. |
@FezVrasta - OK I get the endpoint comment. Thanks. |
Me too, but I have "fix" :) My configuration: |
I run HomeAssistant & Node-Red on a standard Debian Buster server not a Pi or HASS.IO or a docker image. Just plain old HomeAssistant. I do not have external ports open nor do I have a DDNS name pointing back to my server. Any external interaction I use HomeKit/HomeBridge and thus Apples security. No issues at all. Try to get node-red-contrib-home-assistant and HASS communicating is next to impossible. I have tried so many variations of internal address. In fact HomeBridge is on the same server and has no issues talking to HASS. Everywhere I look (HASS Community & Reddit) this seems to be a reoccurring issue and people are saying use an external address. I just don't want to open ports. Has this been addressed somewhere I am unaware of? Looking forward to getting it going. Cheers |
So what is the fix here, the other thread was a confusing mess and then closed? Just deploy a flow and it will start working? |
I tried deploying a flow when it said that it could not communicate with HomeAssistant. Got stuck in an endless loop of trying to find the HomeAssistant instance. In fact after deleting the flow was still trying to communicate with HomeAssistant and failing. I had to delete all the .json files in .node-red and start it again. This is very frustrating :D |
Has anyone been able to get this to work with home-assistant? Not hassio but home-assistant? Preferably without ssl. What servername was used? Ip Address and port or FQFN? What steps were taken? This is frustrating because I left hassio to have more flexibility and because of problems with ring, environment and directory locations being different between the two. I swear docker is supposed to make deployment and configuration simple amd just work between hosts. But why is it that nothing ever works right and because there is some many different install options and configurations, what fixed something for someone usually doesn’t work for another. This makes tracking down and troubleshooting a problem hella frustrating. Like hassio on pi is different than hassio docker on ubuntu, is different than home assistant docker, is different than home-assistant installed in a python environment. FFS this frustrating as hell. |
blahlt - could you provide a little more detail on how you did this please. I have worked out that the cause of the error is when you change the httpRoot as per below. Iif you change http route then it no longer pulls the data form home assistant - anyone got any ideas? I need to change the http root to be able to reverse proxy with lets encrypt // The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot', So for me it should be pulling the data from http://192.168.0.19:1880/node-red/homeassistant/entities But it is actually trying to pull it from http://192.168.0.19:1880/homeassistant/entities |
On line 47 of server-events-state-changed.html - we can see the url it fetches to show entities, as it does not take into account httpRoot variable I have done a quick and dirty hard code - I am sure there must be a better way of fixing this but I am not a coder :-( as you can see below all I have done is manually put in the additional info for my installation.
|
Fault seems to be here, lines 41 - 48? Switching the '/homeassistant/entities' to 'api/entities' etc, not a dev so not sure |
I could go through and refactor all instances where it doesn't include the httpRoot I'll also see what changing Does when I get home from work tonight. If I submit a PR, it'll be to Spartan-II's fork. Since the author of this repo no longer seems to respond to PRs |
Thanks - could you post here when it is done so we can update to new fork :-) |
Hi, I have the same issue. Is it solved now ? |
same problem, so no |
The issue lies with lines 69-71 in what appears to be some addition for multiple data stores. I commented out those lines in my own docker image of node red and things are now working for me. |
Here's a workaround for those of you who need one for now: |
Hi I'm having the same problem of #52, it worked fine a week ago. I'm on latest Hass and Node-RED and node-red-contrib-home-assistant
The text was updated successfully, but these errors were encountered: