ESPHome
2024.9.2
esphome
esphome
components
sps30
automation.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/core/automation.h
"
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
:
17
SPS30Component
*
sps30_
;
18
};
19
20
}
// namespace sps30
21
}
// namespace esphome
esphome::sps30::SPS30Component
This class implements support for the Sensirion SPS30 i2c/UART Particulate Matter PM1...
Definition:
sps30.h:12
esphome::sps30::StartFanAction::StartFanAction
StartFanAction(SPS30Component *sps30)
Definition:
automation.h:12
x
uint16_t x
Definition:
tt21100.cpp:17
automation.h
esphome::sps30::StartFanAction::play
void play(Ts... x) override
Definition:
automation.h:14
esphome::sps30::SPS30Component::start_fan_cleaning
bool start_fan_cleaning()
Definition:
sps30.cpp:226
esphome::sps30::StartFanAction::sps30_
SPS30Component * sps30_
Definition:
automation.h:17
esphome::Action
Definition:
automation.h:121
esphome::sps30::StartFanAction
Definition:
automation.h:10
sps30.h
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
Generated by
1.8.13