Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.device_automation.helpers Namespace Reference

Functions

ConfigType async_validate_device_automation_config (HomeAssistant hass, ConfigType config, vol.Schema automation_schema, DeviceAutomationType automation_type)
 

Variables

dictionary DYNAMIC_VALIDATOR
 
dictionary ENTITY_PLATFORMS
 
dictionary STATIC_VALIDATOR
 

Detailed Description

Helpers for device oriented automations.

Function Documentation

◆ async_validate_device_automation_config()

ConfigType homeassistant.components.device_automation.helpers.async_validate_device_automation_config ( HomeAssistant  hass,
ConfigType  config,
vol.Schema  automation_schema,
DeviceAutomationType  automation_type 
)
Validate config.

Definition at line 48 of file helpers.py.

Variable Documentation

◆ DYNAMIC_VALIDATOR

dictionary homeassistant.components.device_automation.helpers.DYNAMIC_VALIDATOR
Initial value:
1 = {
2  DeviceAutomationType.ACTION: "async_validate_action_config",
3  DeviceAutomationType.CONDITION: "async_validate_condition_config",
4  DeviceAutomationType.TRIGGER: "async_validate_trigger_config",
5 }

Definition at line 17 of file helpers.py.

◆ ENTITY_PLATFORMS

dictionary homeassistant.components.device_automation.helpers.ENTITY_PLATFORMS
Initial value:
1 = {
2  Platform.ALARM_CONTROL_PANEL.value,
3  Platform.BUTTON.value,
4  Platform.CLIMATE.value,
5  Platform.COVER.value,
6  Platform.FAN.value,
7  Platform.HUMIDIFIER.value,
8  Platform.LIGHT.value,
9  Platform.LOCK.value,
10  Platform.NUMBER.value,
11  Platform.REMOTE.value,
12  Platform.SELECT.value,
13  Platform.SWITCH.value,
14  Platform.TEXT.value,
15  Platform.VACUUM.value,
16  Platform.WATER_HEATER.value,
17 }

Definition at line 29 of file helpers.py.

◆ STATIC_VALIDATOR

dictionary homeassistant.components.device_automation.helpers.STATIC_VALIDATOR
Initial value:
1 = {
2  DeviceAutomationType.ACTION: "ACTION_SCHEMA",
3  DeviceAutomationType.CONDITION: "CONDITION_SCHEMA",
4  DeviceAutomationType.TRIGGER: "TRIGGER_SCHEMA",
5 }

Definition at line 23 of file helpers.py.