32 void setup()
override;
33 void update()
override;
34 void dump_config()
override;
38 void send_env_data_();
39 void read_iaq_baseline_();
40 bool is_sensor_baseline_reliable_();
41 void write_iaq_baseline_(uint16_t eco2_baseline, uint16_t tvoc_baseline);
55 } error_code_{UNKNOWN};
61 uint16_t eco2_baseline_{0x0000};
62 uint16_t tvoc_baseline_{0x0000};
const float DATA
For components that import data from directly connected sensors like DHT.
uint32_t seconds_since_last_store_
void set_eco2_baseline_sensor(sensor::Sensor *eco2_baseline)
void set_tvoc_baseline_sensor(sensor::Sensor *tvoc_baseline)
void set_eco2_sensor(sensor::Sensor *eco2)
This class simplifies creating components that periodically check a state.
void set_store_baseline(bool store_baseline)
void set_eco2_baseline(uint16_t eco2_baseline)
SGP30Baselines baselines_storage_
struct esphome::sgp30::SGP30Baselines PACKED
ESPPreferenceObject pref_
void set_humidity_sensor(sensor::Sensor *humidity)
uint32_t required_warm_up_time_
void set_temperature_sensor(sensor::Sensor *temperature)
Implementation of a i2c functions for Sensirion sensors Sensirion data requires crc checking...
This class implements support for the Sensirion SGP30 i2c GAS (VOC and CO2eq) sensors.
Implementation of SPI Controller mode.
Base-class for all sensors.
void set_tvoc_sensor(sensor::Sensor *tvoc)
void set_tvoc_baseline(uint16_t tvoc_baseline)
float get_setup_priority() const override