Switch Delay and Blinds Automation

Hello everyone, I hope you’re all doing well! I wanted to share a challenge I’m facing with my IKEA blinds automation and see if anyone has some advice or alternative solutions.

I’ve set up several IKEA blinds in a group, and they work perfectly with my time automations. However, when my kids press the switch too quickly before the blinds are fully open or closed, things get a bit chaotic. The blinds end up moving in random directions, which is not ideal.

Here’s how my current setup works: I use an Aqara button that toggles a virtual switch. If the virtual switch is open, it opens the blinds, and if it’s closed, it closes them. This system works great when everything goes smoothly, but the issue arises when the button is pressed again before the 40-second blind cycle is complete.

I need a way to prevent the virtual switch from toggling if it’s pressed again within that 40-second window. My initial idea is to implement a debounce mechanism, where the switch ignores any additional presses during the cycle. However, I’m open to other creative solutions that the community might suggest.

If anyone has experienced a similar issue or has a clever workaround, I’d love to hear about it! Let’s brainstorm together to find the best solution for this automation hiccup. Thanks in advance for your help and ideas!

Cheers!
+1