As per title I'm, looking a way to detect the press of a button powered at 220v ac through a gpio pin of the ESP32.
The simplest solution found seems to be an octocoupler, but are there devices that support such a high voltage difference? What could be a connection scheme?
what could be a connection scheme?
... connection to what? ... your post has no information