ESPHome 2026.11.0b6
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_callback_rate)
24 SUB_SENSOR(csi_accepted_rate)
25 SUB_SENSOR(csi_missing_slot_rate)
26 SUB_SENSOR(csi_excess_rate)
27 SUB_SENSOR(csi_occupancy)
28
29 protected:
30 ESPectreComponent *parent_;
31};
32
33} // namespace esphome::espectre
34
35#endif // USE_ESPECTRE
This class simplifies creating components that periodically check a state.
Definition component.h:532
Publishes all diagnostic sensors together from the same runtime sample.
DiagnosticsUpdater(ESPectreComponent *parent)