ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
uptime_seconds_sensor.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome {
7namespace uptime {
8
10 public:
11 void update() override;
12 void dump_config() override;
13
14 float get_setup_priority() const override;
15
16 protected:
17 uint64_t uptime_{0};
18};
19
20} // namespace uptime
21} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:425
Base-class for all sensors.
Definition sensor.h:59
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7