|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Switch entity that selects a cover's travel profile at runtime. More...
#include <platform_cover_controls.h>
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 | |
| IOHomeControlComponent * | parent_ {nullptr} |
| std::string | device_id_ |
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.
|
override |
Dump switch configuration to the log.
Definition at line 56 of file platform_cover_controls.cpp.
|
inlinenodiscardoverride |
Get setup priority so the parent hub is available first.
Definition at line 81 of file platform_cover_controls.h.
|
override |
Publish the boot state declared in YAML so Home Assistant starts in sync.
Definition at line 39 of file platform_cover_controls.cpp.
|
overrideprotected |
Apply the requested travel profile to the bound device.
| state | True for silent (slower) operation. |
Definition at line 48 of file platform_cover_controls.cpp.