ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace esphome {
9namespace remote_transmitter {
10
11template<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
virtual void play(Ts... x)=0
Helper class to easily give an object a parent of type T.
Definition helpers.h:656
RemoteTransmitterComponent * parent_
Definition helpers.h:667
TEMPLATABLE_VALUE(bool, value) void play(Ts... x) override
Definition automation.h:13
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
uint16_t x
Definition tt21100.cpp:5