As in the subject I am looking for the simplest cheapest solution to switch 220V off and on with the closing and opening of a window. Super if it would be based on a minimalist sensor of the alarm door opening detector type. Max power on is 100W and 0.4A
I can't think of a ready-made one, probably the nicest is the reed switch, but it requires an additional element, unless it is a limit switch and an aesthetically pleasing housing.
Good morning.
There are plenty of tips on the web.
For example: Link .
Unfortunately, the aesthetics are rather industrial.
Proper design, switch configuration, route for the cable,
covers and installation of everything. Technologically probably the simplest.
The arbiter of elegance will have room for pickiness.
Window opening sensors from alarm systems, e.g.: Link
For the price of punching holes in the window frames, installation invisible.
But requires precision and additional hardware.