37 void setup()
override;
This class simplifies creating components that periodically check a state.
This Class provides the methods to read/write bytes from/to an i2c device.
uint8_t address_
store the address of the device on the bus
Temperature, pressure, and humidity sensor.
void read_humidity_(float temperature_float)
process async humidity read
void request_read_temperature_()
Start async temperature read.
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
struct esphome::ms8607::MS8607Component::CalibrationValues calibration_values_
MS8607HumidityDevice * humidity_device_
I2CDevice object to communicate with secondary I2C address for the humidity sensor.
void set_pressure_sensor(sensor::Sensor *pressure_sensor)
void set_humidity_sensor(sensor::Sensor *humidity_sensor)
float get_setup_priority() const override
sensor::Sensor * temperature_sensor_
sensor::Sensor * humidity_sensor_
void set_humidity_device(MS8607HumidityDevice *humidity_device)
SetupStatus setup_status_
Current step in the multi-step & possibly delayed setup() process.
void calculate_values_(uint32_t raw_temperature, uint32_t raw_pressure)
use raw temperature & pressure to calculate & publish values
void read_pressure_(uint32_t raw_temperature)
process async pressure read
ErrorCode error_code_
Keep track of the reason why this component failed, to augment the dumped config.
virtual ~MS8607Component()=default
bool read_calibration_values_from_prom_()
Read and store the Pressure & Temperature calibration settings from the PROM.
void request_read_pressure_(uint32_t raw_temperature)
start async pressure read
sensor::Sensor * pressure_sensor_
void read_temperature_()
Process async temperature read.
void dump_config() override
void request_read_humidity_(float temperature_float)
start async humidity read
Class for I2CDevice used to communicate with the Humidity sensor on the chip.
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.
This device's pressure & temperature calibration values, read from PROM.
uint16_t pressure_offset_temperature_coefficient
Temperature coefficient of pressure offset | TCO. [C4].
uint16_t temperature_coefficient_of_temperature
Temperature coefficient of the temperature | TEMPSENS. [C6].
uint16_t pressure_sensitivity_temperature_coefficient
Temperature coefficient of pressure sensitivity | TCS. [C3].
uint16_t pressure_sensitivity
Pressure sensitivity | SENS-T1. [C1].
uint16_t pressure_offset
Pressure offset | OFF-T1. [C2].
uint16_t reference_temperature
Reference temperature | T-REF. [C5].