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

Static Public Attributes

string CONF_SCENE_NUMBER = "scene_number"
 
string DEFAULT_NAME = "KNX SCENE"
 
 ENTITY_SCHEMA
 
 PLATFORM = Platform.SCENE
 

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 scenes.

Definition at line 804 of file schema.py.

Member Data Documentation

◆ CONF_SCENE_NUMBER

string homeassistant.components.knx.schema.SceneSchema.CONF_SCENE_NUMBER = "scene_number"
static

Definition at line 809 of file schema.py.

◆ DEFAULT_NAME

string homeassistant.components.knx.schema.SceneSchema.DEFAULT_NAME = "KNX SCENE"
static

Definition at line 811 of file schema.py.

◆ ENTITY_SCHEMA

homeassistant.components.knx.schema.SceneSchema.ENTITY_SCHEMA
static
Initial value:
= vol.Schema(
{
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Required(KNX_ADDRESS): ga_list_validator,
vol.Required(CONF_SCENE_NUMBER): vol.All(
vol.Coerce(int), vol.Range(min=1, max=64)
),
vol.Optional(CONF_ENTITY_CATEGORY): ENTITY_CATEGORIES_SCHEMA,
}
)

Definition at line 812 of file schema.py.

◆ PLATFORM

homeassistant.components.knx.schema.SceneSchema.PLATFORM = Platform.SCENE
static

Definition at line 807 of file schema.py.


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