Mixin holding the hub-device binding shared by all IO-Homecontrol entity platforms.
More...
#include <platform_entity_base.h>
Mixin holding the hub-device binding shared by all IO-Homecontrol entity platforms.
Definition at line 33 of file platform_entity_base.h.
◆ log_poll_interval_config_()
| void esphome::home_io_control::DeviceBoundEntity::log_poll_interval_config_ |
( |
const char * | tag | ) |
const |
|
inlineprotected |
Emit the shared two-branch poll-interval line for dump_config().
- Parameters
-
| tag | Log tag of the calling entity. |
Definition at line 88 of file platform_entity_base.h.
◆ passes_binary_update_filter_()
| bool esphome::home_io_control::DeviceBoundEntity::passes_binary_update_filter_ |
( |
const std::string & | id, |
|
|
const IoDevice & | dev ) const |
|
inlinenodiscardprotected |
Shared inbound-update guard for binary endpoints.
Matches this device and accepts only a settled (stopped) status with a known position. Covers and locks intentionally use their own richer guards instead of this filter.
Definition at line 82 of file platform_entity_base.h.
◆ register_device_binding_()
| void esphome::home_io_control::DeviceBoundEntity::register_device_binding_ |
( |
Component * | self, |
|
|
bool | inverted, |
|
|
std::function< void(const std::string &, const IoDevice &)> | on_update ) |
|
inlineprotected |
Perform the shared setup() registration ritual.
Registers the device with the controller, sets its status-poll interval, subscribes the entity's update callback, and schedules the delayed initial status request — in the exact order every entity used before.
- Parameters
-
| self | The entity itself; used for set_timeout(), since DeviceBoundEntity is not a Component. |
| inverted | Initial inversion flag passed to add_device (covers compute it; others pass false). |
| on_update | The entity's device-update callback. |
Definition at line 65 of file platform_entity_base.h.
◆ set_device_id()
| void esphome::home_io_control::DeviceBoundEntity::set_device_id |
( |
const std::string & | id | ) |
|
|
inline |
Set the unique IO-homecontrol device ID (from YAML).
- Parameters
-
| id | Hexadecimal node ID string (e.g., "123ABC"). |
Definition at line 40 of file platform_entity_base.h.
◆ set_device_type()
| void esphome::home_io_control::DeviceBoundEntity::set_device_type |
( |
DeviceType | type | ) |
|
|
inline |
◆ set_optimistic_state()
| void esphome::home_io_control::DeviceBoundEntity::set_optimistic_state |
( |
bool | optimistic_state | ) |
|
|
inline |
Enable or disable optimistic target updates for this device (from YAML).
Only covers expose this in YAML today; other platforms keep the default (true), which is inert for entity types that never read IoDevice.target/is_stopped.
- Parameters
-
| optimistic_state | False to disable optimistic state; default true. |
Definition at line 51 of file platform_entity_base.h.
◆ set_parent()
◆ set_status_poll_interval()
| void esphome::home_io_control::DeviceBoundEntity::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 54 of file platform_entity_base.h.
◆ set_subtype()
| void esphome::home_io_control::DeviceBoundEntity::set_subtype |
( |
uint8_t | subtype | ) |
|
|
inline |
◆ device_id_
| std::string esphome::home_io_control::DeviceBoundEntity::device_id_ |
|
protected |
◆ device_type_
◆ optimistic_state_
| bool esphome::home_io_control::DeviceBoundEntity::optimistic_state_ {true} |
|
protected |
◆ parent_
◆ status_poll_interval_ms_
| uint32_t esphome::home_io_control::DeviceBoundEntity::status_poll_interval_ms_ {0} |
|
protected |
◆ subtype_
| uint8_t esphome::home_io_control::DeviceBoundEntity::subtype_ {0} |
|
protected |
The documentation for this class was generated from the following file: