This chapter introduces the method for integrating the Air Quality v1.1 air quality monitoring device into Home Assistant.
Click the button below to flash the firmware with one click. Follow the on-screen instructions to complete the configuration and quickly experience the Air Quality V1.1 Kit integration with Home Assistant. For one-click flashing and subsequent configuration, please refer to the tutorial.
Open ESPHome Builder, click NEW DEVICE in the bottom right corner to create a new device.

Click CONTINUE in the pop-up.

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-S3.

Select M5Stack StampS3.

Copy the API Key for backup and click SKIP to skip.

Click EDIT under the generated configuration file card to edit:

Add the following at the end of the file:
packages:
air_quality_base_config:
url: https://github.com/m5stack/esphome-yaml
files: common/air-quality-v1-rev1-base.yaml
ref: main
refresh: 1d
Click SAVE, INSTALL in the top right corner, and select Manual download from the pop-up installation methods.
After compilation, 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.
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, click Check it out -> CONFIGURE, and follow the pop-up steps to add the device to the specified area.

If you do not receive a notification for the new device, you can also navigate to Settings -> Device & services to check the device status. Click Add to add the device to Home Assistant.

Dashboard Example:

Press the USER_A/USER_B buttons to switch pages and display more information.
