Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
esphome::home_io_control::IOHomeDiscoverButton Class Reference

Button entity that triggers device discovery and pairing when pressed in Home Assistant. More...

#include <platform_hub_controls.h>

Inheritance diagram for esphome::home_io_control::IOHomeDiscoverButton:
Collaboration diagram for esphome::home_io_control::IOHomeDiscoverButton:

Public Member Functions

void dump_config () override
Public Member Functions inherited from esphome::home_io_control::HubBoundEntity
void set_parent (IOHomeControlComponent *parent)
 Set the parent controller component.

Protected Member Functions

void press_action () override
 When button is pressed, queue a discovery/pair operation.

Additional Inherited Members

Protected Attributes inherited from esphome::home_io_control::HubBoundEntity
IOHomeControlComponent * parent_ {nullptr}

Detailed Description

Button entity that triggers device discovery and pairing when pressed in Home Assistant.

Created when home_io_control.discover_and_pair_button: true (see hub_entities.py's create_discover_and_pair_button()). The deprecated button: - platform: home_io_control entry (button.py) still creates one too, for the duration of its deprecation window.

Definition at line 115 of file platform_hub_controls.h.

Member Function Documentation

◆ dump_config()

void esphome::home_io_control::IOHomeDiscoverButton::dump_config ( )
inlineoverride

Definition at line 117 of file platform_hub_controls.h.

◆ press_action()

void esphome::home_io_control::IOHomeDiscoverButton::press_action ( )
inlineoverrideprotected

When button is pressed, queue a discovery/pair operation.

Definition at line 121 of file platform_hub_controls.h.

Here is the call graph for this function:

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