"Art" of the sequence, a Node-RED retrospective

After doing a bunch of sequences I started to notice that some of them look kinda cool. I thought maybe I should start a thread on the "art" of these things..

Feel free to post your coolest looking working sequence.. though the point is not really function but form!

Here are my offerings:

The "Pico" bird..

Syncing Ship

3 Likes

Here's my subflow to change compass points to words, such as North, South, etc. Anyone want to name it?

3 Likes

90% of mine end up looking like swim lanes. lol. I'm not artistic:


Although, I do kind of like how the Google Home ones look (this is a dimmer):

2 Likes

In case anyone was wondering, here's where I got the conversion data:
http://snowfence.umn.edu/Components/winddirectionanddegrees.htm

3 Likes

Jellyfish on Beach - still a work in progress sadly
"JellySwitch"

1 Like

I don't know anything about using Node-RED, but most of those diagrams look elegant. A lot of examples on this board remind me of someone dropping a plate of spaghetti. Make my old (simple) brain hurt.

3 Likes

Ha! yeah before I started with it looked exactly like that to me too. Once I got into it the visualizations became less bizarre and more understandable. NR is really very simple at it's core. You can just do a lot of very powerful things with it. If you want something to tinker around with I highly recommend. Really adds to the HE experience.

1 Like

Maybe "Around the world in eighty days"? :grin:

Do you use this instead of Rule Machine? Or in addition to it? I’ve been looking for something which is capable of building automations without 480 taps on my phone for an if statement...and I’m also looking for something which can build reusable functions.

I’ve been toying with the idea of just using the maker api directly but haven’t looked into it too deeply yet. As a software person I just... Want to write code for these automations.

Either way. About 90% of my rules are now NR sequences.

3 Likes

Yes as a matter of fact I just converted most of my rules over from all of my hubs. I recommend you give it a whirl if feasible. The visual dev aspect is fantastic. It's very easy to copy/change etc. They have things like subflows for certain kinds of reuse and "function nodes" which are custom javascript code blocks etc.

2 Likes

JavaScript code blocks

Happen to know which variant of JavaScript it is? There are certain dialects of node I’ll go pretty far out of my way to avoid.

What’s the response time using a system like this? For the options where you have it responding to a button press is it noticeable that hubitat is going out to another device on the network?

It adds a couple hundred milliseconds max, depending on how busy Hubitat is and what kind of hardware you run Node-RED on, When I was doing my benchmarking it was usually ~120ms, but I run my node-red docker container on server grade hardware so it's pretty zippy.

Typically not noticeable, but could be in some scenarios if you have a ton of back/forth in your logic I guess.

2 Likes

To add to @JasonJoel's response, my Hubitat logs indicate no discernible difference in motion lighting that done within NR vs motion lighting done using Hubitat (~275 ms vs ~300 ms for the time between motion detected and light turning on).

All of my interior motion lighting switches/dimmers are Lutron Caseta. If I use HE-paired motion detectors, and directly connect the Caseta Pro bridge to node-red, then my motion lighting is actually faster with node-red than with Hubitat alone (~150 ms vs ~275 ms).

1 Like

Well, that's a good point.

My comment was mainly around the time it takes to get the value to/from hubitat. If the logic itself runs faster in node-red (which it often can depending on what hardware you are running node-red on), then you can actually see FASTER closed loop response times than using RM or Motion Lighting - even though it has to go 'off node'.

TLDR; The solution adds a little more latency getting values to/from the hub, but typically has faster logic execution. So net result = :man_shrugging:.

Around the world in 360 degrees!

1 Like

I am using a Raspberry Pi 4. It seems to be just as responsive as RM. If there is a lag, it's not noticable.

2 Likes

As others have said there may be a lag but not noticeable and depending upon the available resources of your server (I'm running it on a vm) it may offset any disparity. For me it is more than a worthwhile tradeoff for the flexibility/control/ease of use I get..

Node-RED runs on Node so the version of Javascript will totally depend on what version is included with your installation.

2 Likes

Yours looks like one I did to control a virtual Roku button device that acts as a remote with an HE dashboard.

If you change the color of your HE Nodes, the "artistic" value goes up significantly! :grinning:

1 Like

uhhh, maybe - "Bustier Roku" ?

(don't judge me! it's "art"!!!)

:blush:

2 Likes