Meanwhile I've also designed a much smaller enclosure for the electronics:
It has a simple through-hole in the bottom of the case that fits a tie-wrap so it can be fastened to anything I want.
I did however notice that this component seems to get very hot:
Is this a diode? Can it be that the diode will fail because the frequency is higher?

