This class simplifies creating components that periodically check a state.
void set_insulation_of_p_to_ground_sensor_pv(uint8_t pv, sensor::Sensor *insulation_of_p_to_ground_sensor)
void set_current_sensor_pv(uint8_t pv, sensor::Sensor *current_sensor)
void on_read_holding_registers(uint16_t start_address, std::span< const uint16_t > registers, modbus::ResponseStatus status) override
void set_active_power_sensor_pv(uint8_t pv, sensor::Sensor *active_power_sensor)
void dump_config() override
void set_voltage_sampled_by_secondary_cpu_sensor_pv(uint8_t pv, sensor::Sensor *voltage_sampled_by_secondary_cpu_sensor)
struct esphome::havells_solar::HavellsSolar::HAVELLSPV pvs_[2]
void set_voltage_sensor(uint8_t phase, sensor::Sensor *voltage_sensor)
void set_voltage_sensor_pv(uint8_t pv, sensor::Sensor *voltage_sensor)
struct esphome::havells_solar::HavellsSolar::HAVELLSPhase phases_[3]
SUB_SENSOR(frequency) SUB_SENSOR(active_power) SUB_SENSOR(reactive_power) SUB_SENSOR(today_production) SUB_SENSOR(total_energy_production) SUB_SENSOR(total_generation_time) SUB_SENSOR(today_generation_time) SUB_SENSOR(inverter_module_temp) SUB_SENSOR(inverter_inner_temp) SUB_SENSOR(inverter_bus_voltage) SUB_SENSOR(insulation_pv_n_to_ground) SUB_SENSOR(gfci_value) SUB_SENSOR(dci_of_r) SUB_SENSOR(dci_of_s) SUB_SENSOR(dci_of_t) void update() override
void set_current_sensor(uint8_t phase, sensor::Sensor *current_sensor)
Base-class for all sensors.
std::optional< ExceptionCode > ResponseStatus
sensor::Sensor * voltage_sensor_
sensor::Sensor * voltage_sampled_by_secondary_cpu_sensor_
sensor::Sensor * current_sensor_
sensor::Sensor * insulation_of_p_to_ground_sensor_
sensor::Sensor * active_power_sensor_
sensor::Sensor * current_sensor_
sensor::Sensor * voltage_sensor_