Home Assistant WebSocket connection is unstable, Node-RED current state node reading status is not synchronized

I encountered a long-term unstable WebSocket connection between Home Assistant (HA) and Home Assistant WebSocket in Node-RED, which is manifested as follows:

  1. Status reading wrong
    When using the “current state” node to read the status of HA entities, the data is wrong. For example, when reading the sun.sun entity, the HA Developer tools already displays “above_horizon”, but Node-RED always reporting state “below_horizon”, causing the automatic logic based on state judgment to completely fail.
  2. Temporarily restored but repeatedly failed
    Every time when I edit the Server configuration associated with the “current state” node (whether you switch to the “Use the Home Assistant Add-on” mode or the “Access token” with correct token), the reading of the “current state” node can be temporarily restored synchronized, but after a period of time (the duration is not fixed), the problem will reappear again.
  3. Some actions attempted:
    • Updated the “node-red-contrib-home-assistant-websocket” palette to the latest version;
    • Separately tested the “Enable heartbeat” option by check/uncheck in the Server configuration;
    • Check the access token permissions and confirm that there are no obvious configuration errors.

Environmental information:

  1. Home Assistant version:
    Installation method: Home Assistant OS
    Core:2026.4.4
    Supervisor:2026.04.0
    Operating System:17.2
    Frontend:20260325.8
  2. Node-RED version: 21.0.7
  3. node-red-contrib-home-assistant-websocket version: 0.80.3

Is there any who have encountered similar problems before? What are the possible reasons? Are there any stable solutions? Thank you for your guidance!

When you click on server, is there more than one entry?

When you click the “+” symbol on the most right of the Server option, you can add another entry. Or when you click the pencil symbol, you can edit the current “Home Assistant” entry. When you go into the entry, there is the checkbox of “Using the Home Assistant Add-on“. By check and uncheck, you can choose whether or not using integrated one or customized one.


How many servers entries do you have in that list? 1, 2 or more?

You should have only one home assistant server config.