ESPHome
2026.11.0b6
Loading...
Searching...
No Matches
esphome
components
sfa30
sfa30.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::sfa30
{
8
9
class
SFA30Component
final :
public
PollingComponent
,
public
sensirion_common::SensirionI2CDevice
{
10
SUB_SENSOR(formaldehyde)
11
SUB_SENSOR(humidity)
12
SUB_SENSOR(
temperature
)
13
14
public
:
15
void
setup
()
override
;
16
void
dump_config()
override
;
17
void
update()
override
;
18
19
protected
:
20
char
device_marking_
[32] = {0};
21
};
22
23
}
// namespace esphome::sfa30
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::sfa30::SFA30Component
Definition
sfa30.h:9
esphome::sfa30::SFA30Component::device_marking_
char device_marking_[32]
Definition
sfa30.h:20
component.h
i2c_sensirion.h
esphome::sfa30
Definition
sfa30.cpp:4
sensor.h
temperature
uint16_t temperature
Definition
sun_gtil2.cpp:12
Generated by
1.12.0