38 TEMPLATABLE_VALUE(
float, volume)
39 void play(Ts...
x)
override { this->
parent_->set_volume(this->volume_.value(
x...)); }
virtual void play(Ts... x)=0
Base class for all automation conditions.
Helper class to easily give an object a parent of type T.
void play(Ts... x) override
bool check(Ts... x) override
bool check(Ts... x) override
MuteOffAction(Speaker *speaker)
void play(Ts... x) override
MuteOnAction(Speaker *speaker)
void play(Ts... x) override
std::vector< uint8_t > data_static_
void set_data_static(const std::vector< uint8_t > &data)
std::function< std::vector< uint8_t >(Ts...)> data_func_
void play(Ts... x) override
void set_data_template(std::function< std::vector< uint8_t >(Ts...)> func)
virtual void set_mute_state(bool mute_state)
void play(Ts... x) override
Providing packet encoding functions for exchanging data with a remote host.