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

Functions

CALLBACK_TYPE async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info)
 
list[dict[str, Any]] async_get_triggers (HomeAssistant hass, str device_id)
 
ConfigType async_validate_trigger_config (HomeAssistant hass, ConfigType config)
 

Detailed Description

Provides device automations for Philips Hue events.

Function Documentation

◆ async_attach_trigger()

CALLBACK_TYPE homeassistant.components.hue.device_trigger.async_attach_trigger ( HomeAssistant  hass,
ConfigType  config,
TriggerActionType  action,
TriggerInfo  trigger_info 
)
Listen for state changes based on configuration.

Definition at line 55 of file device_trigger.py.

◆ async_get_triggers()

list[dict[str, Any]] homeassistant.components.hue.device_trigger.async_get_triggers ( HomeAssistant  hass,
str   device_id 
)
Get device triggers for given (hass) device id.

Definition at line 84 of file device_trigger.py.

◆ async_validate_trigger_config()

ConfigType homeassistant.components.hue.device_trigger.async_validate_trigger_config ( HomeAssistant  hass,
ConfigType   config 
)
Validate config.

Definition at line 32 of file device_trigger.py.