ESPHome
2025.5.0
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
{
7
namespace
max17043 {
8
9
template
<
typename
... Ts>
class
SleepAction
:
public
Action
<Ts...> {
10
public
:
11
explicit
SleepAction
(
MAX17043Component
*max17043) :
max17043_
(max17043) {}
12
13
void
play
(Ts...
x
)
override
{ this->
max17043_
->
sleep_mode
(); }
14
15
protected
:
16
MAX17043Component
*
max17043_
;
17
};
18
19
}
// namespace max17043
20
}
// namespace esphome
esphome::Action
Definition
automation.h:122
esphome::max17043::MAX17043Component
Definition
max17043.h:10
esphome::max17043::MAX17043Component::sleep_mode
void sleep_mode()
Definition
max17043.cpp:88
esphome::max17043::SleepAction
Definition
automation.h:9
esphome::max17043::SleepAction::max17043_
MAX17043Component * max17043_
Definition
automation.h:16
esphome::max17043::SleepAction::SleepAction
SleepAction(MAX17043Component *max17043)
Definition
automation.h:11
esphome::max17043::SleepAction::play
void play(Ts... x) override
Definition
automation.h:13
automation.h
max17043.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
x
uint16_t x
Definition
tt21100.cpp:5
Generated by
1.12.0