When it’s connected to an Aqara M3 hub, it should/could be getting published as a Matter device (certain Aqara devices do).
In that case, you’d be able to add the switch to Homey using Matter.
To fix/improve your Homey zigbee network, first check if wifi 2.4GHz signal is not interfering with zigbee signal. This and much more info can be found here: