Shelly and Hue

So, the guidance provided was extremely helpful and i have actually got it kind of half working, but only in a specific situation. Below is how the setup to have this working.

  1. Shelly is in detached mode, with button type switch

  2. My switch is a momentary switch so when i press it i get this

  3. And here is my flow, any input change turns on 3 hue bulbs. And this all works. So i press the button and the hue bulbs turn on

Now this is great, but the problem is in turning the lights off. I was exploring changing the light switch type to a button as per below

This would then generate the following when pushed

I was thinking to use this shelly setup with a flow such as this, so that i can do a single press for on and a long press for off. However the below flow is not working, when i press the button nothing happens with hue despitw as per above shelly is sending a message.

I also created a flow to test if the single push was being picked up by homey. The flow was as per below

As you can imagine i did not get a push notification.

So this is where i got to - i can get it half working but cannot get the whole single long or double push to work. Any ideas anyone might have would be much appreciated.

Thanks
Michael