ESPHome  2024.9.2
Public Member Functions | Protected Attributes
esphome::binary_sensor::Filter Class Referenceabstract

#include <filter.h>

Inheritance diagram for esphome::binary_sensor::Filter:
esphome::binary_sensor::AutorepeatFilter esphome::binary_sensor::DelayedOffFilter esphome::binary_sensor::DelayedOnFilter esphome::binary_sensor::DelayedOnOffFilter esphome::binary_sensor::InvertFilter esphome::binary_sensor::LambdaFilter esphome::binary_sensor::SettleFilter

Public Member Functions

virtual optional< bool > new_value (bool value, bool is_initial)=0
 
void input (bool value, bool is_initial)
 
void output (bool value, bool is_initial)
 

Protected Attributes

friend BinarySensor
 
Filternext_ {nullptr}
 
BinarySensorparent_ {nullptr}
 
Deduplicator< bool > dedup_
 

Detailed Description

Definition at line 15 of file filter.h.

Member Function Documentation

◆ input()

void esphome::binary_sensor::Filter::input ( bool  value,
bool  is_initial 
)

Definition at line 22 of file filter.cpp.

◆ new_value()

virtual optional<bool> esphome::binary_sensor::Filter::new_value ( bool  value,
bool  is_initial 
)
pure virtual

◆ output()

void esphome::binary_sensor::Filter::output ( bool  value,
bool  is_initial 
)

Definition at line 12 of file filter.cpp.

Field Documentation

◆ BinarySensor

friend esphome::binary_sensor::Filter::BinarySensor
protected

Definition at line 24 of file filter.h.

◆ dedup_

Deduplicator<bool> esphome::binary_sensor::Filter::dedup_
protected

Definition at line 28 of file filter.h.

◆ next_

Filter* esphome::binary_sensor::Filter::next_ {nullptr}
protected

Definition at line 26 of file filter.h.

◆ parent_

BinarySensor* esphome::binary_sensor::Filter::parent_ {nullptr}
protected

Definition at line 27 of file filter.h.


The documentation for this class was generated from the following files: