ESPHome 2026.5.1
Loading...
Searching...
No Matches
hyt271.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::hyt271 {
8
10 public:
12 void set_humidity(sensor::Sensor *humidity) { humidity_ = humidity; }
13
14 void dump_config() override;
16 void update() override;
17
18 protected:
21};
22
23} // namespace esphome::hyt271
This class simplifies creating components that periodically check a state.
Definition component.h:602
void set_temperature(sensor::Sensor *temperature)
Definition hyt271.h:11
void update() override
Update the sensor values (temperature+humidity).
Definition hyt271.cpp:18
sensor::Sensor * temperature_
Definition hyt271.h:19
sensor::Sensor * humidity_
Definition hyt271.h:20
void set_humidity(sensor::Sensor *humidity)
Definition hyt271.h:12
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
Base-class for all sensors.
Definition sensor.h:47
uint16_t temperature
Definition sun_gtil2.cpp:12