OK, here an example of how a an existing series of automations can be easier to understand at a glance (and I think the complex automations can be easier to maintain) in Node-RED.
One of my more advanced automations has logic like this:
- Trigger: 1 hour after Dusk
- Condition: Only execute if this feature enabled?
- Get the list of currently turned on lights (omitting certain ones).
- Dim those lights to 80%.
Which seems simple when it is pseudo-coded out like that. But how long does it take me find the code responsible for this automation? Then once I find it it takes a few minutes to review the long complex code to remember how its working.
I am not ready to stop using Home Assistant’s YAML files to create automations… but I am going to give this path a try for a while. Either way I’m having fun learning something new!
Home Assistant YAML