ESPHome
2024.10.2
esphome
esphome
components
sen5x
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 "
sen5x.h
"
6
7
namespace
esphome
{
8
namespace
sen5x {
9
10
template
<
typename
... Ts>
class
StartFanAction
:
public
Action
<Ts...> {
11
public
:
12
explicit
StartFanAction
(
SEN5XComponent
*sen5x) :
sen5x_
(sen5x) {}
13
14
void
play
(Ts...
x
)
override
{ this->
sen5x_
->
start_fan_cleaning
(); }
15
16
protected
:
17
SEN5XComponent
*
sen5x_
;
18
};
19
20
}
// namespace sen5x
21
}
// namespace esphome
esphome::sen5x::StartFanAction
Definition:
automation.h:10
esphome::sen5x::StartFanAction::StartFanAction
StartFanAction(SEN5XComponent *sen5x)
Definition:
automation.h:12
x
uint16_t x
Definition:
tt21100.cpp:17
automation.h
esphome::sen5x::StartFanAction::play
void play(Ts... x) override
Definition:
automation.h:14
esphome::sen5x::SEN5XComponent
Definition:
sen5x.h:49
esphome::Action
Definition:
automation.h:121
esphome::sen5x::StartFanAction::sen5x_
SEN5XComponent * sen5x_
Definition:
automation.h:17
esphome::sen5x::SEN5XComponent::start_fan_cleaning
bool start_fan_cleaning()
Definition:
sen5x.cpp:412
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
sen5x.h
Generated by
1.8.13