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

Classes

class  DeviceAutomationTriggerProtocol
 

Functions

CALLBACK_TYPE async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info)
 
ConfigType async_validate_trigger_config (HomeAssistant hass, ConfigType config)
 

Variables

 TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend({}, extra=vol.ALLOW_EXTRA)
 

Detailed Description

Offer device oriented automation.

Function Documentation

◆ async_attach_trigger()

CALLBACK_TYPE homeassistant.components.device_automation.trigger.async_attach_trigger ( HomeAssistant  hass,
ConfigType  config,
TriggerActionType  action,
TriggerInfo  trigger_info 
)
Listen for trigger.

Definition at line 55 of file trigger.py.

◆ async_validate_trigger_config()

ConfigType homeassistant.components.device_automation.trigger.async_validate_trigger_config ( HomeAssistant  hass,
ConfigType   config 
)
Validate config.

Definition at line 46 of file trigger.py.

Variable Documentation

◆ TRIGGER_SCHEMA

homeassistant.components.device_automation.trigger.TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend({}, extra=vol.ALLOW_EXTRA)

Definition at line 25 of file trigger.py.