ESPHome 2026.1.0-dev
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1#pragma once
2
5#include "ld2410.h"
6
7namespace esphome::ld2410 {
8
9template<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:
18};
19
20} // namespace esphome::ld2410
virtual void play(const Ts &...x)=0
BluetoothPasswordSetAction(LD2410Component *ld2410_comp)
Definition automation.h:11
TEMPLATABLE_VALUE(std::string, password) void play(const Ts &...x) override
Definition automation.h:12
uint16_t x
Definition tt21100.cpp:5