Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.knx.schema.BinarySensorSchema Class Reference
Inheritance diagram for homeassistant.components.knx.schema.BinarySensorSchema:
[legend]
Collaboration diagram for homeassistant.components.knx.schema.BinarySensorSchema:
[legend]

Static Public Attributes

string CONF_CONTEXT_TIMEOUT = "context_timeout"
 
string CONF_IGNORE_INTERNAL_STATE = "ignore_internal_state"
 
 CONF_INVERT = CONF_INVERT
 
 CONF_RESET_AFTER = CONF_RESET_AFTER
 
 CONF_STATE_ADDRESS = CONF_STATE_ADDRESS
 
 CONF_SYNC_STATE = CONF_SYNC_STATE
 
string DEFAULT_NAME = "KNX Binary Sensor"
 
 ENTITY_SCHEMA
 
 PLATFORM = Platform.BINARY_SENSOR
 

Additional Inherited Members

- Public Member Functions inherited from homeassistant.components.knx.schema.KNXPlatformSchema
dict[vol.Optional, vol.All] platform_node (cls)
 

Detailed Description

Voluptuous schema for KNX binary sensors.

Definition at line 210 of file schema.py.

Member Data Documentation

◆ CONF_CONTEXT_TIMEOUT

string homeassistant.components.knx.schema.BinarySensorSchema.CONF_CONTEXT_TIMEOUT = "context_timeout"
static

Definition at line 219 of file schema.py.

◆ CONF_IGNORE_INTERNAL_STATE

string homeassistant.components.knx.schema.BinarySensorSchema.CONF_IGNORE_INTERNAL_STATE = "ignore_internal_state"
static

Definition at line 218 of file schema.py.

◆ CONF_INVERT

homeassistant.components.knx.schema.BinarySensorSchema.CONF_INVERT = CONF_INVERT
static

Definition at line 217 of file schema.py.

◆ CONF_RESET_AFTER

homeassistant.components.knx.schema.BinarySensorSchema.CONF_RESET_AFTER = CONF_RESET_AFTER
static

Definition at line 220 of file schema.py.

◆ CONF_STATE_ADDRESS

homeassistant.components.knx.schema.BinarySensorSchema.CONF_STATE_ADDRESS = CONF_STATE_ADDRESS
static

Definition at line 215 of file schema.py.

◆ CONF_SYNC_STATE

homeassistant.components.knx.schema.BinarySensorSchema.CONF_SYNC_STATE = CONF_SYNC_STATE
static

Definition at line 216 of file schema.py.

◆ DEFAULT_NAME

string homeassistant.components.knx.schema.BinarySensorSchema.DEFAULT_NAME = "KNX Binary Sensor"
static

Definition at line 222 of file schema.py.

◆ ENTITY_SCHEMA

homeassistant.components.knx.schema.BinarySensorSchema.ENTITY_SCHEMA
static
Initial value:
= vol.All(
vol.Schema(
{
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(CONF_SYNC_STATE, default=True): sync_state_validator,
vol.Optional(CONF_IGNORE_INTERNAL_STATE, default=False): cv.boolean,
vol.Optional(CONF_INVERT, default=False): cv.boolean,
vol.Required(CONF_STATE_ADDRESS): ga_list_validator,
vol.Optional(CONF_CONTEXT_TIMEOUT): vol.All(
vol.Coerce(float), vol.Range(min=0, max=10)
),
vol.Optional(CONF_DEVICE_CLASS): BINARY_SENSOR_DEVICE_CLASSES_SCHEMA,
vol.Optional(CONF_RESET_AFTER): cv.positive_float,
vol.Optional(CONF_ENTITY_CATEGORY): ENTITY_CATEGORIES_SCHEMA,
}
),
)

Definition at line 224 of file schema.py.

◆ PLATFORM

homeassistant.components.knx.schema.BinarySensorSchema.PLATFORM = Platform.BINARY_SENSOR
static

Definition at line 213 of file schema.py.


The documentation for this class was generated from the following file: