Unit INA226 10A/1A 组件用于读取直流电压、电流和功率数据。

| 项目 | 信息 |
|---|---|
| 产品名称 | Unit INA226 10A / Unit INA226 1A |
| SKU | U200 / U200-1A |
| 主要功能 | 直流电压、电流和功率测量 |
| 通信接口 | I2C |
| 默认 I2C 地址 | 0x41 |
| ESPHome 组件 | ina226 |
| ESPHome 版本要求 | 2026.2.2 及以上 |
Unit INA226 10A/1A 使用 ESPHome 官方 INA226 传感器组件,可读取电流、分流电压、总线电压和功率。
sensor:
- platform: ina226
address: 0x41
# 10 A 版本
shunt_resistance: 0.005 ohm
# 1 A 版本
# shunt_resistance: 0.08 ohm
adc_time:
voltage: 140us
current: 332us
adc_averaging: 4
update_interval: 2s
current:
name: "Current"
accuracy_decimals: 4
shunt_voltage:
name: "Shunt_Voltage"
accuracy_decimals: 5
bus_voltage:
name: "Bus_Voltage"
accuracy_decimals: 4
power:
name: "Power"
accuracy_decimals: 4 主要参数说明:
| 参数 | 值 | 说明 |
|---|---|---|
address | 0x41 | Unit INA226 10A/1A 的 I2C 地址。 |
shunt_resistance | 0.005 ohm / 0.08 ohm | 10A 使用 0.005 ohm,1A 使用 0.08 ohm 的分流电阻。 |
adc_time | 140us / 332us | ADC 转换时间,电压和电流可分别设置。 |
update_interval | 2s | 向 Home Assistant 更新测量数值的时间间隔。 |
current | Current | 报告直流电流,单位为安培(A)。 |
shunt_voltage | Shunt Voltage | 报告分流电压,单位为伏特(V)。 |
bus_voltage | Bus Voltage | 报告总线电压,单位为伏特(V)。 |
power | Power | 报告功率,单位为瓦特(W)。 |
i2c:
sda: GPIOXX
scl: GPIOXX
scan: true
sensor:
- platform: ina226
address: 0x41
shunt_resistance: 0.005 ohm
adc_time:
voltage: 140us
current: 332us
adc_averaging: 4
update_interval: 2s
current:
name: "Current"
accuracy_decimals: 4
shunt_voltage:
name: "Shunt_Voltage"
accuracy_decimals: 5
bus_voltage:
name: "Bus_Voltage"
accuracy_decimals: 4
power:
name: "Power"
accuracy_decimals: 4