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

A single queued operation to be dispatched from loop(). More...

#include <operation_queue.h>

Collaboration diagram for esphome::home_io_control::PendingOperation:

Public Attributes

PendingOperationType type
 Operation type (determines which handler to invoke).
std::string device_id
 Target device ID (hex string, e.g., "123ABC") — except for the ONEWAY_* types, where it carries the controller-identity handle instead.
uint8_t position {0}
 Position/tilt value (0–100) or binary state (ON=0, OFF=100).
uint8_t tilt {0}
 Tilt value for SET_POSITION_AND_TILT (0–100).
CoverCommand command {CoverCommand::STOP}
 Named command for DEVICE_COMMAND operations.

Detailed Description

A single queued operation to be dispatched from loop().

Definition at line 45 of file operation_queue.h.

Member Data Documentation

◆ command

CoverCommand esphome::home_io_control::PendingOperation::command {CoverCommand::STOP}

Named command for DEVICE_COMMAND operations.

Definition at line 55 of file operation_queue.h.

◆ device_id

std::string esphome::home_io_control::PendingOperation::device_id

Target device ID (hex string, e.g., "123ABC") — except for the ONEWAY_* types, where it carries the controller-identity handle instead.

1W addresses a device class, not a node, so there is no device ID to put here; the identity is what the operation is bound to. The field is reused rather than duplicated because every queue entry would otherwise grow a second string for the benefit of two operation types.

Definition at line 52 of file operation_queue.h.

◆ position

uint8_t esphome::home_io_control::PendingOperation::position {0}

Position/tilt value (0–100) or binary state (ON=0, OFF=100).

Definition at line 53 of file operation_queue.h.

◆ tilt

uint8_t esphome::home_io_control::PendingOperation::tilt {0}

Tilt value for SET_POSITION_AND_TILT (0–100).

Definition at line 54 of file operation_queue.h.

◆ type

PendingOperationType esphome::home_io_control::PendingOperation::type

Operation type (determines which handler to invoke).

Definition at line 46 of file operation_queue.h.


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