2024年12月4日星期三 上午1:15:51

2023.05-Install Node Red on debian 11 on rpi p3b+

1 年 前
#20460 引用
Node-Red and Home Assistant Core

Node-Red is a separate project.

Quick Start

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



Docs:http://nodered.org/docs/hardware/raspberrypi.html

https://nodered.org/docs/getting-started/local


To find more nodes and example flows - go to http://flows.nodered.org
0
1 年 前
#20461 引用
I have HA Core installed and also Node Red, both working.

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


Basics: Connecting Home-Assistant to Node-red
https://www.thesmarthomebook.com/2021/04/14/basics-connecting-home-assistant-to-node-red/

I would like to know if I've correctly set Node-Red to communicate with Home Assistant Core.

I've installed Home Assistant Core and Node-Red in a full raspbian environment.

First of all don’t use node-red-contrib-home-assistant as that is the old one, instead use node-red-contrib-home-assistant-websocket. That is the palette the add-on uses now and it is much better as it uses the websockets api.
0
1 年 前
#20462 引用
Install node-red then follow the instructions installing and configuring this:


https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/
0
1 年 前
#20463 引用
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 21 to get node-red.
In the node red settings I installed node-red-contrib-home-assistant-websocket.
Then you need this custom component: https://github.com/zachowj/hass-node-red 318
0
1 年 前
#20464 引用
202305

debian 11 on rpi p3b+


Step 1.Install node-red(Installing with snap)

sudo snap install node-red



output


root@raspberrypi:~# sudo snap install node-red
node-red 3.0.2 from Node-RED-Team (noderedteam✓) installed


19 Oct 00:42:14 - [info] Node-RED version: v2.2.3
19 Oct 00:42:14 - [info] Node.js  version: v18.13.0
19 Oct 00:42:14 - [info] Linux 6.1.53-v7+ arm LE



source:https://nodered.org/docs/getting-started/local#passing-arguments-to-the-underlying-nodejs-process
0
1 年 前
#20465 引用
Step 2. open the URL http://localhost:1880  to get node-red.

http://192.168.2.50:1880





在这一步,你能集成设备并建立自动化了。

安装Node Red Node节点

    
   与Home Assistant开发模式类似,Node Red也有一个丰富的Node节点库,截止目前大概有1200多个,远远超过HA组件的数量,这些节点很大一部分也是依靠开发者无私分享,我们可以在这个节点库中找到支持诸如Sonoff、小米、博联设备的Node组件,借助这些Node组件实现与各类设备的联动。除了这些,你还可以找到HA、MQTT等组件
0
1 年 前
#20466 引用
Step 3.Install  node-red-contrib-home-assistant-websocket in NR

path:Manage palette

Open the hamburger menu at the top-right and click Manage Palette to get an overview of available and installed nodes.
Open the Install tab.
Search for and install node-red-contrib-home-assistant-websocket.

search node-red-contrib-home-assistant-websocket and install it
https://zhuanlan.zhihu.com/p/456741817



name
Node-RED Companion


Attention: This node requires Node-RED custom integration version 0.5.0+  to be installed in Home Assistant for it to function.


output


http://192.168.2.50:1880/







0
1 年 前
#20467 引用
1
0
1 年 前
#20468 引用
Install Node-RED custom integration  in Home Assistant

https://github.com/zachowj/hass-node-red


Manual
Using your tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).

If you do not have a custom_components directory (folder) there, you need to create it.

In the custom_components directory (folder) create a new folder called nodered.

Download all the files from the custom_components/nodered/ directory (folder) in this repository.

Place the files you downloaded in the new directory (folder) you created.

Restart Home Assistant

Refresh your browser window (bug in HA where it doesn't update the integration list after a reboot)

In the Home Assistant UI go to "Configuration" -> "Integrations" click "+" and search for "Node-RED"
0
1 年 前
#20469 引用

you just have to fill out the configuration node. Drag any one of she shapes from that onto the screen and you should see a server field like so:

0