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

Button entity that sends the protocol's favorite or My-position command. More...

#include <platform_cover_favorite_button.h>

Inheritance diagram for esphome::home_io_control::IOHomeCoverFavoriteButton:
Collaboration diagram for esphome::home_io_control::IOHomeCoverFavoriteButton:

Public Member Functions

void set_parent (IOHomeControlComponent *parent)
 Set the parent controller component.
void set_device_id (const std::string &id)
 Set the device ID controlled by this button.
void setup () override
 Initialize the generated button.
void dump_config () override
 Dump button configuration to the log.
float get_setup_priority () const override
 Get setup priority so the parent hub is available first.

Protected Member Functions

void press_action () override
 Handle a Home Assistant button press by queueing a favorite-position command.

Protected Attributes

IOHomeControlComponentparent_ {nullptr}
std::string device_id_

Detailed Description

Button entity that sends the protocol's favorite or My-position command.

Definition at line 18 of file platform_cover_favorite_button.h.

Member Function Documentation

◆ dump_config()

void esphome::home_io_control::IOHomeCoverFavoriteButton::dump_config ( )
override

Dump button configuration to the log.

Definition at line 29 of file platform_cover_favorite_button.cpp.

◆ get_setup_priority()

float esphome::home_io_control::IOHomeCoverFavoriteButton::get_setup_priority ( ) const
inlinenodiscardoverride

Get setup priority so the parent hub is available first.

Returns
setup_priority::DATA.

Definition at line 36 of file platform_cover_favorite_button.h.

◆ press_action()

void esphome::home_io_control::IOHomeCoverFavoriteButton::press_action ( )
overrideprotected

Handle a Home Assistant button press by queueing a favorite-position command.

Definition at line 14 of file platform_cover_favorite_button.cpp.

◆ set_device_id()

void esphome::home_io_control::IOHomeCoverFavoriteButton::set_device_id ( const std::string & id)
inline

Set the device ID controlled by this button.

Parameters
idHexadecimal node ID string (e.g. "123ABC").

Definition at line 26 of file platform_cover_favorite_button.h.

◆ set_parent()

void esphome::home_io_control::IOHomeCoverFavoriteButton::set_parent ( IOHomeControlComponent * parent)
inline

Set the parent controller component.

Parameters
parentPointer to the IOHomeControlComponent instance.

Definition at line 22 of file platform_cover_favorite_button.h.

◆ setup()

void esphome::home_io_control::IOHomeCoverFavoriteButton::setup ( )
inlineoverride

Initialize the generated button.

Definition at line 29 of file platform_cover_favorite_button.h.

Member Data Documentation

◆ device_id_

std::string esphome::home_io_control::IOHomeCoverFavoriteButton::device_id_
protected

Definition at line 43 of file platform_cover_favorite_button.h.

◆ parent_

IOHomeControlComponent* esphome::home_io_control::IOHomeCoverFavoriteButton::parent_ {nullptr}
protected

Definition at line 42 of file platform_cover_favorite_button.h.


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