11namespace binary_sensor {
19 void input(
bool value,
bool is_initial);
21 void output(
bool value,
bool is_initial);
108 std::function<optional<bool>(
bool)>
f_;
Helper class to deduplicate items in a series of values.
AutorepeatFilter(std::vector< AutorepeatFilterTiming > timings)
float get_setup_priority() const override
void next_value_(bool val)
std::vector< AutorepeatFilterTiming > timings_
optional< bool > new_value(bool value, bool is_initial) override
Base class for all binary_sensor-type classes.
float get_setup_priority() const override
optional< bool > new_value(bool value, bool is_initial) override
TemplatableValue< uint32_t > delay_
TemplatableValue< uint32_t > delay_
float get_setup_priority() const override
optional< bool > new_value(bool value, bool is_initial) override
optional< bool > new_value(bool value, bool is_initial) override
void set_off_delay(T delay)
void set_on_delay(T delay)
TemplatableValue< uint32_t > on_delay_
float get_setup_priority() const override
TemplatableValue< uint32_t > off_delay_
virtual optional< bool > new_value(bool value, bool is_initial)=0
Deduplicator< bool > dedup_
void input(bool value, bool is_initial)
void output(bool value, bool is_initial)
optional< bool > new_value(bool value, bool is_initial) override
LambdaFilter(std::function< optional< bool >(bool)> f)
std::function< optional< bool >(bool)> f_
optional< bool > new_value(bool value, bool is_initial) override
optional< bool > new_value(bool value, bool is_initial) override
float get_setup_priority() const override
TemplatableValue< uint32_t > delay_
Providing packet encoding functions for exchanging data with a remote host.
void IRAM_ATTR HOT delay(uint32_t ms)
AutorepeatFilterTiming(uint32_t delay, uint32_t off, uint32_t on)