This tutorial shows how to use the Unit AC Measure AC measurement unit with an AtomS3R controller and integrate it into Home Assistant to monitor AC voltage, current, power and energy in real time.

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 an External Components block in the YAML file to load the unit_acmeasure sensor driver.
external_components:
- source: github://m5stack/esphome-yaml/components
components: unit_acmeasure
refresh: 0s Add the I2C component to configure the communication pins between Unit AC Measure and AtomS3R.
i2c:
sda: GPIO2
scl: GPIO1
scan: true Add the Sensor component to enable AC measurement sensors.
sensor:
- platform: unit_acmeasure
id: acmeasure1
address: 0x42
update_interval: 2s
voltage:
name: AC Voltage
current:
name: AC Current
power:
name: Active Power
apparent_power:
name: Apparent Power
power_factor:
name: Power Factor
energy:
name: Energy Main parameter description:
| Parameter | Value | Description |
|---|---|---|
address | 0x42 | I2C address of the Unit AC Measure. |
update_interval | 2s | How often the AC measurement values are updated in Home Assistant. |
voltage | AC Voltage | Reports the RMS AC voltage of the measured circuit. |
current | AC Current | Reports the RMS AC current. |
power | Active Power | Reports the active (real) power in watts. |
apparent_power | Apparent Power | Reports the apparent power in volt‑amperes (VA). |
power_factor | Power Factor | Reports the power factor (ratio of active to apparent power). |
energy | Energy | Reports accumulated energy consumption. |
SAVE in the top right, then click INSTALL.
Manual Download.
Download and choose Factory format (Previously Modern) to save the firmware file locally.
CONNECT.

INSTALL.

Settings > Devices & Services to open the integration management page.
Discovered section, find the Unit AC Measure device, click CONFIGURE, and follow the wizard to complete the setup.

