Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.device_tracker.device_trigger Namespace Reference

Functions

CALLBACK_TYPE async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info)
 
dict[str, vol.Schema] async_get_trigger_capabilities (HomeAssistant hass, ConfigType config)
 
list[dict[str, str]] async_get_triggers (HomeAssistant hass, str device_id)
 

Variables

 Final
 

Detailed Description

Provides device automations for Device Tracker.

Function Documentation

◆ async_attach_trigger()

CALLBACK_TYPE homeassistant.components.device_tracker.device_trigger.async_attach_trigger ( HomeAssistant  hass,
ConfigType  config,
TriggerActionType  action,
TriggerInfo  trigger_info 
)
Attach a trigger.

Definition at line 73 of file device_trigger.py.

◆ async_get_trigger_capabilities()

dict[str, vol.Schema] homeassistant.components.device_tracker.device_trigger.async_get_trigger_capabilities ( HomeAssistant  hass,
ConfigType   config 
)
List trigger capabilities.

Definition at line 97 of file device_trigger.py.

◆ async_get_triggers()

list[dict[str, str]] homeassistant.components.device_tracker.device_trigger.async_get_triggers ( HomeAssistant  hass,
str   device_id 
)
List device triggers for Device Tracker devices.

Definition at line 39 of file device_trigger.py.

Variable Documentation

◆ Final

homeassistant.components.device_tracker.device_trigger.Final

Definition at line 30 of file device_trigger.py.