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

Decoded representation of a 1W remote frame. More...

#include <proto_codecs.h>

Collaboration diagram for esphome::home_io_control::OneWayFrameInfo:

Public Attributes

uint8_t src [NODE_ID_SIZE] {}
 Remote source node ID (3 bytes).
AddressClass address_class {AddressClass::UNKNOWN_BROADCAST}
 Classification of the broadcast address.
DeviceType target_type {DeviceType::UNKNOWN}
 Target device class from broadcast address.
uint8_t cmd {0}
 Command ID (e.g., CMD_EXECUTE, CMD_ACTIVATE_MODE).
bool has_intent {false}
 True if originator/ACEI/intent fields were decoded.
uint8_t originator {0}
 Command originator byte (e.g., ORIGINATOR_USER_REMOTE).
uint8_t acei_level {0}
 ACEI priority level (0–7).
char intent [ONEWAY_INTENT_BUFFER_SIZE] {}
 Human-readable command intent (e.g., "CLOSE").
uint8_t main0 {0}
 Raw first main byte (has_intent only); feeds oneway_intent_to_target().
uint8_t main1 {0}
 Raw second main byte (has_intent only); feeds oneway_intent_to_target().
uint8_t data_len {0}
 Raw data length (for commands without decoded intent).

Detailed Description

Decoded representation of a 1W remote frame.

Captures all fields extractable from a 1W broadcast frame in a structured form that can be used for logging, events, or future sensor exposure.

Definition at line 159 of file proto_codecs.h.

Member Data Documentation

◆ acei_level

uint8_t esphome::home_io_control::OneWayFrameInfo::acei_level {0}

ACEI priority level (0–7).

Definition at line 166 of file proto_codecs.h.

◆ address_class

AddressClass esphome::home_io_control::OneWayFrameInfo::address_class {AddressClass::UNKNOWN_BROADCAST}

Classification of the broadcast address.

Definition at line 161 of file proto_codecs.h.

◆ cmd

uint8_t esphome::home_io_control::OneWayFrameInfo::cmd {0}

Command ID (e.g., CMD_EXECUTE, CMD_ACTIVATE_MODE).

Definition at line 163 of file proto_codecs.h.

◆ data_len

uint8_t esphome::home_io_control::OneWayFrameInfo::data_len {0}

Raw data length (for commands without decoded intent).

Definition at line 170 of file proto_codecs.h.

◆ has_intent

bool esphome::home_io_control::OneWayFrameInfo::has_intent {false}

True if originator/ACEI/intent fields were decoded.

Definition at line 164 of file proto_codecs.h.

◆ intent

char esphome::home_io_control::OneWayFrameInfo::intent[ONEWAY_INTENT_BUFFER_SIZE] {}

Human-readable command intent (e.g., "CLOSE").

Definition at line 167 of file proto_codecs.h.

◆ main0

uint8_t esphome::home_io_control::OneWayFrameInfo::main0 {0}

Raw first main byte (has_intent only); feeds oneway_intent_to_target().

Definition at line 168 of file proto_codecs.h.

◆ main1

uint8_t esphome::home_io_control::OneWayFrameInfo::main1 {0}

Raw second main byte (has_intent only); feeds oneway_intent_to_target().

Definition at line 169 of file proto_codecs.h.

◆ originator

uint8_t esphome::home_io_control::OneWayFrameInfo::originator {0}

Command originator byte (e.g., ORIGINATOR_USER_REMOTE).

Definition at line 165 of file proto_codecs.h.

◆ src

uint8_t esphome::home_io_control::OneWayFrameInfo::src[NODE_ID_SIZE] {}

Remote source node ID (3 bytes).

Definition at line 160 of file proto_codecs.h.

◆ target_type

DeviceType esphome::home_io_control::OneWayFrameInfo::target_type {DeviceType::UNKNOWN}

Target device class from broadcast address.

Definition at line 162 of file proto_codecs.h.


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