Z-Wave Devices and Rule Machine Configuration

Hey everyone, I’m relatively new to the world of Z-Wave devices and have been experimenting with setting up routines using the Rule Machine. I wanted to share my experience and ask for some advice from more seasoned users!

So, I’ve got a setup where I use a simple switch to trigger a routine for bedtime. The idea is to turn off all the lights and set everything to ‘sleep mode.’ However, I’ve noticed that the execution isn’t as smooth as I’d hoped. It seems like there’s a delay when turning off multiple devices, and I’m not entirely sure how the Rule Machine handles sequential commands.

Here’s the snippet of my current Rule Machine code:

if (Switch1.state == ON) {
EverythingGroup.off();
// More commands…
}

My question is: Should I be breaking down the routine into multiple steps, or is there a more efficient way to handle this? I’m wondering if the delay occurs because the Rule Machine sends out commands without waiting for the previous one to complete. For example, does it wait for EverythingGroup.off() to fully execute before moving on, or does it just send the command and proceed immediately?

I’ve tried adjusting the timing between commands, but it doesn’t seem to make a consistent difference. I’m curious if others have encountered similar issues and how they’ve resolved them. Maybe there’s a smarter way to structure the rules or a feature I haven’t discovered yet!

On another note, I’ve also been exploring the integration of RGBW dimmers with HomeKit and openHAB. It’s been a bit of a learning curve, but I’m excited about the possibilities. If anyone has successfully configured an RGB or RGBW controller (not just Hue bulbs), I’d love to hear about your setup and any tips you might have!

Thanks in advance for your insights and experiences. It’s amazing to be part of such a supportive community!