ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
espectre_diagnostics.h
Go to the documentation of this file.
1#pragma once
2
4
5#ifdef USE_ESPECTRE
6
9#include "../espectre.h"
10
11namespace esphome::espectre {
12
15 public:
16 explicit DiagnosticsUpdater(ESPectreComponent *parent) : parent_(parent) {}
17 void update() override;
18 void dump_config() override;
19
20 SUB_SENSOR(generator_rate)
21 SUB_SENSOR(traffic_tx_rate)
22 SUB_SENSOR(traffic_rx_rate)
23 SUB_SENSOR(csi_accepted_rate)
24 SUB_SENSOR(csi_occupancy)
25
26 protected:
27 ESPectreComponent *parent_;
28};
29
30} // namespace esphome::espectre
31
32#endif // USE_ESPECTRE
This class simplifies creating components that periodically check a state.
Definition component.h:514
Publishes all diagnostic sensors together from the same runtime sample.
DiagnosticsUpdater(ESPectreComponent *parent)