Assign multiple actions to a Philips Hue Button

So I have managed to integrate the Philips Hue Button into Node-RED by using the Hue Magic node. It works great, but can only do two actions, either on or off. I was wondering if it would be possible to make it so the action it performs is different depending on how many times you click the button within a certain time frame. I have tried playing around with the interval length node, but had no luck. It worked, but it wasn’t very reliable.

Hope this makes sense? Thanks :slight_smile:

What about using a Counter node followed by a Switch node?