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

Functions

 _inject_pairing_result_sensor_id (config)
 to_code (config)

Variables

list DEPENDENCIES = ["home_io_control"]
 IOHomeDiscoverButton
 IOHomePairingResultTextSensor
str CONF_PAIRING_RESULT_SENSOR_ID = "_pairing_result_sensor_id"
 CONFIG_SCHEMA

Function Documentation

◆ _inject_pairing_result_sensor_id()

home_io_control.button._inject_pairing_result_sensor_id ( config)
protected
Declare the companion pairing-result sensor ID during schema validation.

ESPHome 2026.x sizes its runtime component vector from the number of component IDs
known at the end of schema validation — before to_code() runs. A companion entity
created only in to_code() is not counted and silently drops at runtime. See the
identical pattern (and its full rationale) in platform_common.py::companion_id_base().

Definition at line 36 of file button.py.

◆ to_code()

home_io_control.button.to_code ( config)

Definition at line 73 of file button.py.

Variable Documentation

◆ CONF_PAIRING_RESULT_SENSOR_ID

str home_io_control.button.CONF_PAIRING_RESULT_SENSOR_ID = "_pairing_result_sensor_id"

Definition at line 33 of file button.py.

◆ CONFIG_SCHEMA

home_io_control.button.CONFIG_SCHEMA
Initial value:
1= cv.All(
2 button.button_schema(
3 IOHomeDiscoverButton,
4 entity_category=ENTITY_CATEGORY_CONFIG,
5 )
6 .extend(
7 {
8 cv.GenerateID(CONF_HOME_IO_CONTROL_ID): cv.use_id(
9 IOHomeControlComponent
10 ),
11 }
12 )
13 .extend(cv.COMPONENT_SCHEMA),
14 _inject_pairing_result_sensor_id,
15)

Definition at line 56 of file button.py.

◆ DEPENDENCIES

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

Definition at line 23 of file button.py.

◆ IOHomeDiscoverButton

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

Definition at line 25 of file button.py.

◆ IOHomePairingResultTextSensor

home_io_control.button.IOHomePairingResultTextSensor
Initial value:
1= home_io_control_ns.class_(
2 "IOHomePairingResultTextSensor", text_sensor.TextSensor, cg.Component
3)

Definition at line 28 of file button.py.