Juanaca said:
Thank you very much for your answer Harpo, my electric current is 220v.
...update your profile with your location data, so it would be easier for us to help you and you wouldn't be asked for the same info over and over again... Not only mains voltages differ when consulting an intercontinental forum...
Attached the buttons that I bought, there were several options, 12v, 24v, and 220v.
I can't explain why I chose the 220v ones.
12VDC would have been the better descision, considering this 12VDC supply voltage is already on board just for this purpose.
https://drive.google.com/file/d/19gOY2wvCRz3SGGoVkqKVys9Xwl-VUYzo/view?usp=drivesdk
From your pic, this seems to be a SPDT (single pole double throw) illuminated pushbutton switch,
looks a little like series PLP16 from C&K
https://www.mouser.de/datasheet/2/60/datasheet-1729296.pdf
or series YB from NKK
https://www.mouser.de/datasheet/2/295/ybilluminated-1663306.pdf
but both don't come with 220V AC-mains illumination (of whatever illumination type, incandescent lamp, neon, LED, with or without built in resistor, ...),
that's why I asked you for type and model of your switch.
Unfortunately you probably better avoid a switch with mains powered illumination in close proximity to sensitive control voltages in mV range.
https://drive.google.com/file/d/1Aoe9qZ43SxmdydPZBwYWyhxA2tyqMUh7/view?usp=drivesdk
doesn't show up here...
... what relay I have to select and how it would be connected to the button.
When you look at the GSSL schematic, for the bypass function you want a DPDT (double pole, double throw) switch, so you'd need a relais with at least these switching functions. You hook up the relays common pole and throw positions like shown in schematic. With a 12VDC operated relay, relay-coil+ connects to your probably center connection of your pushbutton switch. relais-coil- connects to 0V reference voltage. Place a flyback-diode (maybe 1N4004) across the relais-coil +/- connections, cathode side to the + end. Depending on wanted status (compressor bypassed or compressor activated when switch is pressed down), you connect the +12VDC aux supply rail from GSSL main board to either the NC (normally connected) or NO (normally open) switch contact. For switch illumination, you connect the same pushbuttonswitches center pole to the + connection of the switches illumination contact if there is a LED inside your switch. If inside is a (not polarized, but a power hog) incandescent lamp, connection side doesn't matter. (your 220V operated whatever it may be shining part will not show up with an only 12VDC supply). Other side of pushbuttonswitch illumination contact goes thru a needed current limiting resistor to 0V reference voltage if its a LED and the resistor is not already built inside the switch, or direct to 0V reference voltage for an incandescent lamp if you like it more bright.