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

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)
 

Variables

 TRIGGER_SCHEMA
 
dictionary TRIGGER_TYPES = {EVENT_TYPE_LONG_PRESS}
 

Detailed Description

Triggers for WeMo devices.

Function Documentation

◆ async_attach_trigger()

CALLBACK_TYPE homeassistant.components.wemo.device_trigger.async_attach_trigger ( HomeAssistant  hass,
ConfigType  config,
TriggerActionType  action,
TriggerInfo  trigger_info 
)
Attach a trigger.

Definition at line 55 of file device_trigger.py.

◆ async_get_triggers()

list[dict[str, str]] homeassistant.components.wemo.device_trigger.async_get_triggers ( HomeAssistant  hass,
str   device_id 
)
Return a list of triggers.

Definition at line 27 of file device_trigger.py.

Variable Documentation

◆ TRIGGER_SCHEMA

homeassistant.components.wemo.device_trigger.TRIGGER_SCHEMA
Initial value:
1 = DEVICE_TRIGGER_BASE_SCHEMA.extend(
2  {
3  vol.Required(CONF_TYPE): vol.In(TRIGGER_TYPES),
4  }
5 )

Definition at line 20 of file device_trigger.py.

◆ TRIGGER_TYPES

dictionary homeassistant.components.wemo.device_trigger.TRIGGER_TYPES = {EVENT_TYPE_LONG_PRESS}

Definition at line 18 of file device_trigger.py.