IFTTT Alternative: Huginn and/or Node-RED

Wouldn’t it be possible to add support for Huginn and/or Node-RED? I think I saw a thread about Node-RED but it does not look like there has been any development yet. So why not Huginn?

1 Like

+1 for NR

We have integrated NR ourselves using a combination of nginx, iframes and a small custom component.

It is not particularly elegant, but it works and we’ve addressed single sign on and API interactivity.

Would be nice to run NR as an embedded app with native support from HA.

Would you mind releasing the code for that custom component? I’ve been thinking of making my own dashboard as a separate page, similar to how you integrated Node-RED.

Hi

The solution comprises a bunch of shim code in different places and is not fit for public release. It is certainly not up to the great standard that Paulus keeps the HA codebase!

I am happy to be approached privately by anyone looking to integrate this. FYI our solution includes:

  • partial-red.js and partial-red.html for the layout and iframe
  • nodered.py for exposing some custom API paths and maintaining the map file that nginx uses.
  • a small node.js package that gets included as a global package in NR; has access to RED.events and HA’s configuration.yaml (we specify the location NR’s setting.js)

The current version we have adds a crude hack to http.py to maintain a public static dict of valid client IPs. Am looking for a more elegant way of tracking sessions and sharing these between HA and NGINX/NR.

I was about to post something along these lines when your post popped up on the right. I +1 this. A way to integrate HA into Node-Red to simplify programming would be great. The UI on Node-Red is slick and programming is greatly simplified using nodes for a noob like myself. As node is normally part of most builds anyway, would seem that creating some input and output nodes could be doable?

It would be great to have official HASS input and output from NodeRed.

2 Likes

Anyone still working on NodeRed intergration? I think it would be nice to make a docker image.
Software i would like intergrated in one image

  • home-assistant
  • RabbitMQ (with MQTT broker and web GUI)
  • NodeRED

I think that would be a very nice set of programs to integrate.