ESPHome 2025.5.0
Loading...
Searching...
No Matches
analog_threshold_binary_sensor.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace 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 template<typename T> void set_upper_threshold(T upper_threshold) { this->upper_threshold_ = upper_threshold; }
19 template<typename T> void set_lower_threshold(T lower_threshold) { this->lower_threshold_ = lower_threshold; }
20
21 protected:
25};
26
27} // namespace analog_threshold
28} // namespace esphome
Base class for all binary_sensor-type classes.
Base-class for all sensors.
Definition sensor.h:57
const float DATA
For components that import data from directly connected sensors like DHT.
Definition component.cpp:19
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7