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

Functions

 device_name_sensor_id (parent_id)
 device_name_sensor_name (config)
 to_code (config)

Variables

list DEPENDENCIES = ["home_io_control"]
str CONF_DEVICE_ID = "io_device_id"
str CONF_LINKED_REMOTES = "linked_remotes"
str CONF_DEVICE_TYPE = "io_device_type"
str CONF_SUBTYPE = "io_subtype"
str CONF_STATUS_POLL_INTERVAL = "status_poll_interval"
 IOHomeLight = home_io_control_ns.class_("IOHomeLight", light.LightOutput, cg.Component)
 IOHomeDeviceNameTextSensor
tuple CONFIG_SCHEMA

Function Documentation

◆ device_name_sensor_id()

home_io_control.light.device_name_sensor_id ( parent_id)
Generate a unique ID for the diagnostic device-name text sensor.

Definition at line 43 of file light.py.

◆ device_name_sensor_name()

home_io_control.light.device_name_sensor_name ( config)
Derive the device-name sensor name from the parent entity name.

Definition at line 52 of file light.py.

◆ to_code()

home_io_control.light.to_code ( config)

Definition at line 79 of file light.py.

Here is the call graph for this function:

Variable Documentation

◆ CONF_DEVICE_ID

str home_io_control.light.CONF_DEVICE_ID = "io_device_id"

Definition at line 31 of file light.py.

◆ CONF_DEVICE_TYPE

str home_io_control.light.CONF_DEVICE_TYPE = "io_device_type"

Definition at line 33 of file light.py.

◆ CONF_LINKED_REMOTES

str home_io_control.light.CONF_LINKED_REMOTES = "linked_remotes"

Definition at line 32 of file light.py.

◆ CONF_STATUS_POLL_INTERVAL

str home_io_control.light.CONF_STATUS_POLL_INTERVAL = "status_poll_interval"

Definition at line 35 of file light.py.

◆ CONF_SUBTYPE

str home_io_control.light.CONF_SUBTYPE = "io_subtype"

Definition at line 34 of file light.py.

◆ CONFIG_SCHEMA

tuple home_io_control.light.CONFIG_SCHEMA
Initial value:
1= (
2 # Expose this as a binary light on purpose. The transport may carry 0-100 values, but only
3 # on/off semantics are backed by current protocol evidence, needs real device to verify
4 light.light_schema(IOHomeLight, light.LightType.BINARY)
5 .extend(
6 {
7 cv.GenerateID(CONF_HOME_IO_CONTROL_ID): cv.use_id(
8 IOHomeControlComponent
9 ),
10 cv.Required(CONF_DEVICE_ID): validate_device_id,
11 cv.Optional(CONF_DEVICE_TYPE): validate_device_type,
12 cv.Optional(CONF_SUBTYPE): cv.int_range(min=0, max=63),
13 cv.Optional(CONF_LINKED_REMOTES): cv.ensure_list(validate_device_id),
14 cv.Optional(CONF_STATUS_POLL_INTERVAL): validate_status_poll_interval,
15 }
16 )
17 .extend(cv.COMPONENT_SCHEMA)
18)

Definition at line 59 of file light.py.

◆ DEPENDENCIES

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

Definition at line 29 of file light.py.

◆ IOHomeDeviceNameTextSensor

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

Definition at line 38 of file light.py.

◆ IOHomeLight

home_io_control.light.IOHomeLight = home_io_control_ns.class_("IOHomeLight", light.LightOutput, cg.Component)

Definition at line 37 of file light.py.