7 namespace absolute_humidity {
25 void setup()
override;
44 static float es_buck(
float temperature_c);
49 static float es_tetens(
float temperature_c);
54 static float es_wobus(
float temperature_c);
sensor::Sensor * humidity_sensor_
void dump_config() override
static float vapor_density(float es, float hr, float ta)
Calculate vapor density (absolute humidity) in g/m³.
sensor::Sensor * temperature_sensor_
SaturationVaporPressureEquation equation_
static float es_tetens(float temperature_c)
Tetens equation for saturation vapor pressure in kPa.
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
float state
This member variable stores the last state that has passed through all filters.
float get_setup_priority() const override
AbsoluteHumidityComponent()=default
void temperature_callback_(float state)
This class implements calculation of absolute humidity from temperature and relative humidity...
void set_equation(SaturationVaporPressureEquation equation)
void set_humidity_sensor(sensor::Sensor *humidity_sensor)
Implementation of SPI Controller mode.
static float es_wobus(float temperature_c)
Wobus equation for saturation vapor pressure in kPa.
void humidity_callback_(float state)
Base-class for all sensors.
SaturationVaporPressureEquation
Enum listing all implemented saturation vapor pressure equations.
static float es_buck(float temperature_c)
Buck equation for saturation vapor pressure in kPa.