Functions | |
| tuple[str, dict] | _get_device_trigger_data (HomeAssistant hass, str device_id) |
| CALLBACK_TYPE | async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info) |
| list[dict[str, str]] | async_get_triggers (HomeAssistant hass, str device_id) |
| ConfigType | async_validate_trigger_config (HomeAssistant hass, ConfigType config) |
Variables | |
| string | CONF_SUBTYPE = "subtype" |
| string | DEVICE = "device" |
| string | DEVICE_IEEE = "device_ieee" |
| TRIGGER_SCHEMA | |
Provides device automations for ZHA devices that emit events.
|
private |
Get device trigger data for a device, falling back to the cache if possible.
Definition at line 29 of file device_trigger.py.
| CALLBACK_TYPE homeassistant.components.zha.device_trigger.async_attach_trigger | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| TriggerActionType | action, | ||
| TriggerInfo | trigger_info | ||
| ) |
Listen for state changes based on configuration.
Definition at line 60 of file device_trigger.py.
| list[dict[str, str]] homeassistant.components.zha.device_trigger.async_get_triggers | ( | HomeAssistant | hass, |
| str | device_id | ||
| ) |
List device triggers. Make sure the device supports device automations and return the trigger list.
Definition at line 92 of file device_trigger.py.
| ConfigType homeassistant.components.zha.device_trigger.async_validate_trigger_config | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Validate config.
Definition at line 44 of file device_trigger.py.
| string homeassistant.components.zha.device_trigger.CONF_SUBTYPE = "subtype" |
Definition at line 20 of file device_trigger.py.
| string homeassistant.components.zha.device_trigger.DEVICE = "device" |
Definition at line 21 of file device_trigger.py.
| string homeassistant.components.zha.device_trigger.DEVICE_IEEE = "device_ieee" |
Definition at line 22 of file device_trigger.py.
| homeassistant.components.zha.device_trigger.TRIGGER_SCHEMA |
Definition at line 24 of file device_trigger.py.