Help with converting from Tasmota

How would I configure the button, relay, and LED on this outlet to an ESPHome configuration?

I am just started with ESPHome, so I might be off, but here are my guesses.
Button: GPIO Binary Sensor
LED: Status LED Light
Relay: GPIO Switch

And of course a few Core elements, like wifi/network, logger and so on.

Thanks! I am just a little confused about which pin maps to which component.

The dropdown menus in your picture tells it

That was easy enough. Thank you!

Final question: how can I access the API directly using curl? I can’t seem to find the proper way to specify the API password.