7#include "esphome/core/log.h"
16static const char *
const TAG_SILENT =
"home_io_control.cover.silent";
20 ESP_LOGW(
TAG_COMMAND_BUTTON,
"Ignoring %s press because the parent hub is not configured",
25 if (this->
parent_->get_device(this->device_id_) ==
nullptr) {
26 ESP_LOGW(
TAG_COMMAND_BUTTON,
"Ignoring %s press for %s because the device is not registered yet",
44 if (
const IoDevice *dev = this->
parent_->get_device(this->device_id_); dev !=
nullptr)
45 this->publish_state(dev->silent);
52 this->publish_state(state);
53 ESP_LOGI(
TAG_SILENT,
"Device %s: silent operation %s", this->
device_id_.c_str(), state ?
"on" :
"off");
57 ESP_LOGCONFIG(
TAG_SILENT,
"IO-Homecontrol Silent Operation:");
IOHomeControlComponent * parent_
void write_state(bool state) override
Apply the requested travel profile to the bound device.
void setup() override
Publish the boot state declared in YAML so Home Assistant starts in sync.
void dump_config() override
Dump switch configuration to the log.
static const char *const TAG_COMMAND_BUTTON
static const char *const TAG_SILENT
const char * cover_command_name(CoverCommand cmd)
Get a human-readable name for a CoverCommand.
Runtime state of a paired IO‑Homecontrol device.