ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
ld2410
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 "
ld2410.h
"
6
7
namespace
esphome
{
8
namespace
ld2410 {
9
10
template
<
typename
... Ts>
class
BluetoothPasswordSetAction
:
public
Action
<Ts...> {
11
public
:
12
explicit
BluetoothPasswordSetAction
(
LD2410Component
*ld2410_comp) :
ld2410_comp_
(ld2410_comp) {}
13
TEMPLATABLE_VALUE
(std::string, password)
14
15
void
play
(Ts...
x
)
override
{ this->
ld2410_comp_
->set_bluetooth_password(this->password_.value(
x
...)); }
16
17
protected
:
18
LD2410Component
*
ld2410_comp_
;
19
};
20
21
}
// namespace ld2410
22
}
// namespace esphome
esphome::Action
Definition
automation.h:122
esphome::Action< Ts... >::play
virtual void play(Ts... x)=0
esphome::ld2410::BluetoothPasswordSetAction
Definition
automation.h:10
esphome::ld2410::BluetoothPasswordSetAction::ld2410_comp_
LD2410Component * ld2410_comp_
Definition
automation.h:18
esphome::ld2410::BluetoothPasswordSetAction::BluetoothPasswordSetAction
BluetoothPasswordSetAction(LD2410Component *ld2410_comp)
Definition
automation.h:12
esphome::ld2410::BluetoothPasswordSetAction::TEMPLATABLE_VALUE
TEMPLATABLE_VALUE(std::string, password) void play(Ts... x) override
Definition
automation.h:13
esphome::ld2410::LD2410Component
Definition
ld2410.h:137
component.h
automation.h
ld2410.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