This guide shows how to use the Unit Mini TVOC/eCO2 gas sensor unit with an AtomS3R controller and integrate it into Home Assistant for real-time monitoring of TVOC (Total Volatile Organic Compounds) and eCO2 (equivalent CO2) levels.

CONTINUE.

New Device Setup to enter the device creation wizard.
NEXT.
ESP32S3.
SKIP to skip the encryption key setup.
EDIT to open the YAML editor and customize the device configuration.
Add the I2C component to configure 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 entities.
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 | 0x58 | I2C address of Unit Mini TVOC/eCO2. |
update_interval | 2s | How often measurements are updated to Home Assistant. |
store_baseline | true | Enable baseline storage to improve long-term accuracy. |
baseline | Optional | Pre-set baseline values; adjust to your environment if needed. |
eco2 | eCO2 sensor entity | Configuration for the eCO2 sensor entity. |
tvoc | TVOC sensor entity | Configuration for the TVOC sensor entity. |
SAVE in the top right, then click INSTALL.
Manual Download.
Download and choose Factory format (Previously Modern) to save the firmware locally.
CONNECT.

INSTALL.
!>Warning| After flashing is complete, you must reset the device; otherwise the firmware may not start correctly.
Settings > Devices & Services to open the integrations page.
Discovered section find Unit Mini TVOC/eCO2, click CONFIGURE and follow the wizard to complete setup.
eCO2 and TVOC on the device page. Click Add to dashboard to add them to a dashboard.
