ESPHome
2026.1.0-dev
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::ld2410
{
8
9
template
<
typename
... Ts>
class
BluetoothPasswordSetAction
:
public
Action
<Ts...> {
10
public
:
11
explicit
BluetoothPasswordSetAction
(
LD2410Component
*ld2410_comp) :
ld2410_comp_
(ld2410_comp) {}
12
TEMPLATABLE_VALUE
(std::string, password)
13
14
void
play
(
const
Ts &...
x
)
override
{ this->
ld2410_comp_
->set_bluetooth_password(this->password_.value(
x
...)); }
15
16
protected
:
17
LD2410Component
*
ld2410_comp_
;
18
};
19
20
}
// namespace esphome::ld2410
esphome::Action
Definition
automation.h:230
esphome::Action< Ts... >::play
virtual void play(const Ts &...x)=0
esphome::ld2410::BluetoothPasswordSetAction
Definition
automation.h:9
esphome::ld2410::BluetoothPasswordSetAction::ld2410_comp_
LD2410Component * ld2410_comp_
Definition
automation.h:17
esphome::ld2410::BluetoothPasswordSetAction::BluetoothPasswordSetAction
BluetoothPasswordSetAction(LD2410Component *ld2410_comp)
Definition
automation.h:11
esphome::ld2410::BluetoothPasswordSetAction::TEMPLATABLE_VALUE
TEMPLATABLE_VALUE(std::string, password) void play(const Ts &...x) override
Definition
automation.h:12
esphome::ld2410::LD2410Component
Definition
ld2410.h:39
component.h
automation.h
ld2410.h
esphome::ld2410
Definition
automation.h:7
x
uint16_t x
Definition
tt21100.cpp:5
Generated by
1.12.0