7#include "esphome/core/log.h"
12static const char *
const TAG =
"home_io_control.rssi";
17 this->publish_state(ema_dbm);
22 LOG_SENSOR(
"",
"IO-Homecontrol RSSI",
this);
23 ESP_LOGCONFIG(
TAG,
" Device ID: %s", this->
device_id_.c_str());
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.
static constexpr const char * TAG
int16_t device_rssi_ema_dbm(const IoDevice &dev)
A device's smoothed RSSI in whole dBm.
static constexpr int16_t RSSI_UNKNOWN_DBM
Sentinel value meaning "no RSSI sample recorded yet" for last_rssi_dbm/rssi_ema_scaled.
Runtime state of a paired IO‑Homecontrol device.