ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
status_binary_sensor.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::status {
7
9 public:
10 // User provided, not "= default": `new(p) StatusBinarySensor()` would zero-fill .bss that is already zero.
12 void update() override;
13
14 void setup() override;
15 void dump_config() override;
16
17 bool is_status_binary_sensor() const override { return true; }
18};
19
20} // namespace esphome::status
This class simplifies creating components that periodically check a state.
Definition component.h:519
Base class for all binary_sensor-type classes.