Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
platform_companion_sensors.h File Reference

The seven auto-generated per-device diagnostic companion sensors. More...

#include "esphome/components/sensor/sensor.h"
#include "esphome/components/text_sensor/text_sensor.h"
#include "esphome/core/component.h"
#include "platform_entity_base.h"
Include dependency graph for platform_companion_sensors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  esphome::home_io_control::IOHomeRssiSensor
 Diagnostic sensor that publishes a device's smoothed (EMA) RSSI in dBm. More...
class  esphome::home_io_control::IOHomeLastContactSensor
 Diagnostic sensor that publishes seconds elapsed since the last frame received from a device (see detail::update_link_health() in hub_internal.h). More...
class  esphome::home_io_control::IOHomeExchangeFailuresSensor
 Diagnostic sensor that publishes a device's cumulative count of outbound exchanges that timed out (no valid response) — see detail::record_exchange_timeout() in hub_internal.h. More...
class  esphome::home_io_control::IOHomeDeviceNameTextSensor
 Diagnostic text sensor that publishes the cached device name. More...
class  esphome::home_io_control::IOHomeActiveIssueTextSensor
 Diagnostic text sensor that publishes the symbolic name of a device's most recent CMD_ERROR_RESP result code (e.g. More...
class  esphome::home_io_control::IOHomeLastCommandedByTextSensor
 Diagnostic text sensor naming the controller that last commanded this device. More...
class  esphome::home_io_control::IOHomeLastCommandSourceTextSensor
 Diagnostic text sensor naming what kind of source issued that last command. More...

Namespaces

namespace  esphome
namespace  esphome::home_io_control

Detailed Description

The seven auto-generated per-device diagnostic companion sensors.

Every device-bound platform (cover, light, switch, lock) gets the same seven read-only companions generated alongside it by platform_common.py: smoothed RSSI, seconds since last contact, cumulative exchange-failure count, the stored device name, the currently outstanding CMD_ERROR_RESP reason, and the last-command record's commander/originator. They share the DeviceBoundCompanion binding (observe-only: no add_device(), no polling) and an all-but- identical setup()/dump_config() skeleton, so they live together here rather than in seven near-duplicate file pairs.

Definition in file platform_companion_sensors.h.