Node-Red Flow Samples/Sharing

:astonished:

2 Likes

Just do this...

The secret sauce is using a flow variable called "hue" and incrementing using a jsonata expression like this:

also the "setHue = flow.hue" change node is

You must have missed this part :wink:

In that sequence, how would it be reset to 0, after 99? (I see it now, nice!) Always curious.

BTW, I think my ways can often be overly complex due to ignorance in coding, 'layman' terms. But isn't that the beauty of NR? I completely bow to those that know true coding :bowing_man: Until then I'm just glad NR lets us 'hacks' find the ways we can

:hugs:

to all

That only goes through one iteration as an example BUT on the switch node you could add an otherwise and do it like this:

Note: the "no-op" is a placeholder node that does nothing - you could put some exit logic there or whatever.. edit forgot to put a delay on it (after the no-op) as well... sigh

I see your 'easy way' and raise you the control freak factor :wink:

Aaaaahhhhhh!!! My eyes!

( :slight_smile: )

And it/yours looks a lot cooler too.. very matrix-ey :pill:

and in truth if your c/p skillz are up to snuff you should be able to do it all in under the 15-30 it took me while the wife cooked dinner. Since then...... its paid for itself in many 'happy returns' :rofl:

Another satisfied Node-RED customer.. :wink: :rofl:

Holy Moly that is complicated. Wouldn't a function have been a lot easier?!?

Ha, now I read on and see your response vis a vis coding etc. Fair enough.

You can create a loop using this pallet:

I'm suspecting that this is right based on what I'm seeing in the Inovelli LED (Blue = 65 Hue)

This is awesome! :clap:t3: :clap:t3:

do-red is also a great "organizational" node as well.. I use it to prettify my water main valve check sequence.

Thanks for pointing this node out.. looks like a great utility node!

I use do-red a places now. Can be quite handy.

@stephen_nutt gets the credit for mentioning it - I just showed an example..

:grinning_face_with_smiling_eyes:

Moving this over :grinning:

I guess I was overthinking this! Will take a look at the config node. Thanks!

EDIT: Just looked at the setting and it is set to rebuild cache on systemStart event

It's all right - I did almost the exact same thing starting out with NR.. @fblackburn's HE nodes are very well thought out. I have not had any sync issues that weren't my fault. :crossed_fingers:

Also sometimes you might want to generate your own "events" in NR - I do this using MQTT (and the AEDES node)... but you can also use the Link Nodes.

I use the Link nodes in a couple of places. Haven't played around with MQTT as yet but may start soon!

It might be overkill but it works well with my stuff.. it's very easy to play around with..

Note: this is not quite as full featured as Mosquitto but a good starting place and simple to integrate.