ESPHome 2025.5.0
Loading...
Searching...
No Matches
hte501.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace hte501 {
9
12 public:
13 void set_temperature_sensor(sensor::Sensor *temperature_sensor) { temperature_sensor_ = temperature_sensor; }
14 void set_humidity_sensor(sensor::Sensor *humidity_sensor) { humidity_sensor_ = humidity_sensor; }
15
16 float get_setup_priority() const override;
17 void setup() override;
18 void dump_config() override;
19 void update() override;
20
21 protected:
22 unsigned char calc_crc8_(const unsigned char buf[], unsigned char from, unsigned char to);
25
27};
28
29} // namespace hte501
30} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:301
This class implements support for the hte501 of temperature i2c sensors.
Definition hte501.h:11
sensor::Sensor * temperature_sensor_
Definition hte501.h:23
void set_humidity_sensor(sensor::Sensor *humidity_sensor)
Definition hte501.h:14
float get_setup_priority() const override
Definition hte501.cpp:42
sensor::Sensor * humidity_sensor_
Definition hte501.h:24
unsigned char calc_crc8_(const unsigned char buf[], unsigned char from, unsigned char to)
Definition hte501.cpp:71
enum esphome::hte501::HTE501Component::ErrorCode NONE
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
Definition hte501.h:13
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
Base-class for all sensors.
Definition sensor.h:57
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7