Multifunction Garage opener

I have a wall mounted multi-function garage controller on the way. Door open/close button, light button and lock button. The same to terminal it is connected to are also what I tied my ESPHome garage controller to. I just trigger the relay momentarily and it closes the circuit between these two wires and opens/closes the door.

My question, what is happening with the controller and these two wires to tell the garage door to turn on the light or lock and can this action be duplicated with ESPHome.

Who knows with that level of detail.