ESPHome  2024.11.1
hte501.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace 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
float get_setup_priority() const override
Definition: hte501.cpp:42
This class simplifies creating components that periodically check a state.
Definition: component.h:283
void dump_config() override
Definition: hte501.cpp:23
unsigned char calc_crc8_(const unsigned char buf[], unsigned char from, unsigned char to)
Definition: hte501.cpp:71
sensor::Sensor * humidity_sensor_
Definition: hte501.h:24
enum esphome::hte501::HTE501Component::ErrorCode NONE
void set_humidity_sensor(sensor::Sensor *humidity_sensor)
Definition: hte501.h:14
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
Definition: hte501.h:13
sensor::Sensor * temperature_sensor_
Definition: hte501.h:23
This class implements support for the hte501 of temperature i2c sensors.
Definition: hte501.h:11
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133