Rolling back to websocket-0.59.0 saved our lives “for now”.
What is not clear to me is whether the home assistant node has actually been deprecated or whether it is an update problem.
Because in the first case I think it is enough to wait for future versions, in the second I suppose it is necessary to replace the functions …
This is an uncommon and temporary issue potentially affecting only anyone with Node-RED as an HA addon, using the HA WebSocket nodes.
IF you have Node-RED as an HA addon, AND you either manually update WebSocket nodes from the palette OR you make a new Node-RED addon installation
THEN you will pick up the latest version of the WebSocket that will not work with the current Node-RED version in the addon.
Solutions are:
don’t update manually (if you do, then above is a work-around to reverse this)
install the latest Node-RED addon, and then downgrade the installed version of WebSocket nodes to something that is compatible with the Node-RED in the addon
don’t use Node-RED as an addon, and update both Node-RED and the WebSocket nodes together
I can confirm that 0.62.2 works perfectly with Node-RED 3.1.3 as an off-HA install on a Raspberry Pi.
I updated to v 17.0.0 and my node red was not happy with an Unknown api-call service. After downgrading websocket to v 0.59.0 it was working correctly. I have verified that I am running Node-RED version: v3.1.3 but with websocket v 0.62.2 I have this issue. The procedure above using websocket v0.59.0 makes it work but I would really like to get v0.62.2 working and would love any help from the group here.
Do you know on which node it is happening specifically?
Have you tried turning off all you flows that are using the websocket, and re-enabling them one-at-a-time to pinpoint where on which flow it starts failing?
or is it that the websocket node is sending you an error on initialization and all your flows stop working?
I had to downgrade websocket because The api connection to Home assistant is lost so all home assistant items such as “event state” display api-error and are pink stating “unknown: api-call-service” throughout all nodes. If I revert back to v0.59.0 everything comes back. I just tried today to update to v0.62.3 and get the same result. Downgrading my websocket fixes my issue. Are there logs that you need to investigate this?
Add-on version: 17.0.1
Home Assistant OS 11.4
Home Assistant Core: 2024.1.2
Home Assistant Supervisor: 2023.12.0
Node-RED version: v3.1.3
WebSockets Version: 0.59.0 Because 0.62.3 fails for me and so did 0.62.2
In Configuration nodes The server connection shows:
“This node is a type unknown to your installation of Node-RED” using v0.62.3
Where with v0.59.0 it displays my home assistant name.
Add-on version: 17.0.2
You are running the latest version of this add-on.
System: Home Assistant OS 11.4 (amd64 / qemux86-64)
Home Assistant Core: 2024.1.2
Home Assistant Supervisor: 2023.12.0
Node-RED version: v3.1.3
Node.js version: v18.19.0
Linux 6.1.71-haos x64 LE
Node-RED Contrib Theme Collection version: v3.1.8
Dashboard version 3.6.2
node-red-contrib-home-assistant-websocket 0.59.0
Not using Node-Red Companion since this is an installation of HAOS with Node-Red addon not via HACS.
Nothing I can find in the logs that show a problem when using 0.62.3. It just fails to communicate with HA after updating to it and restarting Node-Red as instructed thus anything using the websocket like Home assistant current state of a sensor will have the error as in the picture near the beginning of this thread showing “unknown: api-call-service”.
I had a similar issue. It would connect on an initial launch after a reboot of HA but after I clicked out of NR and went back in, it didn’t show connected and I couldn’t enumerate any domains/services. Nothing in the basic logs showed an issue.
After some playing around, I realized I had two Servers listed in NR (from a previous import) and once I disabled the older one, things started working as expected.
it keeps loading every ~1 second bottom lines with “red.min.js:16 (websocket)”
We’re experiencing continuous WebSocket reconnections (red.min.js:16) in the developer network tab when using Node-RED as an addon in Home Assistant OS. The issue likely stems from a misconfiguration or conflict with WebSocket handling, such as ingress proxy settings, authentication, SSL, or network timeouts. Direct access works fine, but the problem occurs via Home Assistant’s interface.