News for hackers. Stuff that matters.
Re:Run Your Home on a Raspberry Pi by contravariant on Wednesday February 02, 2022 @10:18AM (#30178710)
Does anyone know how Home Assistant compares to node-red? As far as I can tell Home Assistant is better at building a dashboard of things, but node-red is better at actually automating specific actions (unless you want to grapple with HA's YAML based scripting language).

Is this about right? Is it possible to combine Home Assistant and node-red, or has Home Assistant outgrown the need for something like node-red?

Re:Run Your Home on a Raspberry Pi by entropie on Wednesday February 02, 2022 @10:42AM (#30179122)
For me node-red is more of an addition to homeassistant. There is node-red-contrib-home-assistant-websocket [1] to let node-red speak with homeassistant, you can watch state changes etc. I use ha for like two years now and at the start there was no inbuild automation-backend like it is now so we did everything with node-red.

https://flows.nodered.org/node/node-red-contrib-home-assista...

Re:Run Your Home on a Raspberry Pi by seanw444 on Wednesday February 02, 2022 @01:41PM (#30181933)
I was thinking about getting started with HA, and then I saw the YAML. Dear God. May just be the ugliest scripting language I've ever seen.
Re:Run Your Home on a Raspberry Pi by OJFord on Wednesday February 02, 2022 @10:24AM (#30178832)
It is possible, and a few years ago seemed quite a trend (just going by /r/homeassistant spectating) - https://github.com/hassio-addons/addon-node-red - but I gather HA's own automation scripting has at least visualisation if not GUI programming now.
Re:Run Your Home on a Raspberry Pi by Semaphor on Wednesday February 02, 2022 @10:40AM (#30179095)
IME: For simple automations, HA UI is far easier. For complex ones, if you want a GUI, node-red, if you want to handwrite scripts, HA. If you don’t care it really depends, in some cases coding them is easier, in some cases node-red is easier.

But then this is about Node-Red integrated into HA.

Re:Run Your Home on a Raspberry Pi by rcarmo on Wednesday February 02, 2022 @01:50PM (#30182081)
I've settled on homebridge to talk to the Home app on my iPhone (which is where all the automation is done, and then executed on an Apple TV) and a little Node-RED for custom flows.

I have zero YAML to maintain, and I'm happier for it.

Re:Run Your Home on a Raspberry Pi by avel on Wednesday February 02, 2022 @10:24AM (#30178838)
They are not comparable because node-red is a generic low-code programming tool while HA is home automation software.

If you mean how they compare when you plug in node-red to HA and use it for automations, rather than use HA's "native" automations... I believe the consensus is that node-red is more user-friendly in that way, and because it can plug to other things on its own it can provide more flexibility. On the other hand, HA has recently worked on the UI of their automations, and it is already pretty good for simple flows. In the end both of these approaches are great, each with its own pros and cons.