Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
platform_cover.h File Reference

ESPHome cover entity for IO‑Homecontrol devices. More...

#include "esphome/core/component.h"
#include "esphome/components/cover/cover.h"
#include "hub_core.h"
Include dependency graph for platform_cover.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  esphome::home_io_control::IOHomeCover
 Cover entity representing an IO‑Homecontrol shutter/awning/blind. More...

Namespaces

namespace  esphome
namespace  esphome::home_io_control

Detailed Description

ESPHome cover entity for IO‑Homecontrol devices.

Maps IO‑Homecontrol devices (shutters, awnings, blinds) to Home Assistant cover entities with position control and real‑time feedback.

Position mapping between Home Assistant and IO‑Homecontrol: HA: 1.0 = fully open, 0.0 = fully closed IO: 0 = fully open, 100 = fully closed The conversion is: ha_position = 1.0 - (io_position / 100.0)

Warning
Some device types (e.g., horizontal awnings) have inverted position mapping by default (see default_inverted_for_type() in proto_frame.h). The invert flag flips the HA↔IO conversion accordingly. Ensure the device's actual behavior matches the mapping, or set invert_position accordingly.

Definition in file platform_cover.h.