Repository: NotoriousBDG Add-Ons (Node-RED, HA Bridge, and Gogs)

Hi,

I’m trying to setup the homeassitant server within Node Red and keep getting this error:

Cannot GET /homeassistant/entities

I’ve got DuckDNS setup, so I tried using that the DuckDNS URL for Homeassistant as the URL in the server config.

What am I doing wrong?

THanks,
Kaz

Does your HA Bridge log show any errors? Do you see any errors afrom the addon at http://hassio.local:8123/hassio/addon/27e642c6_ha-bridge?

Personally, I haven’t seen that error, but according to https://www.reddit.com/r/homeassistant/comments/7c5v63/anyone_else_using_nodered_with_home_assistant/, some people got past that by hitting the Deploy button and/or restarting Node-RED.

1 Like

For anyone using the Node-RED addon, @oakbrad has an awesome series of blog posts showing the power of Home Assistant and Node-RED combined.

3 Likes

That worked :smile: Cheers.

1 Like

Thanks for the excellent addon, it’s been a lot of fun using Node-Red. Will definitely keep posting as I have some more complicated flows I’ve been working on.

One of the great things about Node-Red is how easy it is to share automations, so if anyone else has anything would love to see it.

1 Like

@oakbrad How do you remove rouge nodes I added the node-red-node-google and I think it’s messing up my Alexa node

I can see the node_module in that folder but how do you uninstall it? Removing it doesn’t uninstall

I think remove it from that folder and edit the package.json file. I had to remove a rogue node once as well

Copy your flows out as text files, bin the add-on and then re install it, import your flows back in again and you should have a nice clean, error free, set up.

Thanks but I got it fixed by just removing it from the docker itself
I just bashed in and npm uninstalled it.

Hi, im having trouble installing node red. Ive added your repo click the install button , loding icon appears for a second and then the button flashes red. Bellow is the log for the error:

17-12-22 09:32:07 INFO (SyncWorker_6) [hassio.dock.addon] Start build 27e642c6/armhf-addon-nodered:0.1.6
17-12-22 09:32:08 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 410, in start
resp = yield from self._request_handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web.py”, line 325, in _handle
resp = yield from handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py”, line 93, in impl
return (yield from handler(request))
File “/usr/lib/python3.6/site-packages/hassio/api/util.py”, line 33, in wrap_api
answer = await method(api, *args, **kwargs)
File “/usr/lib/python3.6/site-packages/hassio/addons/addon.py”, line 500, in install
if not await self.docker.install(self.last_version):
File “/usr/lib/python3.6/site-packages/hassio/dock/util.py”, line 18, in wrap_api
return await method(api, *args, **kwargs)
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/hassio/dock/addon.py”, line 248, in _install
return self._build(tag)
File “/usr/lib/python3.6/site-packages/hassio/dock/addon.py”, line 261, in _build
image = self.docker.images.build(**build_env.get_docker_args(tag))
File “/usr/lib/python3.6/site-packages/docker/models/images.py”, line 179, in build
raise BuildError(chunk[‘error’])
docker.errors.BuildError: Please provide a source image with from prior to commit

You are running an old version of Docket on your host.

Hi,
thx for the Node-Red Add-On.
I tested this a few days with alexa local and its pretty amazing and worked well.
Now I want make a simple automation but I cant get the Home Assistant Input Nodes to work.

e.g. The events: state node shows always as “disconnected” in the Flow

The log show this

22 Dec 16:36:50 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error","status":504}

So its seems like the hassio API connection does not work. But I’m using the same Server settings with the output node (Stehlampe) and I works fine and the EntityID Pickers works well to.

Weihnachtsstern An Node looks like this

I have no idea why the input Nodes are not working!

PLEASE HELP

I had the same issue using the Hassio API proxy. It works fine for me with a base URL of http://localhost:8123.

image

http://localhost:8123 is not working, too. Same error

I’m using http://localhost:8123 like @NotoriousBDG and it instantly connects when you hit deploy.

It should be the same as the URL you use to access Home Assistant.

Mine is http://localhost:8123 as well.

Try checking the addon logs at http://hassio.local:8123/hassio/addon/27e642c6_nodered for errors.

Thats strange. For me only works http://hassio/homeassistant but only for output.

@NotoriousBDG

the log only shows this all the time

2 Dec 18:51:23 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:25 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:27 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:29 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:31 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:33 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:36 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:38 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:40 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:42 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:44 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:46 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}
22 Dec 18:51:48 - [error] [server-state-changed:weihnachtstern an] Connection error occured with the home-assistant server: {"type":"error"}

Do you use SSL?

Yes, I use SSL, but with Nginx. In my system, port 8123 does not have SSL enabled, while port 443 does. Node-RED is pointing to the non-SSL port. I’ve also verified that connecting to the hostname that matches the cert also works.

If you have SSL enabled on port 8123, you need to use the hostname that matches your cert. Your router needs to support NAT loopback or you need to have DNS so it returns your internal IP for the hostname in your SSL cert.

If you can’t get NAT loopback or split DNS working, you’ll likely need to use a reverse proxy like Nginx to provide SSL and disable SSL within Home Assistant.