ESPHome 2026.8.2
Loading...
Searching...
No Matches
esphome::binary_sensor::AutorepeatFilter< N > Class Template Reference

Template wrapper that provides inline std::array storage for timings. More...

#include <filter.h>

Inheritance diagram for esphome::binary_sensor::AutorepeatFilter< N >:
esphome::binary_sensor::AutorepeatFilterBase esphome::binary_sensor::Filter

Public Member Functions

 AutorepeatFilter (std::initializer_list< AutorepeatFilterTiming > timings)
 
- Public Member Functions inherited from esphome::binary_sensor::AutorepeatFilterBase
optional< bool > new_value (bool value) override
 
 AutorepeatFilterBase (const AutorepeatFilterBase &)=delete
 
AutorepeatFilterBaseoperator= (const AutorepeatFilterBase &)=delete
 
- Public Member Functions inherited from esphome::binary_sensor::Filter
virtual void input (bool value)
 
void output (bool value)
 

Protected Attributes

std::array< AutorepeatFilterTiming, N > timings_storage_ {}
 
- Protected Attributes inherited from esphome::binary_sensor::AutorepeatFilterBase
const AutorepeatFilterTimingtimings_ {nullptr}
 
uint8_t timings_count_ {0}
 
uint8_t active_timing_ {0}
 
- Protected Attributes inherited from esphome::binary_sensor::Filter
friend BinarySensor
 
Filternext_ {nullptr}
 
BinarySensorparent_ {nullptr}
 
Deduplicator< bool > dedup_
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::binary_sensor::AutorepeatFilterBase
 AutorepeatFilterBase ()=default
 
void next_timing_ ()
 
void next_value_ (bool val)
 

Detailed Description

template<size_t N>
class esphome::binary_sensor::AutorepeatFilter< N >

Template wrapper that provides inline std::array storage for timings.

N is set by code generation to match the exact number of timings configured in YAML.

Definition at line 107 of file filter.h.

Constructor & Destructor Documentation

◆ AutorepeatFilter()

template<size_t N>
esphome::binary_sensor::AutorepeatFilter< N >::AutorepeatFilter ( std::initializer_list< AutorepeatFilterTiming > timings)
inlineexplicit

Definition at line 109 of file filter.h.

Field Documentation

◆ timings_storage_

template<size_t N>
std::array<AutorepeatFilterTiming, N> esphome::binary_sensor::AutorepeatFilter< N >::timings_storage_ {}
protected

Definition at line 116 of file filter.h.


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