This tutorial will introduce how to use the Unit Mini TVOC/eCO2 gas sensor unit with the AtomS3R main controller and integrate it into Home Assistant to achieve real-time monitoring of TVOC (Total Volatile Organic Compounds) and eCO2 (equivalent carbon dioxide) concentrations in the air.

CONTINUE.

New Device Setup to enter the device creation wizard.
NEXT.
ESP32S3.
SKIP to skip the encryption key setting.
EDIT to enter the YAML configuration page and customize device functions.
Add the I2C component to configure the communication pins between Unit Mini TVOC/eCO2 and AtomS3R.
i2c:
sda: GPIO2
scl: GPIO1
scan: true Add the Sensor component to enable the SGP30 sensor entity.
sensor:
- platform: sgp30
address: 0x58
update_interval: 2s
store_baseline: true
# Optional
# baseline:
# eco2_baseline: 0x190 #400
# tvoc_baseline: 0x0 #0
eco2:
name: "eCO2"
tvoc:
name: "TVOC" Main Parameter Descriptions:
| Parameter | Value | Description |
|---|---|---|
address | 0x41 | I2C address of Unit Mini TVOC/eCO2. |
update_interval | 2s | Time interval for updating measurement values to Home Assistant. |
store_baseline | true | Whether to enable the baseline value storage function. |
baseline | Optional | Preset baseline values, which can be adjusted according to the environment for accuracy. |
eco2 | eCO2 entity configuration | Configures properties such as the name of the eCO2 sensor entity. |
tvoc | TVOC entity configuration | Configures properties such as the name of the TVOC sensor entity. |
SAVE in the upper right corner to save the configuration, then click INSTALL.
Manual Download in the pop-up window.
Download and select Factory format (Previously Modern) to save the firmware locally.
CONNECT.

INSTALL.

Settings > Devices & Services in sequence to enter the integration management page.
Discovered area, click CONFIGURE, and follow the wizard to complete the configuration.<img src="https://m5
eCO2 and TVOC. Click Add to dashboard to add them to the dashboard.
