11 static const uint8_t SELECT_COMM_CMD = 0X88;
24 void setup()
override;
AQICalculatorFactory aqi_calculator_factory_
enum esphome::hm3301::HM3301Component::@81 NO_ERROR
sensor::Sensor * pm_2_5_sensor_
sensor::Sensor * pm_1_0_sensor_
uint16_t get_sensor_value_(const uint8_t *data, uint8_t i)
sensor::Sensor * pm_10_0_sensor_
This class simplifies creating components that periodically check a state.
void set_pm_1_0_sensor(sensor::Sensor *pm_1_0_sensor)
void set_aqi_calculation_type(AQICalculatorType aqi_calc_type)
sensor::Sensor * aqi_sensor_
void set_aqi_sensor(sensor::Sensor *aqi_sensor)
void set_pm_10_0_sensor(sensor::Sensor *pm_10_0_sensor)
bool validate_checksum_(const uint8_t *data)
float get_setup_priority() const override
AQICalculatorType aqi_calc_type_
HM3301Component()=default
Implementation of SPI Controller mode.
void set_pm_2_5_sensor(sensor::Sensor *pm_2_5_sensor)
Base-class for all sensors.
void dump_config() override
This Class provides the methods to read/write bytes from/to an i2c device.