This section describes how to integrate the PM2.5 Air Quality Kit-SHT30 air quality monitoring kit with Home Assistant and display data on the LCD screen.
ESPHome 2025.9.0. If you encounter compilation or upload issues, switch to this version for verification.)
Click the Online Flashing button below and follow the prompts to flash the firmware and configure Wi-Fi, allowing you to quickly try the PM2.5 Air Quality Kit-SHT30 with Home Assistant.
For detailed flashing and configuration instructions, see Online ESPHome Firmware Flashing and Configuration.
After completing online flashing, skip the "Firmware Compilation & Flashing" section and continue directly with 4. Getting Started.
This section explains how to recompile the project from the yaml configuration file for secondary development, feature modifications, or adding new features.
Open ESPHome Builder, click NEW DEVICE in the bottom right corner to create a new device.

Click CONTINUE in the pop-up window.

Select New Device Setup to create a new configuration file.

Fill in the configuration file name.

Select the device type: first uncheck Use recommended settings, then click ESP32, and select M5Stack Core ESP32.

Copy the API Encryption Key for backup, then click SKIP.

Click EDIT on the generated configuration file card to edit it.

Add the following to the end of the file:
packages:
m5stack.pm2_5-air-quality-kit: github://m5stack/esphome-yaml/common/pm2_5-air-quality-kit-base.yaml@main
Click SAVE and INSTALL in the upper-right corner, then select Manual download from the installation options.

After compilation is complete, click the Download button and select Factory Format to download the firmware.

Download Firmware: Download the Factory Format firmware via the Manual download method in ESPHome Builder.
Flash the firmware using ESPHome Web:
Connect the kit to the computer using a USB Type-C cable, open ESPHome Web, and click CONNECT to connect the device.

Click INSTALL and select the previously compiled firmware to upload.

Click INSTALL again to flash, and wait for the process to complete.

After flashing the firmware, the device will automatically connect to Wi-Fi upon startup. The Home Assistant service will automatically discover the new device. Select the new device in Notifications and click Check it out -> CONFIGURE. Follow the steps in the pop-up window to add the device to a specified area to complete the configuration.

If no notification for the new device appears, navigate to Settings > Devices & Services to check the device status. Click Add to add the device to Home Assistant.

Dashboard Example:

At the same time, the buttons on the Basic host can switch pages to display more information.
