Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
home_io_control.cover Namespace Reference

Functions

 device_supports_position_control (value)
 device_supports_vent (value)
 favorite_button_name (config)
 vent_button_name (config)
 _inject_companion_ids (config)
 to_code (config)

Variables

list DEPENDENCIES = ["home_io_control"]
str CONF_INVERT_POSITION = "invert_position"
str CONF_OPTIMISTIC_STATE = "optimistic_state"
str CONF_FAVORITE_BUTTON_ID = "_favorite_button_id"
str CONF_VENT_BUTTON_ID = "_vent_button_id"
 IOHomeCover = home_io_control_ns.class_("IOHomeCover", cover.Cover, cg.Component)
 IOHomeCoverFavoriteButton
 IOHomeCoverVentButton
dict POSITION_CONTROL_DEVICE_TYPES
dict VENT_DEVICE_TYPES
 CONFIG_SCHEMA

Function Documentation

◆ _inject_companion_ids()

home_io_control.cover._inject_companion_ids ( config)
protected
Declare cover companion entity IDs during schema validation for StaticVector sizing.

The favorite and ventilation buttons are cover-only and gated on device capability, so
their injection stays here. The always-present companion sensor IDs are delegated to the
shared helper. See platform_common.companion_id_base() for the StaticVector rationale.

Definition at line 103 of file cover.py.

Here is the call graph for this function:

◆ device_supports_position_control()

home_io_control.cover.device_supports_position_control ( value)
Check if the given device type value supports 0-100% position control.

Definition at line 69 of file cover.py.

◆ device_supports_vent()

home_io_control.cover.device_supports_vent ( value)
Check if the given device type value supports the ventilation command.

Definition at line 82 of file cover.py.

◆ favorite_button_name()

home_io_control.cover.favorite_button_name ( config)
Derive the favorite-position button name from the parent cover name.

Definition at line 87 of file cover.py.

◆ to_code()

home_io_control.cover.to_code ( config)

Definition at line 144 of file cover.py.

Here is the call graph for this function:

◆ vent_button_name()

home_io_control.cover.vent_button_name ( config)
Derive the ventilation-position button name from the parent cover name.

Definition at line 95 of file cover.py.

Variable Documentation

◆ CONF_FAVORITE_BUTTON_ID

str home_io_control.cover.CONF_FAVORITE_BUTTON_ID = "_favorite_button_id"

Definition at line 37 of file cover.py.

◆ CONF_INVERT_POSITION

str home_io_control.cover.CONF_INVERT_POSITION = "invert_position"

Definition at line 33 of file cover.py.

◆ CONF_OPTIMISTIC_STATE

str home_io_control.cover.CONF_OPTIMISTIC_STATE = "optimistic_state"

Definition at line 34 of file cover.py.

◆ CONF_VENT_BUTTON_ID

str home_io_control.cover.CONF_VENT_BUTTON_ID = "_vent_button_id"

Definition at line 38 of file cover.py.

◆ CONFIG_SCHEMA

home_io_control.cover.CONFIG_SCHEMA
Initial value:
1= cv.All(
2 cover.cover_schema(IOHomeCover)
3 .extend(platform_schema_extension())
4 .extend({cv.Optional(CONF_INVERT_POSITION): cv.boolean})
5 .extend({cv.Optional(CONF_OPTIMISTIC_STATE, default=True): cv.boolean})
6 .extend(cv.COMPONENT_SCHEMA),
7 _inject_companion_ids,
8)

Definition at line 134 of file cover.py.

◆ DEPENDENCIES

list home_io_control.cover.DEPENDENCIES = ["home_io_control"]

Definition at line 31 of file cover.py.

◆ IOHomeCover

home_io_control.cover.IOHomeCover = home_io_control_ns.class_("IOHomeCover", cover.Cover, cg.Component)

Definition at line 40 of file cover.py.

◆ IOHomeCoverFavoriteButton

home_io_control.cover.IOHomeCoverFavoriteButton
Initial value:
1= home_io_control_ns.class_(
2 "IOHomeCoverFavoriteButton", button.Button, cg.Component
3)

Definition at line 41 of file cover.py.

◆ IOHomeCoverVentButton

home_io_control.cover.IOHomeCoverVentButton
Initial value:
1= home_io_control_ns.class_(
2 "IOHomeCoverVentButton", button.Button, cg.Component
3)

Definition at line 44 of file cover.py.

◆ POSITION_CONTROL_DEVICE_TYPES

dict home_io_control.cover.POSITION_CONTROL_DEVICE_TYPES
Initial value:
1= {
2 0x01, # venetian_blind
3 0x02, # roller_shutter
4 0x03, # awning
5 0x04, # window_opener
6 0x05, # garage_opener
7 0x07, # gate_opener
8 0x08, # rolling_door_opener
9 0x0A, # blind
10 0x0B, # screen
11 0x0D, # dual_shutter
12 0x10, # horizontal_awning
13 0x11, # external_venetian_blind
14 0x12, # louvre_blind
15 0x13, # curtain_track
16 0x18, # swinging_shutter
17}

Definition at line 50 of file cover.py.

◆ VENT_DEVICE_TYPES

dict home_io_control.cover.VENT_DEVICE_TYPES
Initial value:
1= {
2 0x04, # window_opener
3 0x14, # ventilation_point
4}

Definition at line 76 of file cover.py.