Neopixel light with esp32 and mqtt

Hello, I am trying to control some neopixel LEDs with home assistant and mqtt, on the same raspberry that the home assistant is on, it finds the mosquito mqtt server, basically, I want to send the esp32 what color I want it to have and if I want it to turn on or it turned off.

I don’t understand anything about how the home assistant .yaml files are configured

I installed home assistant today to see if I can solve it with it, it HAS to be with mqtt

Does anyone have an example (.ino and .yaml) for this function?