Diagnostic text sensor that publishes the cached device name.
More...
#include <platform_device_name_text_sensor.h>
|
| void | set_parent (IOHomeControlComponent *parent) |
| | Set the parent controller component.
|
| void | set_device_id (const std::string &id) |
| | Set the device ID whose cached name this sensor exposes.
|
| void | setup () override |
| | Register callbacks and schedule an initial name fetch.
|
| 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.
|
|
| void | on_device_update_ (const std::string &id, const IoDevice &dev) |
| | Publish the current cached device name after a hub update.
|
Diagnostic text sensor that publishes the cached device name.
Definition at line 18 of file platform_device_name_text_sensor.h.
◆ dump_config()
| void esphome::home_io_control::IOHomeDeviceNameTextSensor::dump_config |
( |
| ) |
|
|
override |
◆ get_setup_priority()
| float esphome::home_io_control::IOHomeDeviceNameTextSensor::get_setup_priority |
( |
| ) |
const |
|
inlinenodiscardoverride |
◆ on_device_update_()
| void esphome::home_io_control::IOHomeDeviceNameTextSensor::on_device_update_ |
( |
const std::string & | id, |
|
|
const IoDevice & | dev ) |
|
protected |
Publish the current cached device name after a hub update.
- Parameters
-
| id | Device ID that updated. |
| dev | Updated cached device record. |
Definition at line 34 of file platform_device_name_text_sensor.cpp.
◆ set_device_id()
| void esphome::home_io_control::IOHomeDeviceNameTextSensor::set_device_id |
( |
const std::string & | id | ) |
|
|
inline |
Set the device ID whose cached name this sensor exposes.
- Parameters
-
| id | Hexadecimal node ID string (for example "123ABC"). |
Definition at line 26 of file platform_device_name_text_sensor.h.
◆ set_parent()
◆ setup()
| void esphome::home_io_control::IOHomeDeviceNameTextSensor::setup |
( |
| ) |
|
|
override |
◆ device_id_
| std::string esphome::home_io_control::IOHomeDeviceNameTextSensor::device_id_ |
|
protected |
◆ parent_
The documentation for this class was generated from the following files: