11 void play(
const Ts &...
x)
override { this->
parent_->start(); }
15 void play(
const Ts &...
x)
override { this->
parent_->stop(); }
19 void play(
const Ts &...
x)
override { this->
parent_->set_mute_state(
true); }
22 void play(
const Ts &...
x)
override { this->
parent_->set_mute_state(
false); }
34 bool check(
const Ts &...
x)
override {
return this->
parent_->is_running(); }
39 bool check(
const Ts &...
x)
override {
return this->
parent_->get_mute_state(); }
Base class for all automation conditions.
Helper class to easily give an object a parent of type T.
void trigger(const Ts &...x) ESPHOME_ALWAYS_INLINE
DataTrigger(Microphone *mic)
bool check(const Ts &...x) override
bool check(const Ts &...x) override
void add_data_callback(F &&data_callback)