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

Select entity that sets a cover's travel speed at runtime: default, silent or fast. More...

#include <platform_cover_controls.h>

Inheritance diagram for esphome::home_io_control::IOHomeCoverTravelSpeedSelect:
Collaboration diagram for esphome::home_io_control::IOHomeCoverTravelSpeedSelect:

Public Member Functions

void setup () override
 Publish the boot state declared in YAML so Home Assistant starts in sync.
void dump_config () override
 Dump select 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 control (const std::string &value) override
 Apply the selected travel speed 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
IOHomeControlComponent * parent_ {nullptr}
std::string device_id_

Detailed Description

Select entity that sets a cover's travel speed at runtime: default, silent or fast.

default sends the 6-byte execute frame a wall pad sends, which carries no speed profile and leaves the speed to the motor; silent and fast send the 8-byte frame with profile 0x05 or 0x06 (TravelSpeed). Only generated when the cover declares travel_speed: in YAML, which is its boot state; this select moves it afterwards. Like IOHomeCoverSilentSwitch it reflects only what this hub has been told to send: nothing on the wire reports a device's speed.

Definition at line 110 of file platform_cover_controls.h.

Member Function Documentation

◆ control()

void esphome::home_io_control::IOHomeCoverTravelSpeedSelect::control ( const std::string & value)
overrideprotected

Apply the selected travel speed to the bound device.

Parameters
value"default", "silent" or "fast" (travel_speed_name()).

Definition at line 78 of file platform_cover_controls.cpp.

Here is the call graph for this function:

◆ dump_config()

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

Dump select configuration to the log.

Definition at line 92 of file platform_cover_controls.cpp.

◆ get_setup_priority()

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

Get setup priority so the parent hub is available first.

Returns
setup_priority::DATA.

Definition at line 120 of file platform_cover_controls.h.

◆ setup()

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

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

Definition at line 69 of file platform_cover_controls.cpp.

Here is the call graph for this function:

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