This guide shows how to use the Unit INA226 10A/1A DC measurement unit with an AtomS3R controller and integrate it into Home Assistant to monitor DC voltage, current and power 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 the I2C component to configure the communication pins between Unit INA226 and AtomS3R.
i2c:
sda: GPIO2
scl: GPIO1
scan: true Add the Sensor component to enable INA226 sensor entities.
sensor:
- platform: ina226
address: 0x41
# 10A
shunt_resistance: 0.08 ohm
# 1A
# 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 Main parameter descriptions:
| Parameter | Value | Description |
|---|---|---|
address | 0x41 | I2C address of Unit INA226 10A/1A. |
shunt_resistance | 0.08 ohm / 0.005 ohm | Use 0.08 for 10A and 0.005 for 1A shunt resistor. |
adc_time | 140us / 332us | ADC conversion time; voltage and current can be set separately. |
update_interval | 2s | How often measurements are updated to Home Assistant. |
current | Current | Reports DC current in amperes (A). |
shunt_voltage | Shunt Voltage | Reports shunt voltage in volts (V). |
bus_voltage | Bus Voltage | Reports bus voltage in volts (V). |
power | Power | Reports power in watts (W). |
SAVE, then click INSTALL.
Manual Download.
Download and choose Factory format (Previously Modern) to save the firmware locally.
CONNECT.

INSTALL.

Settings > Devices & Services to open the integrations page.
Discovered section find Unit INA226 10A/1A, click CONFIGURE and follow the wizard to complete setup.

