ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
aic3204
automation.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/automation.h
"
4
#include "
esphome/core/component.h
"
5
#include "
aic3204.h
"
6
7
namespace
esphome::aic3204
{
8
9
template
<
typename
... Ts>
class
SetAutoMuteAction
:
public
Action
<Ts...> {
10
public
:
11
explicit
SetAutoMuteAction
(
AIC3204
*aic3204) :
aic3204_
(aic3204) {}
12
13
TEMPLATABLE_VALUE
(uint8_t, auto_mute_mode)
14
15
void
play
(
const
Ts &...
x
)
override
{ this->
aic3204_
->
set_auto_mute_mode
(this->auto_mute_mode_.value(
x
...)); }
16
17
protected
:
18
AIC3204
*
aic3204_
;
19
};
20
21
}
// namespace esphome::aic3204
aic3204.h
esphome::Action
Definition
automation.h:487
esphome::Action< Ts... >::play
virtual void play(const Ts &...x)=0
esphome::aic3204::AIC3204
Definition
aic3204.h:64
esphome::aic3204::AIC3204::set_auto_mute_mode
bool set_auto_mute_mode(uint8_t auto_mute_mode)
Definition
aic3204.cpp:127
esphome::aic3204::SetAutoMuteAction
Definition
automation.h:9
esphome::aic3204::SetAutoMuteAction::aic3204_
AIC3204 * aic3204_
Definition
automation.h:18
esphome::aic3204::SetAutoMuteAction::TEMPLATABLE_VALUE
TEMPLATABLE_VALUE(uint8_t, auto_mute_mode) void play(const Ts &...x) override
Definition
automation.h:13
esphome::aic3204::SetAutoMuteAction::SetAutoMuteAction
SetAutoMuteAction(AIC3204 *aic3204)
Definition
automation.h:11
component.h
automation.h
esphome::aic3204
Definition
aic3204.cpp:7
x
uint16_t x
Definition
tt21100.cpp:5
Generated by
1.12.0