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

Diagnostic text sensor naming the controller that last commanded this device. More...

#include <platform_companion_sensors.h>

Inheritance diagram for esphome::home_io_control::IOHomeLastCommandedByTextSensor:
Collaboration diagram for esphome::home_io_control::IOHomeLastCommandedByTextSensor:

Public Member Functions

void setup () override
void dump_config () override
float get_setup_priority () const override
Public Member Functions inherited from esphome::home_io_control::DeviceBoundCompanion
void set_parent (IOHomeControlComponent *parent)
 Set the parent controller component.
void set_device_id (const std::string &id)
 Set the device ID whose state this companion sensor exposes.

Additional Inherited Members

Protected Member Functions inherited from esphome::home_io_control::DeviceBoundCompanion
void register_companion_binding_ (const std::function< void(const IoDevice &)> &publish)
 Shared setup() body: subscribe to this device's updates and publish the initial state.
Protected Attributes inherited from esphome::home_io_control::DeviceBoundCompanion
IOHomeControlComponentparent_ {nullptr}
std::string device_id_

Detailed Description

Diagnostic text sensor naming the controller that last commanded this device.

Read from bytes the device already includes in every status reply — no extra radio traffic and no probe. Last-writer-wins and inherently stale: it only changes when something actually commands the device, and a foreign controller's node ID has no name unless the user recognises it. Publishes an empty string until the first status reply carrying the record arrives.

Definition at line 140 of file platform_companion_sensors.h.

Member Function Documentation

◆ dump_config()

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

Definition at line 115 of file platform_companion_sensors.cpp.

◆ get_setup_priority()

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

Definition at line 144 of file platform_companion_sensors.h.

◆ setup()

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

Definition at line 106 of file platform_companion_sensors.cpp.

Here is the call graph for this function:

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