If you don’t mind waiting a little bit for shipping, I highly suggest buying from Aliexpress (find a shipper that ships ePacket as you get a tracking number and ships faster), you will save yourself a lot of money. Type in Wemos D1 Mini, they use an ESP-12 mounted to a prototype board which you can easily work with. The version you found on amazon will need an external antenna, this may be a little overkill for an oil diffuser
I’d suggest buying a couple, as you may accidentally burn it out if you’ve never worked with one before. I still make mistakes and blow the odd one up. Plus, chances are once you get your oil diffuser automated you’ll want to keep going!
Once you have your Wemos, you will connect it to your computer using a micro-usb to usb cable. You’ll need to go to the ESPEasy site to download their firmware.
Tutorial ESPEasy Firmware Upload - Let's Control It
The wemos d1 mini with an esp-12 will have 4096K of memory, so you’ll need to select that when uploading the firmware.
Once uploaded, unplug the usb and plug it back in to give it a good powercycle, then let it sit for a minute. Eventually it will broadcast an access point that you will log onto, and this is where you tell the Wemos what wifi network to connect to, and password. Once it completes its setup, it’ll give you it’s IP address. You can then log back onto your wifi network and navigate to the IP of the Wemos.
From this point, you will enter your mqtt credentials and configure your gpio’s. Once done, you will need to solder a wire from the button to which ever GPIO you’ve configured it to, etc. Then comes the Home Assistant configuration.
If you let me know how far you get, I can help you out some more.
As far as powering goes, it might be easiest to run a separate power cable to power the wemos using a cheap wall brick and cable from the dollarstore. It is possible to use the 24v adapter but that would require the use of step-downs and what not. If someone else wanted to weigh in on this that would be great, powering isn’t my specialty (as I mentioned I’ve blown a few things up, you learn as you go lol).