I'm trying to create a panel for my pool.
I've searched for electronic valves, LEDs (for valves status) and buttons (for run an automation with HomeAssistant) For the valves and LEDs I think that theorically it will work based on the info on internet.
But for the button is a different story. I've searched for a method to send a signal to esp32 when the 24v circuit of a button is closed (the button is pressed), but I can't find any way.
If I'm right, a relay opens/closes a circuit when it receives a signal from esp32. Is there any way to do the opposite - send a signal to esp32 when the 24v circuit is closed (button is pressed)?