ESPHome
2025.9.0-dev
Loading...
Searching...
No Matches
esphome
components
remote_transmitter
automation.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/remote_transmitter/remote_transmitter.h
"
4
#include "
esphome/core/automation.h
"
5
#include "
esphome/core/component.h
"
6
#include "
esphome/core/helpers.h
"
7
8
namespace
esphome
{
9
namespace
remote_transmitter {
10
11
template
<
typename
... Ts>
class
DigitalWriteAction
:
public
Action
<Ts...>,
public
Parented
<RemoteTransmitterComponent> {
12
public
:
13
TEMPLATABLE_VALUE
(
bool
, value)
14
void
play
(Ts...
x
)
override
{ this->
parent_
->digital_write(this->value_.value(
x
...)); }
15
};
16
17
}
// namespace remote_transmitter
18
}
// namespace esphome
esphome::Action
Definition
automation.h:171
esphome::Action< Ts... >::play
virtual void play(Ts... x)=0
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:656
esphome::Parented< RemoteTransmitterComponent >::parent_
RemoteTransmitterComponent * parent_
Definition
helpers.h:667
esphome::remote_transmitter::DigitalWriteAction
Definition
automation.h:11
esphome::remote_transmitter::DigitalWriteAction::TEMPLATABLE_VALUE
TEMPLATABLE_VALUE(bool, value) void play(Ts... x) override
Definition
automation.h:13
component.h
automation.h
helpers.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
remote_transmitter.h
x
uint16_t x
Definition
tt21100.cpp:5
Generated by
1.12.0