[SOLVED] Hassio and Node-RED in different Docker containers, error "Cannot GET homeassistant/entities"

He’s using docker, and hassio, but not an add-on. His IP address would be that of the host machine, and not localhost or 127.0.0.1 since inside the docker container, it would be referring to itself.

Thanks for clarifying. Therefore the setting he has on http://localhost:8123 should be changed to http://192.168.1.100:8123 (or whatever the machines lan ip address is).

Am I correct?

Yes, but he isn’t using localhost according to what I’ve read.

Well that is what his config above says.

That’s not his config. Those are the default markers in the node config. “suggested values” of the text boxes

I didn’t ask, but which node-red docker image are you using? You need to make sure it’s node-V8

1 Like

Yes, the errors are from not using v8 version of the docker image.

1 Like

Here is my config.

My Ubuntu server has IP addr 192.168.1.126 and I thought that using this address within Node-RED to refer to the Hassio container was right.

My telnet test is with this address.

I tried also to use the internal container address starting with 172.xxx.xxx.xxx, but no success.

When I save the HA server info in the node, I get

51

The I make a Deploy, but when I go back to the HA server config is empty.

Have you started using the node v8 docker yet. This worked for me

docker run -it -p 1880:1880 --name mynodered nodered/node-red-docker:v8

How can I check?

I’ve followed this guide.
This morning I created a new fresh node-red container, stopping the other one, to have a clear environment.

Exactly what command did you use?

The command I gave is

docker run -it -p 1880:1880 --name mynodered nodered/node-red-docker

The first time it downloaded the image, now since I just stopped the other node-red container and not deleted, it just run the new one.

You don’t need to post a pic of the instructions, I have access to the internet too.

You need v8, I posted the commandline in my last post (as an edit, you may have missed it).

Thanks @nickrout
It’s working now!

:pray:

Well thank you for asking the questions, I now have node-red running again. I had it in my previous install, but my rpi shat itself and since switching to a nuc I hadn’t bothered to set it up again. This thread prompted me to do so.

1 Like

@woody4165 can you show your configuration? HA in Docker ?
I tried host:

  • localhost
  • 127.0.0.1
  • 192.168.1.10 (host addr)
    without any results

I have installed Hassio in docker on Ubuntu server.

I have installed Nodered just as posted here.

Just to let you know that now I have moved back to Nodered as Hassio addon because I had issue with correct timezone and I haven’t found a way to fix it.

How you install hassio in docker ?

I have followed this guide.

Literally right there in the installation page.