There may be blueprints that people have written to simulate those functions. There also may be events available that can be captured to do those things. There may also be a custom Quirk that includes of some of those.
If the bulb is smart, I just wire it live and don’t use the relay. That’s what actually happens in detached mode, the relay is just always on. That’s an issue with no neutral stuff but other wise…
No: detached mode is when the button/switch action doesn’t control (directly) the relay. The relay is not ON but is controlled through the network protocol.
Eg. I long press the button, HA get the status and an Automation sends a command to two or more relays.
I got a suggestion from an other thread: flash a custom firmware from here
This device is compatible and now it works!
I have a detached mode push button with press, release and long press; a relay and also a led!
Thanks @ferbulous