ESPHome
2026.2.4
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
:
public
binary_sensor::BinarySensor
,
public
PollingComponent
{
9
public
:
10
void
update
()
override
;
11
12
void
setup
()
override
;
13
void
dump_config
()
override
;
14
15
bool
is_status_binary_sensor
()
const override
{
return
true
; }
16
};
17
18
}
// namespace esphome::status
binary_sensor.h
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:512
esphome::binary_sensor::BinarySensor
Base class for all binary_sensor-type classes.
Definition
binary_sensor.h:31
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:15
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