This section introduces the method of integrating the PM2.5 Air Quality Kit-SHT30 air quality monitoring kit into Home Assistant and outputting data to the LCD screen.
Click the button below to flash the firmware with one click. Follow the on-screen instructions to complete the configuration and quickly experience the PM2.5 Air Quality Kit (SHT30) integration with Home Assistant.
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 Encryption Key for backup, then click SKIP.

Click EDIT under 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
Then click SAVE and INSTALL in the upper right corner. In the pop-up installation method, select Manual download.

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 firmware using web tools:
Connect the kit to the host via a USB-C cable, open ESPHome Web, and click CONNECT to connect the device.

Then 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 message for the new device is received, you can also navigate to Settings -> Device & 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.
