ESPHome 2026.8.0-dev
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1#pragma once
2
7
9
10template<typename... Ts>
11class DigitalWriteAction final : public Action<Ts...>, public Parented<RemoteTransmitterComponent> {
12 public:
13 TEMPLATABLE_VALUE(bool, value)
14 void play(const Ts &...x) override { this->parent_->digital_write(this->value_.value(x...)); }
15};
16
17} // 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:1881
RemoteTransmitterComponent * parent_
Definition helpers.h:1892
TEMPLATABLE_VALUE(bool, value) void play(const Ts &...x) override
Definition automation.h:13
uint16_t x
Definition tt21100.cpp:5