Shelly 2PM as a switch for Hue lights – not working in Detached Mode

Hi everyone,

I’m trying to use my Shelly 2PM to control Hue lights while keeping the lights always powered on. The goal is:
• Shelly detects a button press (short press)
• The signal is sent via Home Assistant
• Hue lights respond accordingly (on/off, scene, etc.)

This setup works fine with other Shelly devices, but not with the 2PM. I’ve already:
• Enabled Detached Mode

Has anyone successfully used a Shelly 2PM as a switch in Home Assistant to control Hue lights? Are there specific settings or workarounds needed for the 2PM?

Thanks in advance!