38 TEMPLATABLE_VALUE(
float, volume)
39 void play(Ts...
x)
override { this->
parent_->set_volume(this->volume_.value(
x...)); }
46 void play(Ts...
x)
override { this->speaker_->set_mute_state(
true); }
56 void play(Ts...
x)
override { this->speaker_->set_mute_state(
false); }
void set_data_template(std::function< std::vector< uint8_t >(Ts...)> func)
void set_data_static(const std::vector< uint8_t > &data)
std::function< std::vector< uint8_t >Ts...)> data_func_
std::vector< uint8_t > data_static_
MuteOffAction(Speaker *speaker)
void play(Ts... x) override
Base class for all automation conditions.
MuteOnAction(Speaker *speaker)
void play(Ts... x) override
void play(Ts... x) override
void play(Ts... x) override
void play(Ts... x) override
Implementation of SPI Controller mode.
bool check(Ts... x) override
bool check(Ts... x) override
Helper class to easily give an object a parent of type T.