How complex is if over rule Machine. I like Rule Machine, just find it fiddly
Hard to answer, depends on the complexity of the rule in question. I find many things easier in node-red, but some things can be harder in node-red too - looping logic, repeating logic for instance.
Without much effort Node-RED is very good at once through flows, including many conditionals/branching on the flow. Loops/repeats and sometimes wait events can be trickier in node-red - possible, but trickier as it requires some thought/workarounds.
Don't think you will have much problem. I am a noob and after a week of reading and youtubing. I have node red up and running with basic rules.
I have a few days off I might do some reading
I'm a non-developer, and I've moved all my rules (bar a tiny few) to Node Red. It's not without a learning curve, but I really like it.
What are the advantages to using NodeRED over RM other than just the different interface?
Here are some of my reasons for using Node-RED over RM that aren't interface related:
- It is easier to use more complex logic in automations if necessary (for eg. a finite state machine).
- It supports a superset of devices supported by Hubitat, rendering it possible to create automations that use devices directly paired to Hubitat as well as devices not supported by Hubitat.
- It is easy to backup and share automations (sequences/flows).
- If necessary, it is easy to move the automation engine to more powerful hardware.
- The automation engine is agnostic vis-a-vis the z-wave controller or zigbee coordinator to which devices are paired. I've exchanged automations with people using Home Assistant with a zigbee/z-wave dongle.
- Because it can run on more powerful hardware, it is generally more resistant to ignorant user behavior. I've seen poorly written rules slow one of my Hubitat's down to a crawl. By and large, I have not seen badly constructed Node-RED sequences do the same thing.
Not to derail the thread any further, but I often wondered if the trade off in lost transit time was made up in the processing power. @aaiyar would you say for rules more than a single action this would be true, or true for even the most basic rule?
I think there are too many variables - like other drivers/apps that might affect processing efficiency to make a call.
However, in general, if one follows the KISS principles recommended by Hubitat to construct rules, slowdowns are less likely.
For me;
0. HE
- Lutron
- Alexa
- Sonos
- Samsung Multi-sensor (doors, windows, garage)
- Sengled bulbs
- Water Sensors
Lots more, but those are the primary for me.
For me, exclusively HE
- Locks
- Motion
- Fan Controls
- environment sensors (temperature, lux)
Another big thing was make sure the nodes are working properly. I spent hours making a rule,that didn’t work, come to find out a node wasn’t configured properly. If the node worked, my 1st automation would have worked
Hmm... top 3....
- Lutron
- Z-Wave
- LAN/Wifi