Node red with HA core?

I have plain HA without docker, without hassio, on an ubuntu PC.
How can I connect it with node-red?

Install node-red then follow the instructions installing and configuring this:

https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/#home-assistant-add-on

The documentation is very good

Oh ok, so it is this?

npm install node-red-contrib-home-assistant-websocket

Yes, that is it.

Now I did “sudo snap install node-red” so it does not install all the dependencies on the machine. Then I opened the URL http://localhost:1880 to get node-red.
In the node red settings I installed node-red-contrib-home-assistant-websocket.
Then you need this custom component: GitHub - zachowj/hass-node-red: Companion Component for node-red-contrib-home-assistant-websocket to help integrate Node-RED with Home Assistant Core

1.Install Home Assistant Core and Node-Red in a full raspbian environment.

1.1 Install Home Assistant Core
1.2Install node-red
sudo snap install node-red

2.set Node-Red to communicate with Home Assistant Core

2.1 Connecting Home-Assistant in Node-red

2.1.1 Install node-red-contrib-home-assistant-websocket.In the node red settings

2.1.2 Install Node-RED custom integration in Home Assistant

2.1.1 is a bit unclear, it didn’t find “Home Assistant” after doing just

npm install node-red-contrib-home-assistant-websocket

and restarting node-red

What i did need was

Manage pallette → Install tab → search “node-red-contrib-home-assistant-websocket” → Install