12 void setup()
override;
void set_shunt_voltage_sensor(int channel, sensor::Sensor *obj)
float get_setup_priority() const override
bool should_measure_shunt_voltage()
bool should_measure_bus_voltage()
sensor::Sensor * bus_voltage_sensor_
void set_current_sensor(int channel, sensor::Sensor *obj)
void set_power_sensor(int channel, sensor::Sensor *obj)
This class simplifies creating components that periodically check a state.
sensor::Sensor * shunt_voltage_sensor_
struct esphome::ina3221::INA3221Component::INA3221Channel channels_[3]
sensor::Sensor * current_sensor_
sensor::Sensor * power_sensor_
void set_bus_voltage_sensor(int channel, sensor::Sensor *obj)
Implementation of SPI Controller mode.
void set_shunt_resistance(int channel, float resistance_ohm)
void dump_config() override
Base-class for all sensors.
This Class provides the methods to read/write bytes from/to an i2c device.