ESPHome
2025.2.0
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
d
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Functions
_
a
l
m
o
s
t
u
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
esphome
esphome
components
scd4x
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 "
scd4x.h
"
6
7
namespace
esphome
{
8
namespace
scd4x {
9
10
template
<
typename
... Ts>
class
PerformForcedCalibrationAction
:
public
Action
<Ts...>,
public
Parented
<SCD4XComponent> {
11
public
:
12
void
play
(Ts...
x
)
override
{
13
if
(this->value_.has_value()) {
14
this->
parent_
->perform_forced_calibration(this->value_.value(
x
...));
15
}
16
}
17
18
protected
:
19
TEMPLATABLE_VALUE(uint16_t, value)
20
};
21
22
template
<
typename
... Ts>
class
FactoryResetAction
:
public
Action
<Ts...>,
public
Parented
<SCD4XComponent> {
23
public
:
24
void
play
(Ts...
x
)
override
{ this->
parent_
->factory_reset(); }
25
};
26
27
}
// namespace scd4x
28
}
// namespace esphome
esphome::scd4x::PerformForcedCalibrationAction
Definition:
automation.h:10
esphome::scd4x::FactoryResetAction::play
void play(Ts... x) override
Definition:
automation.h:24
x
uint16_t x
Definition:
tt21100.cpp:17
esphome::scd4x::PerformForcedCalibrationAction::play
void play(Ts... x) override
Definition:
automation.h:12
automation.h
esphome::Action
Definition:
automation.h:121
esphome::Parented< SCD4XComponent >::parent_
SCD4XComponent * parent_
Definition:
helpers.h:549
scd4x.h
esphome::scd4x::FactoryResetAction
Definition:
automation.h:22
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition:
helpers.h:538
Generated by
1.8.13