The Unit AC Measure component reads parameters such as AC voltage, current, active power, and accumulated energy consumption.
| Item | Information |
|---|---|
| Product Name | Unit AC Measure |
| SKU | U164 |
| Main Function | AC voltage, current, power, and energy measurement |
| Communication Interface | I2C |
| Default I2C Address | 0x42 |
| ESPHome Component | unit_acmeasure (external component) |
| ESPHome Version Requirement | 2026.2.2 and later |
Add the External Components configuration to 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 Sensor component to enable sensor entities for AC measurements.
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 external_components:
- source: github://m5stack/esphome-yaml/components
components: [unit_acmeasure]
refresh: 0s
i2c:
sda: GPIOXX
scl: GPIOXX
scan: true
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