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

Diagnostic text sensor that publishes IOHomeControlComponent::last_device_event() after every recorded device event. More...

#include <platform_hub_controls.h>

Inheritance diagram for esphome::home_io_control::IOHomeDeviceEventTextSensor:
Collaboration diagram for esphome::home_io_control::IOHomeDeviceEventTextSensor:

Public Member Functions

void setup () override
 Register the device-event callback.
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::HubBoundEntity
void set_parent (IOHomeControlComponent *parent)
 Set the parent controller component.

Protected Member Functions

void on_device_event_ ()
 Publish the hub's latest recorded device event.

Additional Inherited Members

Protected Attributes inherited from esphome::home_io_control::HubBoundEntity
IOHomeControlComponent * parent_ {nullptr}

Detailed Description

Diagnostic text sensor that publishes IOHomeControlComponent::last_device_event() after every recorded device event.

Only created with diagnostic_probes: true. The value is raw data from a registered device, shown for diagnosis and never applied to device state (ADR 0022, ADR 0060); only a status update addressed to the hub is authenticated before it is shown. Nothing is published before the first event of this boot.

Definition at line 184 of file platform_hub_controls.h.

Member Function Documentation

◆ dump_config()

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

Dump text-sensor configuration to the log.

Definition at line 68 of file platform_hub_controls.cpp.

◆ get_setup_priority()

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

Get setup priority so the parent hub is available first.

Returns
setup_priority::DATA.

Definition at line 194 of file platform_hub_controls.h.

◆ on_device_event_()

void esphome::home_io_control::IOHomeDeviceEventTextSensor::on_device_event_ ( )
protected

Publish the hub's latest recorded device event.

Definition at line 74 of file platform_hub_controls.cpp.

Here is the call graph for this function:

◆ setup()

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

Register the device-event callback.

Definition at line 61 of file platform_hub_controls.cpp.

Here is the call graph for this function:

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