A Node-RED package that integrates Home Assistant via WebSocket and REST API, enabling automation flows within Node-RED. Version 0.80.3 requires Node-RED 3.1.1+, Node.js 18.2.0+, and Home Assistant 2024.3+. It provides dedicated nodes for triggering automations, calling services, and managing entities. This package is the de facto solution for Home Assistant automation in Node-RED, offering tighter event-driven integration compared to generic HTTP nodes.
npm install node-red-contrib-home-assistant-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and configure the package in Node-RED.
Update Node.js to >=18.2.0
Update Node-RED to >=3.1.1
Update Home Assistant to >=2024.3
Generate a token from HA UI or use the add-on checkbox if running in HA add-on
Run 'npm install ws' in the Node-RED user directory (~/.node-red)
Verify the access token and Home Assistant URL in the config node
Ensure the entity_id exists and use a 'currentState' node or wait for the message payload