ESPHome  2024.11.1
hyt271.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace hyt271 {
9 
11  public:
13  void set_humidity(sensor::Sensor *humidity) { humidity_ = humidity; }
14 
15  void dump_config() override;
17  void update() override;
18 
19  float get_setup_priority() const override;
20 
21  protected:
24 };
25 
26 } // namespace hyt271
27 } // namespace esphome
sensor::Sensor * humidity_
Definition: hyt271.h:23
This class simplifies creating components that periodically check a state.
Definition: component.h:283
void dump_config() override
Definition: hyt271.cpp:12
uint16_t temperature
Definition: sun_gtil2.cpp:26
void set_temperature(sensor::Sensor *temperature)
Definition: hyt271.h:12
void update() override
Update the sensor values (temperature+humidity).
Definition: hyt271.cpp:19
void set_humidity(sensor::Sensor *humidity)
Definition: hyt271.h:13
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
float get_setup_priority() const override
Definition: hyt271.cpp:49
sensor::Sensor * temperature_
Definition: hyt271.h:22
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