Cover entity representing an IO‑Homecontrol shutter/awning/blind.
More...
#include <platform_cover.h>
|
| | IOHomeCover () |
| void | setup () override |
| | Initialize the cover entity (register device, subscribe to updates, schedule initial status poll).
|
| void | dump_config () override |
| | Dump configuration to log.
|
| float | get_setup_priority () const override |
| | Get setup priority (DATA so we have device registry available).
|
| cover::CoverTraits | get_traits () override |
| | Return the traits object describing this cover's capabilities.
|
| void | set_parent (IOHomeControlComponent *parent) |
| | Set the parent controller component.
|
| void | set_device_id (const std::string &id) |
| | Set the unique device ID (from YAML).
|
| void | set_device_type (DeviceType type) |
| | Set the declared device type (from YAML).
|
| void | set_subtype (uint8_t subtype) |
| | Set the declared device subtype (from YAML).
|
| void | set_invert_position (bool invert) |
| | Enable or disable position inversion.
|
| void | set_status_poll_interval (uint32_t poll_interval_ms) |
| | Configure bounded follow-up polling while a state change is expected.
|
| bool | supports_tilt () const |
| | Query whether this device supports tilt (slat angle) control.
|
|
| void | control (const cover::CoverCall &call) override |
| | Handle cover commands from Home Assistant (open/close/stop/set_position).
|
| void | on_device_update_ (const std::string &id, const IoDevice &dev) |
| | Callback invoked when the underlying device state changes.
|
| bool | effective_invert_ () const |
| | Resolve the current inversion mode.
|
Cover entity representing an IO‑Homecontrol shutter/awning/blind.
Definition at line 27 of file platform_cover.h.
◆ IOHomeCover()
| esphome::home_io_control::IOHomeCover::IOHomeCover |
( |
| ) |
|
|
inline |
◆ control()
| void esphome::home_io_control::IOHomeCover::control |
( |
const cover::CoverCall & | call | ) |
|
|
overrideprotected |
Handle cover commands from Home Assistant (open/close/stop/set_position).
- Parameters
-
| call | CoverCall containing the requested operation. |
Definition at line 53 of file platform_cover.cpp.
◆ dump_config()
| void esphome::home_io_control::IOHomeCover::dump_config |
( |
| ) |
|
|
override |
◆ effective_invert_()
| bool esphome::home_io_control::IOHomeCover::effective_invert_ |
( |
| ) |
const |
|
nodiscardprotected |
Resolve the current inversion mode.
- Returns
- Explicit YAML override when set, otherwise the runtime device profile.
Definition at line 44 of file platform_cover.cpp.
◆ get_setup_priority()
| float esphome::home_io_control::IOHomeCover::get_setup_priority |
( |
| ) |
const |
|
inlinenodiscardoverride |
Get setup priority (DATA so we have device registry available).
- Returns
- setup_priority::DATA.
Definition at line 36 of file platform_cover.h.
◆ get_traits()
| cover::CoverTraits esphome::home_io_control::IOHomeCover::get_traits |
( |
| ) |
|
|
override |
Return the traits object describing this cover's capabilities.
- Returns
- CoverTraits configured for position, stop, and optional tilt.
Definition at line 28 of file platform_cover.cpp.
◆ on_device_update_()
| void esphome::home_io_control::IOHomeCover::on_device_update_ |
( |
const std::string & | id, |
|
|
const IoDevice & | dev ) |
|
protected |
Callback invoked when the underlying device state changes.
- Parameters
-
| id | Device ID that updated. |
| dev | Updated IoDevice state. |
Definition at line 86 of file platform_cover.cpp.
◆ set_device_id()
| void esphome::home_io_control::IOHomeCover::set_device_id |
( |
const std::string & | id | ) |
|
|
inline |
Set the unique device ID (from YAML).
- Parameters
-
| id | Hexadecimal node ID string (e.g., "123ABC"). |
Definition at line 47 of file platform_cover.h.
◆ set_device_type()
| void esphome::home_io_control::IOHomeCover::set_device_type |
( |
DeviceType | type | ) |
|
|
inline |
Set the declared device type (from YAML).
- Parameters
-
Definition at line 50 of file platform_cover.h.
◆ set_invert_position()
| void esphome::home_io_control::IOHomeCover::set_invert_position |
( |
bool | invert | ) |
|
|
inline |
Enable or disable position inversion.
Some devices (e.g., horizontal awnings) report reversed open/close semantics.
- Parameters
-
| invert | True to invert the mapping (HA 1.0 → IO 0, HA 0.0 → IO 100). |
Definition at line 57 of file platform_cover.h.
◆ set_parent()
Set the parent controller component.
- Parameters
-
Definition at line 44 of file platform_cover.h.
◆ set_status_poll_interval()
| void esphome::home_io_control::IOHomeCover::set_status_poll_interval |
( |
uint32_t | poll_interval_ms | ) |
|
|
inline |
Configure bounded follow-up polling while a state change is expected.
- Parameters
-
| poll_interval_ms | Poll interval in milliseconds; zero keeps the default single settle poll only. |
Definition at line 63 of file platform_cover.h.
◆ set_subtype()
| void esphome::home_io_control::IOHomeCover::set_subtype |
( |
uint8_t | subtype | ) |
|
|
inline |
Set the declared device subtype (from YAML).
- Parameters
-
Definition at line 53 of file platform_cover.h.
◆ setup()
| void esphome::home_io_control::IOHomeCover::setup |
( |
| ) |
|
|
override |
Initialize the cover entity (register device, subscribe to updates, schedule initial status poll).
Definition at line 13 of file platform_cover.cpp.
◆ supports_tilt()
| bool esphome::home_io_control::IOHomeCover::supports_tilt |
( |
| ) |
const |
|
nodiscard |
Query whether this device supports tilt (slat angle) control.
- Returns
- true if the underlying device type supports tilt.
Definition at line 37 of file platform_cover.cpp.
◆ device_id_
| std::string esphome::home_io_control::IOHomeCover::device_id_ |
|
protected |
◆ device_type_
◆ invert_
| bool esphome::home_io_control::IOHomeCover::invert_ {false} |
|
protected |
◆ invert_explicit_
| bool esphome::home_io_control::IOHomeCover::invert_explicit_ {false} |
|
protected |
◆ parent_
◆ status_poll_interval_ms_
| uint32_t esphome::home_io_control::IOHomeCover::status_poll_interval_ms_ {0} |
|
protected |
◆ subtype_
| uint8_t esphome::home_io_control::IOHomeCover::subtype_ {0} |
|
protected |
The documentation for this class was generated from the following files: