ESPHome 2026.2.1
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1#pragma once
2
7
9
10template<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
virtual void play(const Ts &...x)=0
Helper class to easily give an object a parent of type T.
Definition helpers.h:1471
RemoteTransmitterComponent * parent_
Definition helpers.h:1482
TEMPLATABLE_VALUE(bool, value) void play(const Ts &...x) override
Definition automation.h:12
uint16_t x
Definition tt21100.cpp:5