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