ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
scd30
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 "
scd30.h
"
6
7
namespace
esphome::scd30
{
8
9
template
<
typename
... Ts>
class
ForceRecalibrationWithReference
:
public
Action
<Ts...>,
public
Parented
<SCD30Component> {
10
public
:
11
void
play
(
const
Ts &...
x
)
override
{
12
if
(this->value_.has_value()) {
13
this->
parent_
->force_recalibration_with_reference(this->value_.value(
x
...));
14
}
15
}
16
17
protected
:
18
TEMPLATABLE_VALUE(uint16_t, value)
19
};
20
21
}
// namespace esphome::scd30
esphome::Action
Definition
automation.h:487
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1861
esphome::Parented< SCD30Component >::parent_
SCD30Component * parent_
Definition
helpers.h:1872
esphome::scd30::ForceRecalibrationWithReference
Definition
automation.h:9
esphome::scd30::ForceRecalibrationWithReference::play
void play(const Ts &...x) override
Definition
automation.h:11
component.h
automation.h
esphome::scd30
Definition
automation.h:7
scd30.h
x
uint16_t x
Definition
tt21100.cpp:5
Generated by
1.12.0