ESPHome
2026.11.0-dev
Loading...
Searching...
No Matches
esphome
components
status
status_binary_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/binary_sensor/binary_sensor.h
"
5
6
namespace
esphome::status
{
7
8
class
StatusBinarySensor
final :
public
binary_sensor::BinarySensor
,
public
PollingComponent
{
9
public
:
10
// User provided, not "= default": `new(p) StatusBinarySensor()` would zero-fill .bss that is already zero.
11
StatusBinarySensor
() {}
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
binary_sensor.h
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:519
esphome::binary_sensor::BinarySensor
Base class for all binary_sensor-type classes.
Definition
binary_sensor.h:33
esphome::status::StatusBinarySensor
Definition
status_binary_sensor.h:8
esphome::status::StatusBinarySensor::setup
void setup() override
Definition
status_binary_sensor.cpp:32
esphome::status::StatusBinarySensor::dump_config
void dump_config() override
Definition
status_binary_sensor.cpp:33
esphome::status::StatusBinarySensor::is_status_binary_sensor
bool is_status_binary_sensor() const override
Definition
status_binary_sensor.h:17
esphome::status::StatusBinarySensor::StatusBinarySensor
StatusBinarySensor()
Definition
status_binary_sensor.h:11
esphome::status::StatusBinarySensor::update
void update() override
Definition
status_binary_sensor.cpp:17
component.h
esphome::status
Definition
status_binary_sensor.cpp:13
Generated by
1.12.0