52 void setup()
override;
53 void dump_config()
override;
54 void update()
override;
71 uint16_t learning_time_gain_hours, uint16_t gating_max_duration_minutes,
72 uint16_t std_initial, uint16_t gain_factor) {
80 voc_tuning_params_ = tuning_params;
83 uint16_t learning_time_gain_hours, uint16_t gating_max_duration_minutes,
84 uint16_t gain_factor) {
92 nox_tuning_params_ = tuning_params;
96 temp_comp.
offset = offset * 200;
99 temperature_compensation_ = temp_comp;
101 bool start_fan_cleaning();
104 bool write_tuning_parameters_(uint16_t i2c_command,
const GasTuning &tuning);
107 bool initialized_{
false};
120 uint8_t serial_number_[4];
Sen5xBaselines voc_baselines_storage_
const float DATA
For components that import data from directly connected sensors like DHT.
float get_setup_priority() const override
optional< RhtAccelerationMode > acceleration_mode_
struct esphome::sen5x::Sen5xBaselines PACKED
optional< GasTuning > nox_tuning_params_
uint16_t gating_max_duration_minutes
std::string product_name_
uint16_t learning_time_gain_hours
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
uint16_t learning_time_offset_hours
void set_pm_4_0_sensor(sensor::Sensor *pm_4_0)
This class simplifies creating components that periodically check a state.
void set_acceleration_mode(RhtAccelerationMode mode)
optional< GasTuning > voc_tuning_params_
optional< uint32_t > auto_cleaning_interval_
void set_auto_cleaning_interval(uint32_t auto_cleaning_interval)
ESPPreferenceObject pref_
void set_humidity_sensor(sensor::Sensor *humidity_sensor)
BedjetMode mode
BedJet operating mode.
uint32_t seconds_since_last_store_
void set_voc_sensor(sensor::Sensor *voc_sensor)
void set_store_baseline(bool store_baseline)
Implementation of a i2c functions for Sensirion sensors Sensirion data requires crc checking...
void set_temperature_compensation(float offset, float normalized_offset_slope, uint16_t time_constant)
void set_nox_sensor(sensor::Sensor *nox_sensor)
void set_pm_2_5_sensor(sensor::Sensor *pm_2_5)
int16_t normalized_offset_slope
void set_nox_algorithm_tuning(uint16_t index_offset, uint16_t learning_time_offset_hours, uint16_t learning_time_gain_hours, uint16_t gating_max_duration_minutes, uint16_t gain_factor)
void set_pm_10_0_sensor(sensor::Sensor *pm_10_0)
void set_voc_algorithm_tuning(uint16_t index_offset, uint16_t learning_time_offset_hours, uint16_t learning_time_gain_hours, uint16_t gating_max_duration_minutes, uint16_t std_initial, uint16_t gain_factor)
void set_pm_1_0_sensor(sensor::Sensor *pm_1_0)
Implementation of SPI Controller mode.
uint16_t firmware_version_
optional< TemperatureCompensation > temperature_compensation_
Base-class for all sensors.
const uint32_t SHORTEST_BASELINE_STORE_INTERVAL
const uint32_t MAXIMUM_STORAGE_DIFF