10#ifdef USE_INA3221_SUMMATION
11 SUB_SENSOR(sum_shunt_voltage)
12 SUB_SENSOR(sum_current)
17 void setup()
override;
18 void dump_config()
override;
19 void update()
override;
20 void on_powerdown()
override;
28 void set_shunt_resistance(
int channel,
float resistance_ohm);
30 void set_config_register(uint16_t config) { this->
config_ = config; }
33#ifdef USE_INA3221_ALERT_LIMITS
47#ifdef USE_INA3221_ALERT_LIMITS
virtual void setup()
Where the component's initialization should happen.
This class simplifies creating components that periodically check a state.
This Class provides the methods to read/write bytes from/to an i2c device.
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
struct esphome::ina3221::INA3221Component::INA3221Channel channels_[3]
uint16_t single_shot_wait_ms_
Base-class for all sensors.
sensor::Sensor * shunt_voltage_sensor_
bool should_measure_shunt_voltage()
sensor::Sensor * bus_voltage_sensor_
bool should_measure_bus_voltage()
sensor::Sensor * power_sensor_
sensor::Sensor * current_sensor_