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) |
| list[str] | get_event_classes_by_device_id (HomeAssistant hass, str device_id) |
| set[str] | get_event_types_by_event_class (str event_class) |
Variables | |
| dictionary | EVENT_TYPES_BY_EVENT_CLASS |
| TRIGGER_SCHEMA | |
Provides device triggers for BTHome BLE.
| CALLBACK_TYPE homeassistant.components.bthome.device_trigger.async_attach_trigger | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| TriggerActionType | action, | ||
| TriggerInfo | trigger_info | ||
| ) |
Attach a trigger.
Definition at line 129 of file device_trigger.py.
| list[dict[str, Any]] homeassistant.components.bthome.device_trigger.async_get_triggers | ( | HomeAssistant | hass, |
| str | device_id | ||
| ) |
Return a list of triggers for BTHome BLE devices.
Definition at line 109 of file device_trigger.py.
| ConfigType homeassistant.components.bthome.device_trigger.async_validate_trigger_config | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Validate trigger config.
Definition at line 86 of file device_trigger.py.
| list[str] homeassistant.components.bthome.device_trigger.get_event_classes_by_device_id | ( | HomeAssistant | hass, |
| str | device_id | ||
| ) |
Get the supported event classes for a device. Events for BTHome BLE devices are dynamically discovered and stored in the device config entry when they are first seen.
Definition at line 54 of file device_trigger.py.
| set[str] homeassistant.components.bthome.device_trigger.get_event_types_by_event_class | ( | str | event_class | ) |
Get the supported event types for an event class. If the device has multiple buttons they will have event classes like button_1 button_2, button_3, etc but if there is only one button then it will be button without a number postfix.
Definition at line 75 of file device_trigger.py.
| dictionary homeassistant.components.bthome.device_trigger.EVENT_TYPES_BY_EVENT_CLASS |
Definition at line 37 of file device_trigger.py.
| homeassistant.components.bthome.device_trigger.TRIGGER_SCHEMA |
Definition at line 49 of file device_trigger.py.