ESPHome
2026.2.1
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::remote_transmitter
{
9
10
template
<
typename
... Ts>
class
DigitalWriteAction
:
public
Action
<Ts...>,
public
Parented
<RemoteTransmitterComponent> {
11
public
:
12
TEMPLATABLE_VALUE
(
bool
, value)
13
void
play
(
const
Ts &...
x
)
override
{ this->
parent_
->digital_write(this->value_.value(
x
...)); }
14
};
15
16
}
// namespace esphome::remote_transmitter
esphome::Action
Definition
automation.h:305
esphome::Action< Ts... >::play
virtual void play(const Ts &...x)=0
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1471
esphome::Parented< RemoteTransmitterComponent >::parent_
RemoteTransmitterComponent * parent_
Definition
helpers.h:1482
esphome::remote_transmitter::DigitalWriteAction
Definition
automation.h:10
esphome::remote_transmitter::DigitalWriteAction::TEMPLATABLE_VALUE
TEMPLATABLE_VALUE(bool, value) void play(const Ts &...x) override
Definition
automation.h:12
component.h
automation.h
helpers.h
esphome::remote_transmitter
Definition
automation.h:8
remote_transmitter.h
x
uint16_t x
Definition
tt21100.cpp:5
Generated by
1.12.0