13 #ifdef USE_TEXT_SENSOR 23 namespace bme68x_bsec2 {
49 void setup()
override;
82 #ifdef USE_TEXT_SENSOR 93 void read_(int64_t trigger_time_ns);
94 void publish_(
const bsec_output_t *outputs, uint8_t num_outputs);
100 #ifdef USE_TEXT_SENSOR 124 std::queue<std::function<void()>>
queue_;
156 #ifdef USE_TEXT_SENSOR void publish_(const bsec_output_t *outputs, uint8_t num_outputs)
SampleRate pressure_sample_rate_
void set_pressure_sample_rate(SampleRate sample_rate)
uint32_t state_save_interval_ms_
void set_config_(const uint8_t *config, u_int32_t len)
sensor::Sensor * gas_resistance_sensor_
void publish_sensor_(sensor::Sensor *sensor, float value, bool change_only=false)
ESPPreferenceObject bsec_state_
uint32_t millis_overflow_counter_
void set_gas_resistance_sensor(sensor::Sensor *sensor)
void set_iaq_accuracy_sensor(sensor::Sensor *sensor)
float temperature_offset_
bsec_library_return_t bsec_status_
uint8_t bsec_instance_[BSEC_INSTANCE_SIZE]
float get_setup_priority() const override
sensor::Sensor * iaq_accuracy_sensor_
sensor::Sensor * breath_voc_equivalent_sensor_
void set_iaq_static_sensor(sensor::Sensor *sensor)
void set_operating_age(OperatingAge operating_age)
sensor::Sensor * humidity_sensor_
bool bsec2_blob_configured_
void set_algorithm_output(AlgorithmOutput algorithm_output)
void set_bsec2_configuration(const uint8_t *data, const uint32_t len)
sensor::Sensor * co2_equivalent_sensor_
void set_iaq_sensor(sensor::Sensor *sensor)
float calc_sensor_sample_rate_(SampleRate sample_rate)
struct bme68x_dev bme68x_
void update_subscription_()
AlgorithmOutput algorithm_output_
struct bme68x_heatr_conf bme68x_heatr_conf_
void set_co2_equivalent_sensor(sensor::Sensor *sensor)
sensor::Sensor * iaq_sensor_
void save_state_(uint8_t accuracy)
void set_iaq_accuracy_text_sensor(text_sensor::TextSensor *sensor)
sensor::Sensor * pressure_sensor_
uint8_t const * bsec2_configuration_
void set_temperature_sensor(sensor::Sensor *sensor)
uint32_t bsec2_configuration_length_
text_sensor::TextSensor * iaq_accuracy_text_sensor_
bsec_bme_settings_t bsec_settings_
OperatingAge operating_age_
SampleRate temperature_sample_rate_
void set_pressure_sensor(sensor::Sensor *sensor)
void set_humidity_sample_rate(SampleRate sample_rate)
void set_state_save_interval(uint32_t interval)
void set_voltage(Voltage voltage)
sensor::Sensor * iaq_static_sensor_
void dump_config() override
void set_sample_rate(SampleRate sample_rate)
void queue_push_(std::function< void()> &&f)
void set_breath_voc_equivalent_sensor(sensor::Sensor *sensor)
void set_humidity_sensor(sensor::Sensor *sensor)
Implementation of SPI Controller mode.
void set_temperature_offset(float offset)
virtual uint32_t get_hash()=0
Base-class for all sensors.
SampleRate humidity_sample_rate_
void read_(int64_t trigger_time_ns)
std::queue< std::function< void()> > queue_
uint32_t last_state_save_ms_
void set_temperature_sample_rate(SampleRate sample_rate)
esphome::sensor::Sensor * sensor
sensor::Sensor * temperature_sensor_