How to use Home Assistant value in Node Red

Hello everyone,

I need some help.

How can one use a value from Home Assistant directly in Node Red? Is it through Global Environment Variables? If not, how does one convert it into one?

Please see the attached images.

Skærmbillede 2024-04-03 1120072

Skærmbillede 2024-04-03 113334

hello, you can retrieve any entities created in Home Assistant via the node-red-contrib-home-assistant-websocket package.
It's a gateway between the 2 environments. It works in both directions.
You can create entities in HA from NR and then read them.
HA events too.
For example, here I'm reading the HA Slider wallbox entity and then processing it in a function node.