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

Switch entity that selects a cover's travel profile at runtime. More...

#include <platform_cover_controls.h>

Inheritance diagram for esphome::home_io_control::IOHomeCoverSilentSwitch:
Collaboration diagram for esphome::home_io_control::IOHomeCoverSilentSwitch:

Public Member Functions

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.
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.

Protected Member Functions

void write_state (bool state) override
 Apply the requested travel profile to the bound device.
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.

Additional Inherited Members

Protected Attributes inherited from esphome::home_io_control::DeviceBoundCompanion
IOHomeControlComponentparent_ {nullptr}
std::string device_id_

Detailed Description

Switch entity that selects a cover's travel profile at runtime.

ON sends position commands with the manufacturer app's "silent operation" extended block, which makes the motor travel more slowly; OFF sends the normal payload. Only generated when the cover declares silent: in YAML, so a config that never mentions it gains no entity — the YAML value is the boot state and this switch moves it afterwards.

Device-bound like IOHomeCoverCommandButton rather than hub-level like IOHomeAcceptForeignPairingSwitch: the setting is per actuator. Nothing on the wire reports a device's current profile, so this reflects only what this hub has been told to send — there is no readback to reconcile against, and none is faked.

Definition at line 71 of file platform_cover_controls.h.

Member Function Documentation

◆ dump_config()

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

Dump switch configuration to the log.

Definition at line 56 of file platform_cover_controls.cpp.

◆ get_setup_priority()

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

Get setup priority so the parent hub is available first.

Returns
setup_priority::DATA.

Definition at line 81 of file platform_cover_controls.h.

◆ setup()

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

Publish the boot state declared in YAML so Home Assistant starts in sync.

Definition at line 39 of file platform_cover_controls.cpp.

◆ write_state()

void esphome::home_io_control::IOHomeCoverSilentSwitch::write_state ( bool state)
overrideprotected

Apply the requested travel profile to the bound device.

Parameters
stateTrue for silent (slower) operation.

Definition at line 48 of file platform_cover_controls.cpp.


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