ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
max17043
automation.h
Go to the documentation of this file.
1
2
#pragma once
3
#include "
esphome/core/automation.h
"
4
#include "
max17043.h
"
5
6
namespace
esphome::max17043
{
7
8
template
<
typename
... Ts>
class
SleepAction
:
public
Action
<Ts...> {
9
public
:
10
explicit
SleepAction
(
MAX17043Component
*max17043) :
max17043_
(max17043) {}
11
12
void
play
(
const
Ts &...
x
)
override
{ this->
max17043_
->
sleep_mode
(); }
13
14
protected
:
15
MAX17043Component
*
max17043_
;
16
};
17
18
}
// namespace esphome::max17043
esphome::Action
Definition
automation.h:487
esphome::max17043::MAX17043Component
Definition
max17043.h:9
esphome::max17043::MAX17043Component::sleep_mode
void sleep_mode()
Definition
max17043.cpp:83
esphome::max17043::SleepAction
Definition
automation.h:8
esphome::max17043::SleepAction::max17043_
MAX17043Component * max17043_
Definition
automation.h:15
esphome::max17043::SleepAction::SleepAction
SleepAction(MAX17043Component *max17043)
Definition
automation.h:10
esphome::max17043::SleepAction::play
void play(const Ts &...x) override
Definition
automation.h:12
automation.h
max17043.h
esphome::max17043
Definition
automation.h:6
x
uint16_t x
Definition
tt21100.cpp:5
Generated by
1.12.0