|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Diagnostic sensor that publishes a device's smoothed (EMA) RSSI in dBm. More...
#include <platform_rssi_sensor.h>
Public Member Functions | |
| void | setup () override |
| Register the device-update subscription and publish the initial cached state. | |
| void | dump_config () override |
| Dump 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::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 sensor that publishes a device's smoothed (EMA) RSSI in dBm.
Publishes nothing until the first RX from this device seeds the EMA (see detail::update_link_health() in hub_internal.h) — Home Assistant shows the entity as unavailable until then, rather than a misleading 0 dBm.
Definition at line 20 of file platform_rssi_sensor.h.
|
override |
Dump sensor configuration to the log.
Definition at line 21 of file platform_rssi_sensor.cpp.
|
inlinenodiscardoverride |
Get setup priority so the parent hub is available first.
Definition at line 30 of file platform_rssi_sensor.h.
|
override |
Register the device-update subscription and publish the initial cached state.
Definition at line 14 of file platform_rssi_sensor.cpp.