ESPHome
2025.2.2
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
d
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Functions
_
a
l
m
o
s
t
u
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
esphome
esphome
components
uptime
sensor
uptime_seconds_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/sensor/sensor.h
"
4
#include "
esphome/core/component.h
"
5
6
namespace
esphome
{
7
namespace
uptime {
8
9
class
UptimeSecondsSensor
:
public
sensor::Sensor
,
public
PollingComponent
{
10
public
:
11
void
update
()
override
;
12
void
dump_config
()
override
;
13
14
float
get_setup_priority
()
const override
;
15
16
std::string
unique_id
()
override
;
17
18
protected
:
19
uint64_t
uptime_
{0};
20
};
21
22
}
// namespace uptime
23
}
// namespace esphome
esphome::uptime::UptimeSecondsSensor
Definition:
uptime_seconds_sensor.h:9
esphome::uptime::UptimeSecondsSensor::update
void update() override
Definition:
uptime_seconds_sensor.cpp:12
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition:
component.h:283
sensor.h
esphome::uptime::UptimeSecondsSensor::unique_id
std::string unique_id() override
Definition:
uptime_seconds_sensor.cpp:30
esphome::uptime::UptimeSecondsSensor::dump_config
void dump_config() override
Definition:
uptime_seconds_sensor.cpp:32
esphome::uptime::UptimeSecondsSensor::get_setup_priority
float get_setup_priority() const override
Definition:
uptime_seconds_sensor.cpp:31
esphome::uptime::UptimeSecondsSensor::uptime_
uint64_t uptime_
Definition:
uptime_seconds_sensor.h:19
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::sensor::Sensor
Base-class for all sensors.
Definition:
sensor.h:57
Generated by
1.8.13