ESPHome  2024.12.2
automation.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "sps30.h"
6 
7 namespace esphome {
8 namespace sps30 {
9 
10 template<typename... Ts> class StartFanAction : public Action<Ts...> {
11  public:
12  explicit StartFanAction(SPS30Component *sps30) : sps30_(sps30) {}
13 
14  void play(Ts... x) override { this->sps30_->start_fan_cleaning(); }
15 
16  protected:
18 };
19 
20 } // namespace sps30
21 } // namespace esphome
This class implements support for the Sensirion SPS30 i2c/UART Particulate Matter PM1...
Definition: sps30.h:12
StartFanAction(SPS30Component *sps30)
Definition: automation.h:12
uint16_t x
Definition: tt21100.cpp:17
void play(Ts... x) override
Definition: automation.h:14
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7