Hi, I want to control old devices, for example a Coffee Machine. I want to simulate a button press with the Arduino, instead of pressing the button physically.
My first thought was using relays, which would be okay, but they are big and loud, and a little bit overkill for simulating a Button, in my opinion.
and poke around. There are a few ways to go. If you have single pushbuttons, the 4066 or a transistor woukd do. If you looking at a matrix keyboard, it might be easier to spoof the connection between a row and column using CMOS multiplexers.
Sorry, I did not read carefully. If this is a "dumb" coffee machine with only one button to switch the heating element, you cannot use a CD4066 for that, you will need to use a relay, maybe a solid state relay if you don't want the click..
No, that was just an example. I had a fully automatic coffee machine in mind, or an amplifier for a soundsystem. I want to connect an ESP to these kind of devices and control them via home assistant
I was referring to a system that had its low voltage system directly connected to mains.
Plug into socket: not recommended, but board at level of Neutral pole (close to 0V).
Plug into socket other way around (in EU that is possible, with some plug/socket systems in other countries it is not) : board at phase voltage (here 220V AC (pretty dangerous)).