ESPHome 2026.3.0
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1#pragma once
2
4
5#ifdef USE_ESP32
6
9
11
12template<typename... Ts> class SetPlaylistDelayAction : public Action<Ts...> {
13 public:
15
16 TEMPLATABLE_VALUE(uint8_t, pipeline)
18
19 void play(const Ts &...x) override {
20 this->parent_->set_playlist_delay_ms(this->pipeline_.value(x...), this->delay_.value(x...));
21 }
22
23 protected:
25};
26
27} // namespace esphome::speaker_source
28
29#endif // USE_ESP32
delay void play(const Ts &...x) override
Definition automation.h:19
TEMPLATABLE_VALUE(uint8_t, pipeline) TEMPLATABLE_VALUE(uint32_t
SetPlaylistDelayAction(SpeakerSourceMediaPlayer *parent)
Definition automation.h:14
void set_playlist_delay_ms(uint8_t pipeline, uint32_t delay_ms)
void HOT delay(uint32_t ms)
Definition core.cpp:28
static void uint32_t
uint16_t x
Definition tt21100.cpp:5