ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
homeassistant_time.h
Go to the documentation of this file.
1#pragma once
2
6
8
10 public:
11 void setup() override;
12 void update() override;
13 void dump_config() override;
14 void set_epoch_time(uint32_t epoch) { this->synchronize_epoch_(epoch); }
15};
16
17extern HomeassistantTime *global_homeassistant_time; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
18
19} // namespace esphome::homeassistant
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
void synchronize_epoch_(uint32_t epoch)
Report a unix epoch as current time.
HomeassistantTime * global_homeassistant_time
static void uint32_t