Hacker News new | ask | show | jobs
by sleavey 1789 days ago
How are you integrating Node-RED into Home Assistant? How does Home Assistant talk to Node-RED? I recently set up Home Assistant (love it) and an MQTT broker for some sensors and I can think of many ways in which Node-RED could also be involved but don't know which is considered canonical.
3 comments

node-red-contrib-home-assistant-websocket is considered the canonical, it's the one built into the community Node-Red plugin. https://github.com/hassio-addons/addon-node-red
And if you are not using supervisor, for the other side of the pipe, companion component hass-node-red - https://github.com/zachowj/hass-node-red.
Not GP, but I just expose node-red flows via http and hit those from hass. There's probably a more elegant way, but having them communicate via http also lets me hit the flows via flic buttons or Apple Shortcuts without having to go through hass (which I never let see the public internet).
If you're using the hassOS version of homeassistant, you can activate plugins, and one of those is Node-RED with the necessary integrations.
Using Haas Core unfortunately.