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

Diagnostic text sensor: what this identity last put on air. More...

#include <platform_oneway_entities.h>

Inheritance diagram for esphome::home_io_control::IOHomeOneWayLastCommandTextSensor:
Collaboration diagram for esphome::home_io_control::IOHomeOneWayLastCommandTextSensor:

Public Member Functions

void setup () override
 Subscribe to the hub's per-command reports.
void dump_config () override
 Dump text-sensor configuration to the log.
float get_setup_priority () const override
 Get setup priority so the parent hub is available first.
Public Member Functions inherited from esphome::home_io_control::OneWayControllerBound
void set_controller_id (const std::string &id)
 Set the controller identity this entity acts as / reports on.
Public Member Functions inherited from esphome::home_io_control::HubBoundEntity
void set_parent (IOHomeControlComponent *parent)
 Set the parent controller component.

Additional Inherited Members

Protected Attributes inherited from esphome::home_io_control::OneWayControllerBound
std::string controller_id_
Protected Attributes inherited from esphome::home_io_control::HubBoundEntity
IOHomeControlComponentparent_ {nullptr}

Detailed Description

Diagnostic text sensor: what this identity last put on air.

This is the only feedback 1W transmit can ever give. There is no reply frame, so a command a device ignored is indistinguishable on the radio from one it obeyed. A user with a wrong key, a desynced counter or a missing enrollment would otherwise see nothing at all — not an error, not a timeout, nothing.

So this sensor deliberately does not claim the device acted, and its text must never be worded as if it did. It reports what the hub transmitted, which is the half that is knowable, and it surfaces the sequence used so a stuck user can judge whether the counter is the problem and whether initial_sequence: needs bumping.

Definition at line 96 of file platform_oneway_entities.h.

Member Function Documentation

◆ dump_config()

void esphome::home_io_control::IOHomeOneWayLastCommandTextSensor::dump_config ( )
override

Dump text-sensor configuration to the log.

Definition at line 51 of file platform_oneway_entities.cpp.

◆ get_setup_priority()

float esphome::home_io_control::IOHomeOneWayLastCommandTextSensor::get_setup_priority ( ) const
inlinenodiscardoverride

Get setup priority so the parent hub is available first.

Returns
setup_priority::DATA.

Definition at line 108 of file platform_oneway_entities.h.

◆ setup()

void esphome::home_io_control::IOHomeOneWayLastCommandTextSensor::setup ( )
override

Subscribe to the hub's per-command reports.

Definition at line 39 of file platform_oneway_entities.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: