-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Cannot GET /homeassistant/entities #2
Comments
I am not all that familiar with docker so I'm having to do a little research. I did run several tests so far and this is what I have come up. I spun up two docker containers one running home assistant 0.78.1 and the other node-red 0.19.4. Also ran another instance of home assistant in a python virtual environment and node-red, same versions as above. node-red => HA venv : connection good for both websocket and rest api The websocket connection is getting refused by the HA Docker when coming from node-red running in another Docker container. Still looking into this, no solution as of yet. |
Ok I think I tracked this down to an error in nodejs. They seem to have fixed it in v8.11.2 and v10.10.0. Please try one of those versions of node and let me know if that fixes your issue. I've tested it on both of those and it fixed my issue using node-red running in docker trying to connect to home-assistant running in docker. Edit: |
I am having the same/similar issue. I am running nodered/node-red-docker:v8 which has node v8.12.0. Whenever I double-click on a node, this message pops up: After looking at the network console, I believe the source of the issue is that it is not honoring the |
I wanted to have a look at my NR again, but "suddenly" the nodes have disappeared. They are still marked as installed, but are not shown in the palette. Even the two that I placed already are gone |
* not going to assume that httpAdminRoot is defined /issues/2
@danmandle try version 0.0.3 and let me know if that fixes the undefined in the URL string. @chronm Not sure if I am following exactly what your latest issue is. Did you make sure you Deployed after you played your nodes? |
When I click on the hamburger-menu and then "manage palette" it shows the ha-plugin with version 0.0.2, but the nodes are not shown in the sidebar of the dashboard. |
@zachowj 0.0.3 fixed my issues. Thanks! Updated the NPM package manually. Not sure if/what needs to be done to get it into the node-red repo. |
@chronm Can you try removing node-red-contrib-home-assistant-websocket and reinstalling it and see if that brings back the nodes? |
I’ve had success with version 0.0.7 on hassio. Don’t use http://hassio/homeassistant for the Base URL. Use either localhost, 127.0.0.1, or better, your server’s IP, and port 8123. |
I've added support and better instructions for hass.io in version 0.1.0. You can now use the hass.io proxy address http://hassio/homeassistant and the node will automatically fill in the access token with the HASSIO_TOKEN from the proxy when you deploy. |
If you use http://hassio/homeassistant on the Base URL, do you have to check “Use Legacy API Password”? Also, on Hass.io, what’s the difference between adding it on the config vs installing it via Manage Template? Thanks. |
I think I tested it unchecked but can go back in and make sure. I am not a normal hass.io user but in my testing, I was unable to uninstall node-red-contrib-home-assistant via the palette. But installing node-red-contrib-home-assistant-websocket via the config I believe it is the same either way. |
Ok. FYI, I’ve been installing it via Manage Palette, updating, and uninstalling, and it all works. It makes it easy actually. Thanks. |
I am also getting "Cannot GET /undefinedhomeassistant/services" Things seem to be working ok, but this still pops up when I edit a node |
I only get that the first time. Make sure you use the IP on the base url. Usually, after you deploy, you'll see it say 'connected.' |
as I mentioned, its working as intended. Able to communicate with Home
Assistant.
Still getting the error though
…On Thu, Oct 18, 2018 at 2:57 PM rsuplido ***@***.***> wrote:
I only get that the first time. Make sure you use the IP on the base url.
Usually, after you deploy, you'll see it say 'connected.'
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHmsAc9bW1ZjB_Zci4UzCfaC-RvVf_PJks5umIjigaJpZM4Wzn5h>
.
--
-----------------------
Arno Nel <[email protected]>
-----------------------
|
which version are you running? when do you get it? after HA restart? do you get it after node-red restart? what does the node-red log say? and what do you use on your base URL -- localhost, IP, dynamic DNS? |
Also, on hamburger icon->configuration nodes, under 'On all flows', do you see multiple items under 'server'? I bet you have configured a node previously that has some old config or not working. |
i just tried this on a clean docker installation using the of node version 8, but i get the node-red: 0.19.5 Tried the following but all of them yield the same error. |
After deploying is the node showing as connected? |
i tied without the trailing slash same error. |
What is the connection status of the node? Should show a |
Deploying solved the problem! |
My Node-Red does not autopopulate entities either, however, it doesn't give an error. The JSON response is only empty object and arrays. |
Related issue #63 |
Describe the bug
A clear and concise description of what the bug is.
When I place a nodetype that requires to fetch entities from HA it gives this error message: "Cannot GET /homeassistant/entities"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Show all entities from HA
Screenshots
If applicable, add screenshots to help explain your problem.
Example Flow
If applicable, add an example of exported json of a flow exhibiting the issue to aid in reproduction.
Environment (please complete the following information):
Other (please complete the following information):
Additional context
I am running NR and HA in docker.
In NR I set the baseurl for HA to "http://homeassistant:8123"
The text was updated successfully, but these errors were encountered: