How to adopt a device into ESPHome - the addition to the $13 voice assistant guide (M5Stack ATOM Echo)

to be honest, the device is adopted into ESPhome and that’s about it. It exposes a sensor “assist in progress” and 2 configuration items in home assistant.
I added lots of stuff in the yaml I found from internet but I have no idea what it does/if it’s necessary.
This is my code: atom echo - Pastebin.com
basically, I’m still trying to find my way around and not really understanding the whole proces.
I probably should have first setup the voice pipeline; test it with my computer and then decide if I would buy an atom echo.
(as of now, the recognition is too poor to use in dutch).