22 void setup()
override;
This class simplifies creating components that periodically check a state.
enum esphome::ccs811::CCS811Component::ErrorCode UNKNOWN
void dump_config() override
optional< uint16_t > baseline_
void set_version(text_sensor::TextSensor *version)
void set_humidity(sensor::Sensor *humidity)
text_sensor::TextSensor * version_
sensor::Sensor * temperature_
Input sensor for temperature reading.
void set_baseline(uint16_t baseline)
void set_co2(sensor::Sensor *co2)
void set_temperature(sensor::Sensor *temperature)
void set_tvoc(sensor::Sensor *tvoc)
optional< uint8_t > read_status_()
sensor::Sensor * humidity_
Input sensor for humidity reading.
float get_setup_priority() const override
void setup() override
Setup the sensor and test for a connection.
bool status_app_is_valid_()
void update() override
Schedule temperature+pressure readings.
This Class provides the methods to read/write bytes from/to an i2c device.
bool read_byte(uint8_t a_register, uint8_t *data, bool stop=true)
value_type value_or(U const &v) const
Base-class for all sensors.
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.