Lutron Caseta Pico Remotes and Node-Red

I have recently employed the Lutron Pro Hub and have several Pico remotes controlling non-Lutron lights. I have a few of the two switch models, that send a 0 when idle and a 1 and 4 when the top (on) and bottom (off) buttons are pushed respectively. I’m trying to make them dim the lights when held. I’ve figured out how to recognize a “short” and “long” push, but it doesn’t recognize it until the button is released and goes back to zero. That obviously won’t work very well for dimming. Does anyone have any suggestions or examples of a similar flow?

Here’s my flow, but it’s not very elegant and I’m sure there’s a much better better way to do it. It’s dims a preset amount each time it’s pressed.