17 void setup()
override;
43 void play(Ts...
x)
override { this->mhz19_->calibrate_zero(); }
53 void play(Ts...
x)
override { this->mhz19_->abc_enable(); }
63 void play(Ts...
x)
override { this->mhz19_->abc_disable(); }
void play(Ts... x) override
sensor::Sensor * temperature_sensor_
void set_warmup_seconds(uint32_t seconds)
This class simplifies creating components that periodically check a state.
sensor::Sensor * co2_sensor_
MHZ19ABCEnableAction(MHZ19Component *mhz19)
void set_abc_enabled(bool abc_enabled)
void dump_config() override
MHZ19ABCDisableAction(MHZ19Component *mhz19)
void play(Ts... x) override
bool mhz19_write_command_(const uint8_t *command, uint8_t *response)
Implementation of SPI Controller mode.
void set_co2_sensor(sensor::Sensor *co2_sensor)
MHZ19ABCLogic abc_boot_logic_
void play(Ts... x) override
Base-class for all sensors.
float get_setup_priority() const override
MHZ19CalibrateZeroAction(MHZ19Component *mhz19)
void set_temperature_sensor(sensor::Sensor *temperature_sensor)