ESPHome
2026.11.0b6
Loading...
Searching...
No Matches
esphome
components
sht3xd
sht3xd.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/sensor/sensor.h
"
5
#include "
esphome/components/sensirion_common/i2c_sensirion.h
"
6
7
namespace
esphome::sht3xd
{
8
10
class
SHT3XDComponent
final :
public
PollingComponent
,
public
sensirion_common::SensirionI2CDevice
{
11
SUB_SENSOR(
temperature
)
12
SUB_SENSOR(humidity)
13
14
public
:
15
void
setup
()
override
;
16
void
dump_config()
override
;
17
void
update()
override
;
18
void
set_heater_enabled(
bool
heater_enabled) {
heater_enabled_
= heater_enabled; }
19
20
protected
:
21
bool
heater_enabled_
{
true
};
22
uint32_t
serial_number_
{0};
23
};
24
25
}
// namespace esphome::sht3xd
esphome::Component::setup
virtual void setup()
Where the component's initialization should happen.
Definition
component.cpp:84
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:532
esphome::sensirion_common::SensirionI2CDevice
Definition
i2c_sensirion.h:22
esphome::sht3xd::SHT3XDComponent
This class implements support for the SHT3x-DIS family of temperature+humidity i2c sensors.
Definition
sht3xd.h:10
esphome::sht3xd::SHT3XDComponent::heater_enabled_
bool heater_enabled_
Definition
sht3xd.h:21
esphome::sht3xd::SHT3XDComponent::serial_number_
uint32_t serial_number_
Definition
sht3xd.h:22
component.h
i2c_sensirion.h
esphome::sht3xd
Definition
sht3xd.cpp:4
uint32_t
static void uint32_t
Definition
crash_handler.cpp:153
sensor.h
temperature
uint16_t temperature
Definition
sun_gtil2.cpp:12
Generated by
1.12.0