Creating a ESPhome instance to open/close a circui

I have a car charger which I would like to control if it can charge my car or not. I know that the car charger has a way to control this by open or close a circuit. I have a Wemos D1 mini board at home. Is it possible to create a ESPhome instance on this which I via HA can open and close a circuit by connecting pins on the board to pins on the charger? The car charger manual describes this.
Maybe I need a special board to connect the circuit via.
Anyone who can point me in the right direction?

If its just shorting 2 pins, you could use an ESP relay board

https://www.amazon.co.uk/SODIAL-ESP8266-ESP-01S-Control-Wireless/dp/B07B6HN77B

or add one of these to you D1 mini

2 Likes

That was a quick answer. Adding that Relay board seems like the right way for me. Thanks a lot!