ESPHome  2022.6.3
interval.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace esphome {
7 namespace interval {
8 
9 class IntervalTrigger : public Trigger<>, public PollingComponent {
10  public:
11  void update() override { this->trigger(); }
12  float get_setup_priority() const override { return setup_priority::DATA; }
13 };
14 
15 } // namespace interval
16 } // namespace esphome
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:18
float get_setup_priority() const override
Definition: interval.h:12
This class simplifies creating components that periodically check a state.
Definition: component.h:266
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
Definition: automation.h:95
Definition: a4988.cpp:4