|
ESPHome 2025.10.3
|
#include <mpr121_binary_sensor.h>
Public Member Functions | |
| void | set_channel (uint8_t channel) |
| void | set_touch_threshold (uint8_t touch_threshold) |
| void | set_release_threshold (uint8_t release_threshold) |
| void | setup () override |
| void | process (uint16_t data) override |
Public Member Functions inherited from esphome::binary_sensor::BinarySensor | |
| BinarySensor () | |
| void | publish_state (bool new_state) |
| Publish a new state to the front-end. | |
| void | publish_initial_state (bool new_state) |
| Publish the initial state, this will not make the callback manager send callbacks and is meant only for the initial state on boot. | |
| void | add_filter (Filter *filter) |
| void | add_filters (const std::vector< Filter * > &filters) |
| void | send_state_internal (bool new_state) |
| virtual bool | is_status_binary_sensor () const |
| Return whether this binary sensor has outputted a state. | |
Public Member Functions inherited from esphome::StatefulEntityBase< bool > | |
| virtual bool | has_state () const |
| virtual const bool & | get_state () const |
| virtual bool | get_state_default (bool default_value) const |
| void | invalidate_state () |
| void | add_full_state_callback (std::function< void(optional< bool > previous, optional< bool > current)> &&callback) |
| void | add_on_state_callback (std::function< void(bool)> &&callback) |
| void | set_trigger_on_initial_state (bool trigger_on_initial_state) |
Public Member Functions inherited from esphome::EntityBase | |
| const StringRef & | get_name () const |
| void | set_name (const char *name) |
| bool | has_own_name () const |
| std::string | get_object_id () const |
| void | set_object_id (const char *object_id) |
| uint32_t | get_object_id_hash () |
| bool | is_internal () const |
| void | set_internal (bool internal) |
| bool | is_disabled_by_default () const |
| void | set_disabled_by_default (bool disabled_by_default) |
| EntityCategory | get_entity_category () const |
| void | set_entity_category (EntityCategory entity_category) |
| std::string | get_icon () const |
| void | set_icon (const char *icon) |
| StringRef | get_icon_ref () const |
| uint32_t | get_device_id () const |
| void | set_device (Device *device) |
| bool | has_state () const |
| void | set_has_state (bool state) |
| uint32_t | get_preference_hash () |
| Get a unique hash for storing preferences/settings for this entity. | |
Public Member Functions inherited from esphome::EntityBase_DeviceClass | |
| std::string | get_device_class () |
| Get the device class, using the manual override if set. | |
| void | set_device_class (const char *device_class) |
| Manually set the device class. | |
| StringRef | get_device_class_ref () const |
| Get the device class as StringRef. | |
Public Member Functions inherited from esphome::mpr121::MPR121Channel | |
Public Member Functions inherited from esphome::Parented< MPR121Component > | |
| Parented () | |
| Parented (MPR121Component *parent) | |
| MPR121Component * | get_parent () const |
| Get the parent of this object. | |
| void | set_parent (MPR121Component *parent) |
| Set the parent of this object. | |
Protected Attributes | |
| uint8_t | channel_ {0} |
| optional< uint8_t > | touch_threshold_ {} |
| optional< uint8_t > | release_threshold_ {} |
Protected Attributes inherited from esphome::binary_sensor::BinarySensor | |
| Filter * | filter_list_ {nullptr} |
Protected Attributes inherited from esphome::StatefulEntityBase< bool > | |
| optional< bool > | state_ |
| bool | trigger_on_initial_state_ |
| CallbackManager< void(optional< bool > previous, optional< bool > current)> * | full_state_callbacks_ |
| CallbackManager< void(bool)> * | state_callbacks_ |
Protected Attributes inherited from esphome::EntityBase | |
| StringRef | name_ |
| const char * | object_id_c_str_ {nullptr} |
| const char * | icon_c_str_ {nullptr} |
| uint32_t | object_id_hash_ {} |
| Device * | device_ {} |
| struct esphome::EntityBase::EntityFlags | flags_ |
Protected Attributes inherited from esphome::EntityBase_DeviceClass | |
| const char * | device_class_ {nullptr} |
| Device class override. | |
Protected Attributes inherited from esphome::Parented< MPR121Component > | |
| MPR121Component * | parent_ |
Additional Inherited Members | |
Data Fields inherited from esphome::binary_sensor::BinarySensor | |
| bool | state {} |
Protected Member Functions inherited from esphome::StatefulEntityBase< bool > | |
| bool | set_state_ (const optional< bool > &state) |
| Set a new state for this entity. | |
Protected Member Functions inherited from esphome::EntityBase | |
| StringRef | get_object_id_ref_for_api_ () const |
| virtual uint32_t | hash_base () |
| The hash_base() function has been deprecated. | |
| void | calc_object_id_ () |
| bool | is_object_id_dynamic_ () const |
| Check if the object_id is dynamic (changes with MAC suffix) | |
Definition at line 10 of file mpr121_binary_sensor.h.
|
overridevirtual |
Implements esphome::mpr121::MPR121Channel.
Definition at line 14 of file mpr121_binary_sensor.cpp.
|
inline |
Definition at line 12 of file mpr121_binary_sensor.h.
|
inline |
Definition at line 14 of file mpr121_binary_sensor.h.
|
inline |
Definition at line 13 of file mpr121_binary_sensor.h.
|
overridevirtual |
Implements esphome::mpr121::MPR121Channel.
Definition at line 6 of file mpr121_binary_sensor.cpp.
|
protected |
Definition at line 20 of file mpr121_binary_sensor.h.
|
protected |
Definition at line 22 of file mpr121_binary_sensor.h.
|
protected |
Definition at line 21 of file mpr121_binary_sensor.h.