ESPHome 2025.5.0
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1#pragma once
2
5#include "ld2410.h"
6
7namespace esphome {
8namespace ld2410 {
9
10template<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:
19};
20
21} // namespace ld2410
22} // namespace esphome
virtual void play(Ts... x)=0
BluetoothPasswordSetAction(LD2410Component *ld2410_comp)
Definition automation.h:12
TEMPLATABLE_VALUE(std::string, password) void play(Ts... x) override
Definition automation.h:13
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
uint16_t x
Definition tt21100.cpp:5