No values in node-red from HA, only entity ID

Hi all,

I am struggling with getting homeassistant talk to node-red and vice versa. The entities show up with friendly name in the node but I do not get any values, nor can I send output comands.

Node-red works fine with MQTT entities, so I assume that there is something wrong with the node-red-contrib-home-assistant-websocket.

I already tried a lot, also based on tipps I found in forums:
*) Enabling heart beat in the node-red homeassistant server setting
*) Disabeling the usage of the HA add-on and entering URL and token manually
*) Re-installing node-red
*) Installing the Node-RED Companion Integration manually via HACS
*) Adding username and password in the configuration of node-red

Nothing helped :worried:
Now I ran into a dead end and I don´t know what else I can try.
Am I the only one with this problem? Any further ideas I could try?

My HA is runing directly on an Intel NUC (no containers, VMs, etc). Node-red is an add-on in HA. Everything is up to date:

Thanks a lot in advance for your support!
BR Michael

What are you seeing in the Node Red log? (Settings → Add-ons → Node Red → Log)

Hi,

this is the log after I hit deploy:

7 Dec 19:21:27 - [info] Updated flows
7 Dec 19:21:27 - [info] Starting flows
7 Dec 19:21:27 - [info] Started flows
7 Dec 19:21:27 - [info] [server:Home Assistant] Connecting to http://supervisor/core
7 Dec 19:21:27 - [info] [mqtt-broker:Mosquitto] Connected to broker: mqtt://192.168.178.62:1883
7 Dec 19:21:27 - [info] [server:Home Assistant] Connected to http://supervisor/core

Thanks! That looks ok.

Please describe this a bit more. Is the “not get any values” in NR, or in HA in general? If you go to Developer Tools → States, and then select one of the entities, what does it show?

It is just in NR.
I see all the values in the HA overview section / developer tools → states and I can control all my devices in HA.

Here an example entity:

To me it looks like the link between NR and HA is not working.

Ok, thanks for the clarification. You’ve rebooted HA?

If you go into NR, then the “three lines” icon in the upper right, then Configuration nodes, is there just one entry under “server”?

Thanks you for your super fast response :slightly_smiling_face:
Yes, I have rebooted several times.

The only entry is homeassistant

Well, lol, the fast responses are about to stop, because I’ve reached the limit of my troubleshooting :slight_smile: The only difference I have on my config is I have the check mark set for “Delay connection attempts”. You could try setting that. Beyond that, I’m not sure what else to suggest, and hopefully someone with deeper knowledge can jump in to help!

1 Like

Could you pull out an event state node, select an entity. Leave the if state blank and check output on connect.

Connect that to a debug node and set the debug to complete msg object

and deploy

1 Like

Setting the “delay connection attempts” option did not change anything for me.
I am also very puzzled because I used HA with NR years ago and it just worked out of the box…
Thank you for trying😉

Oh my god, I am so sorry for wasting your time:
I think I used the wrong node (current state).
With event state it works👍

This is so embarrassing😅, thanks a lot!

1 Like

Woot! Glad it’s sorted. And these things are never actually our fault, but merely due to “a bug in the code”!