Button entity that sends the ventilation position command.
More...
#include <platform_cover_vent_button.h>
|
| 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.
|
|
| void | press_action () override |
| | Handle a Home Assistant button press by queueing a ventilation command.
|
Button entity that sends the ventilation position command.
Generated automatically by the Python codegen for cover entities whose io_device_type is a window or ventilation device. Pressing this button in Home Assistant sends CoverCommand::VENT via the authenticated exchange.
Definition at line 26 of file platform_cover_vent_button.h.
◆ dump_config()
| void esphome::home_io_control::IOHomeCoverVentButton::dump_config |
( |
| ) |
|
|
override |
◆ get_setup_priority()
| float esphome::home_io_control::IOHomeCoverVentButton::get_setup_priority |
( |
| ) |
const |
|
inlinenodiscardoverride |
◆ press_action()
| void esphome::home_io_control::IOHomeCoverVentButton::press_action |
( |
| ) |
|
|
overrideprotected |
◆ set_device_id()
| void esphome::home_io_control::IOHomeCoverVentButton::set_device_id |
( |
const std::string & | id | ) |
|
|
inline |
Set the device ID controlled by this button.
- Parameters
-
| id | Hexadecimal node ID string (e.g. "123ABC"). |
Definition at line 34 of file platform_cover_vent_button.h.
◆ set_parent()
◆ setup()
| void esphome::home_io_control::IOHomeCoverVentButton::setup |
( |
| ) |
|
|
inlineoverride |
◆ device_id_
| std::string esphome::home_io_control::IOHomeCoverVentButton::device_id_ |
|
protected |
◆ parent_
The documentation for this class was generated from the following files: