|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Diagnostic text sensor naming the controller that last commanded this device. More...
#include <platform_companion_sensors.h>
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 | |
| IOHomeControlComponent * | parent_ {nullptr} |
| std::string | device_id_ |
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.
|
override |
Definition at line 115 of file platform_companion_sensors.cpp.
|
inlinenodiscardoverride |
Definition at line 144 of file platform_companion_sensors.h.
|
override |
Definition at line 106 of file platform_companion_sensors.cpp.