ESPHome  2024.3.1
analog_threshold_binary_sensor.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace analog_threshold {
9 
11  public:
12  void dump_config() override;
13  void setup() override;
14 
15  float get_setup_priority() const override { return setup_priority::DATA; }
16 
17  void set_sensor(sensor::Sensor *analog_sensor);
18  void set_upper_threshold(float threshold) { this->upper_threshold_ = threshold; }
19  void set_lower_threshold(float threshold) { this->lower_threshold_ = threshold; }
20 
21  protected:
23 
26 };
27 
28 } // namespace analog_threshold
29 } // namespace esphome
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:19
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
Base class for all binary_sensor-type classes.
Definition: binary_sensor.h:37
Base-class for all sensors.
Definition: sensor.h:57