Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.matter.valve Namespace Reference

Classes

class  MatterValve
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

list DISCOVERY_SCHEMAS
 
 ValveConfigurationAndControl = clusters.ValveConfigurationAndControl
 
 ValveStateEnum = ValveConfigurationAndControl.Enums.ValveStateEnum
 

Detailed Description

Matter valve platform.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.matter.valve.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Matter valve platform from Config Entry.

Definition at line 28 of file valve.py.

Variable Documentation

◆ DISCOVERY_SCHEMAS

list homeassistant.components.matter.valve.DISCOVERY_SCHEMAS
Initial value:
1 = [
2  MatterDiscoverySchema(
3  platform=Platform.VALVE,
4  entity_description=ValveEntityDescription(
5  key="MatterValve",
6  device_class=ValveDeviceClass.WATER,
7  name=None,
8  ),
9  entity_class=MatterValve,
10  required_attributes=(
11  ValveConfigurationAndControl.Attributes.CurrentState,
12  ValveConfigurationAndControl.Attributes.TargetState,
13  ),
14  optional_attributes=(ValveConfigurationAndControl.Attributes.CurrentLevel,),
15  device_type=(device_types.WaterValve,),
16  ),
17 ]

Definition at line 137 of file valve.py.

◆ ValveConfigurationAndControl

homeassistant.components.matter.valve.ValveConfigurationAndControl = clusters.ValveConfigurationAndControl

Definition at line 23 of file valve.py.

◆ ValveStateEnum

homeassistant.components.matter.valve.ValveStateEnum = ValveConfigurationAndControl.Enums.ValveStateEnum

Definition at line 25 of file valve.py.