ESPHome  2024.4.2
automation.h
Go to the documentation of this file.
1 #pragma once
2 
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:
19 };
20 
21 } // namespace ld2410
22 } // namespace esphome
uint16_t x
Definition: tt21100.cpp:17
BluetoothPasswordSetAction(LD2410Component *ld2410_comp)
Definition: automation.h:12
TEMPLATABLE_VALUE(std::string, password) void play(Ts... x) override
Definition: automation.h:13
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
virtual void play(Ts... x)=0