ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
shtcx.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::shtcx {
8
14
17 SUB_SENSOR(temperature)
18 SUB_SENSOR(humidity)
19
20 public:
21 void setup() override;
22 void dump_config() override;
23 void update() override;
24 void soft_reset();
25 void sleep();
26 void wake_up();
27
28 protected:
29 uint16_t sensor_id_;
31};
32
33} // namespace esphome::shtcx
virtual void setup()
Where the component's initialization should happen.
Definition component.cpp:84
This class simplifies creating components that periodically check a state.
Definition component.h:532
This class implements support for the SHT3x-DIS family of temperature+humidity i2c sensors.
Definition shtcx.h:16
@ SHTCX_TYPE_SHTC1
Definition shtcx.h:11
@ SHTCX_TYPE_UNKNOWN
Definition shtcx.h:12
@ SHTCX_TYPE_SHTC3
Definition shtcx.h:10
uint16_t temperature
Definition sun_gtil2.cpp:12