10 namespace growatt_solar {
12 static const float TWO_DEC_UNIT = 0.01;
13 static const float ONE_DEC_UNIT = 0.1;
struct esphome::growatt_solar::GrowattSolar::GrowattPhase phases_[3]
struct esphome::growatt_solar::GrowattSolar::GrowattPV pvs_[2]
void set_grid_frequency_sensor(sensor::Sensor *sensor)
void set_protocol_version(GrowattProtocolVersion protocol_version)
This class simplifies creating components that periodically check a state.
void set_today_production_sensor(sensor::Sensor *sensor)
sensor::Sensor * today_production_
void set_inverter_module_temp_sensor(sensor::Sensor *sensor)
sensor::Sensor * inverter_status_
void dump_config() override
sensor::Sensor * current_sensor_
sensor::Sensor * pv_active_power_sensor_
sensor::Sensor * active_power_sensor_
sensor::Sensor * active_power_sensor_
void set_voltage_sensor(uint8_t phase, sensor::Sensor *voltage_sensor)
sensor::Sensor * grid_active_power_sensor_
void set_pv_active_power_sensor(sensor::Sensor *sensor)
void set_current_sensor(uint8_t phase, sensor::Sensor *current_sensor)
void set_grid_active_power_sensor(sensor::Sensor *sensor)
sensor::Sensor * grid_frequency_sensor_
void set_total_energy_production_sensor(sensor::Sensor *sensor)
void set_active_power_sensor_pv(uint8_t pv, sensor::Sensor *active_power_sensor)
void set_current_sensor_pv(uint8_t pv, sensor::Sensor *current_sensor)
sensor::Sensor * current_sensor_
sensor::Sensor * voltage_sensor_
GrowattProtocolVersion protocol_version_
void on_modbus_data(const std::vector< uint8_t > &data) override
sensor::Sensor * voltage_sensor_
void set_voltage_sensor_pv(uint8_t pv, sensor::Sensor *voltage_sensor)
Implementation of SPI Controller mode.
sensor::Sensor * total_energy_production_
Base-class for all sensors.
void set_inverter_status_sensor(sensor::Sensor *sensor)
void set_active_power_sensor(uint8_t phase, sensor::Sensor *active_power_sensor)
esphome::sensor::Sensor * sensor
sensor::Sensor * inverter_module_temp_