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 | |
| TRIGGER_SCHEMA | |
Provides device trigger for lights.
| CALLBACK_TYPE homeassistant.components.light.device_trigger.async_attach_trigger | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| TriggerActionType | action, | ||
| TriggerInfo | trigger_info | ||
| ) |
Listen for state changes based on configuration.
Definition at line 21 of file device_trigger.py.
| dict[str, vol.Schema] homeassistant.components.light.device_trigger.async_get_trigger_capabilities | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
List trigger capabilities.
Definition at line 38 of file device_trigger.py.
| list[dict[str, str]] homeassistant.components.light.device_trigger.async_get_triggers | ( | HomeAssistant | hass, |
| str | device_id | ||
| ) |
List device triggers.
Definition at line 31 of file device_trigger.py.
| homeassistant.components.light.device_trigger.TRIGGER_SCHEMA |
Definition at line 15 of file device_trigger.py.