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

What the hub knows about the device an exchange is addressed to, as the exchange engine sees it. More...

#include <hub_decisions.h>

Collaboration diagram for esphome::home_io_control::decisions::TargetEvidence:

Public Attributes

uint32_t last_moving_evidence_ms
 Last sign the receiver is travelling (see note_moving_evidence(), clear_moving_evidence()).
uint32_t last_seen_ms
 Last frame received from the receiver, any command.
bool confirms_execute
 The device has closed a CMD_EXECUTE exchange with a reply before.
uint32_t moving_until_ms {0}
 When the remaining time of its last trusted moving report has run out (millis()), 0 = unknown (see moving_until_holds()).
uint32_t last_status_ms {0}
 Last status report from the receiver (millis()), 0 = never.

Detailed Description

What the hub knows about the device an exchange is addressed to, as the exchange engine sees it.

The engine has no device registry of its own; the hub hands this over through ExchangeEngine::set_target_evidence_provider(), and every per-target decision the engine makes reads from it: wake_belief() and retry_after_unconfirmed_accept_is_safe(). Timestamps are millis() values, 0 = never.

Definition at line 717 of file hub_decisions.h.

Member Data Documentation

◆ confirms_execute

bool esphome::home_io_control::decisions::TargetEvidence::confirms_execute

The device has closed a CMD_EXECUTE exchange with a reply before.

Definition at line 722 of file hub_decisions.h.

◆ last_moving_evidence_ms

uint32_t esphome::home_io_control::decisions::TargetEvidence::last_moving_evidence_ms

Last sign the receiver is travelling (see note_moving_evidence(), clear_moving_evidence()).

Definition at line 718 of file hub_decisions.h.

◆ last_seen_ms

uint32_t esphome::home_io_control::decisions::TargetEvidence::last_seen_ms

Last frame received from the receiver, any command.

Only logged (age_ms=); it does not feed the belief.

Definition at line 720 of file hub_decisions.h.

◆ last_status_ms

uint32_t esphome::home_io_control::decisions::TargetEvidence::last_status_ms {0}

Last status report from the receiver (millis()), 0 = never.

A recent one is news of its state, so a status read is not UNKNOWN then.

Definition at line 725 of file hub_decisions.h.

◆ moving_until_ms

uint32_t esphome::home_io_control::decisions::TargetEvidence::moving_until_ms {0}

When the remaining time of its last trusted moving report has run out (millis()), 0 = unknown (see moving_until_holds()).

Definition at line 723 of file hub_decisions.h.


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