Classes | |
| class | Trigger |
| class | TriggerInstance |
Functions | |
| 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) |
| None | async_remove_triggers (HomeAssistant hass, str device_id) |
| None | async_setup_trigger (HomeAssistant hass, TasmotaTrigger tasmota_trigger, ConfigEntry config_entry, DiscoveryHashType discovery_hash) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | CONF_DISCOVERY_ID = "discovery_id" |
| string | CONF_SUBTYPE = "subtype" |
| string | DEVICE = "device" |
| string | DEVICE_TRIGGERS = "tasmota_device_triggers" |
| TRIGGER_SCHEMA | |
Provides device automations for Tasmota.
| CALLBACK_TYPE homeassistant.components.tasmota.device_trigger.async_attach_trigger | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| TriggerActionType | action, | ||
| TriggerInfo | trigger_info | ||
| ) |
Attach a device trigger.
Definition at line 301 of file device_trigger.py.
| list[dict[str, str]] homeassistant.components.tasmota.device_trigger.async_get_triggers | ( | HomeAssistant | hass, |
| str | device_id | ||
| ) |
List device triggers for a Tasmota device.
Definition at line 274 of file device_trigger.py.
| None homeassistant.components.tasmota.device_trigger.async_remove_triggers | ( | HomeAssistant | hass, |
| str | device_id | ||
| ) |
Cleanup any device triggers for a Tasmota device.
Definition at line 254 of file device_trigger.py.
| None homeassistant.components.tasmota.device_trigger.async_setup_trigger | ( | HomeAssistant | hass, |
| TasmotaTrigger | tasmota_trigger, | ||
| ConfigEntry | config_entry, | ||
| DiscoveryHashType | discovery_hash | ||
| ) |
Set up a discovered Tasmota device trigger.
Definition at line 172 of file device_trigger.py.
|
private |
Definition at line 28 of file device_trigger.py.
| string homeassistant.components.tasmota.device_trigger.CONF_DISCOVERY_ID = "discovery_id" |
Definition at line 30 of file device_trigger.py.
| string homeassistant.components.tasmota.device_trigger.CONF_SUBTYPE = "subtype" |
Definition at line 31 of file device_trigger.py.
| string homeassistant.components.tasmota.device_trigger.DEVICE = "device" |
Definition at line 32 of file device_trigger.py.
| string homeassistant.components.tasmota.device_trigger.DEVICE_TRIGGERS = "tasmota_device_triggers" |
Definition at line 45 of file device_trigger.py.
| homeassistant.components.tasmota.device_trigger.TRIGGER_SCHEMA |
Definition at line 34 of file device_trigger.py.