Home Assistant Unofficial Reference 2024.12.1
device_trigger.py File Reference

Go to the source code of this file.

Namespaces

 homeassistant.components.cover.device_trigger
 

Functions

CALLBACK_TYPE homeassistant.components.cover.device_trigger.async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info)
 
dict[str, vol.Schema] homeassistant.components.cover.device_trigger.async_get_trigger_capabilities (HomeAssistant hass, ConfigType config)
 
list[dict[str, str]] homeassistant.components.cover.device_trigger.async_get_triggers (HomeAssistant hass, str device_id)
 

Variables

 homeassistant.components.cover.device_trigger.POSITION_TRIGGER_SCHEMA
 
dictionary homeassistant.components.cover.device_trigger.POSITION_TRIGGER_TYPES = {"position", "tilt_position"}
 
 homeassistant.components.cover.device_trigger.STATE_TRIGGER_SCHEMA
 
dictionary homeassistant.components.cover.device_trigger.STATE_TRIGGER_TYPES = {"opened", "closed", "opening", "closing"}
 
 homeassistant.components.cover.device_trigger.TRIGGER_SCHEMA = vol.Any(POSITION_TRIGGER_SCHEMA, STATE_TRIGGER_SCHEMA)