English
English
简体中文
日本語

Unit AC Measure ESPHome Component

The Unit AC Measure component reads parameters such as AC voltage, current, active power, and accumulated energy consumption.

1. Component Overview

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

2. Component Description

Including the External Component

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

Sensor Configuration

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

3. Reference Example

yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
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
Page Tools
PDF
On This Page