In /config/esphome/espName.yaml you need to add the following:.Please do not copy this since your ESPHome version may be different if you're following this in the future, and copying this could lead to issues. This is what mine looks like, see line 8: Now open: /config/esphome/.esphome/.Ĭhange the address from espName.local to espName.# Enable fallback hotspot (captive portal) in case wifi connection fails This is what mine looks like, see line 10: In the wifi section of the file you just opened, add the following: domain.Unless you're running your own router and/or DNS server, you can skip steps 5-6 and proceed to step 7. Open the following file in HASS: /config/esphome/espName.yaml This step will depend on how you modify your HASS configuration I use the VS Code plugin.The access password is the password which will be used by ESPHome to flash updates over the air to the ESP and authenticate with the ESPHome API on the ESP.
If you already have your firmware and just want to know how to flash it, you can skip down to the "flashing the firmware" section. In this post I'll run through how to create an ESPHome configuration for an ESP8266-based temperature sensor and how to flash the firmware.
It's actually a serial adaptor but since we only need to provide power, it will work. You can get an alternative here, on Amazon UK. I also bought one of these USB dupont cables from AliExpress for each unit since I have a bunch of old USB power blocks lying around, this was the easiest way for me to power them. This is also available here, on Amazon UK, for a little more, if you'd like to get it faster.Īt $4.38/ea (~£3.60) plus shipping I couldn't say no, so I decided to buy a bunch of them to monitor the temperature and humidity in various locations around the house. You'll want the option named "AM2302 ESP-01S". I recently came across a listing on AliExpress for an ESP-01S (an ESP8266-based chip) and AM2302 combination.