How to change a physics swtich into a wireless switch?

If you had mentioned that in your first post, that would have made the answer much simpler.

Like you discovered, most Aqara switches have a wireless mode to be used with smart bulbs. This mode is exposed in Z2MQTT but for ZHA you might have to send a cluster command.

Search around here for “decoupled mode”. I’m pretty sure I’ve seen threads which mention how to set it in ZHA, but can’t find them at the moment.

Edit: here you go, I might have found the instructions for you Aqara wall switch - Trying to setup on / off functionality AND changing scenes - #10 by Temmy