Functions | |
| CALLBACK_TYPE | async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info) |
| dict[str, vol.Schema] | async_get_trigger_capabilities (HomeAssistant hass, ConfigType config) |
| list[dict[str, str]] | async_get_triggers (HomeAssistant hass, str device_id) |
Variables | |
| POSITION_TRIGGER_SCHEMA | |
| dictionary | POSITION_TRIGGER_TYPES = {"position", "tilt_position"} |
| STATE_TRIGGER_SCHEMA | |
| dictionary | STATE_TRIGGER_TYPES = {"opened", "closed", "opening", "closing"} |
| TRIGGER_SCHEMA = vol.Any(POSITION_TRIGGER_SCHEMA, STATE_TRIGGER_SCHEMA) | |
Provides device automations for Cover.
| CALLBACK_TYPE homeassistant.components.cover.device_trigger.async_attach_trigger | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| TriggerActionType | action, | ||
| TriggerInfo | trigger_info | ||
| ) |
Attach a trigger.
Definition at line 137 of file device_trigger.py.
| dict[str, vol.Schema] homeassistant.components.cover.device_trigger.async_get_trigger_capabilities | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
List trigger capabilities.
Definition at line 112 of file device_trigger.py.
| list[dict[str, str]] homeassistant.components.cover.device_trigger.async_get_triggers | ( | HomeAssistant | hass, |
| str | device_id | ||
| ) |
List device triggers for Cover devices.
Definition at line 61 of file device_trigger.py.
| homeassistant.components.cover.device_trigger.POSITION_TRIGGER_SCHEMA |
Definition at line 34 of file device_trigger.py.
| dictionary homeassistant.components.cover.device_trigger.POSITION_TRIGGER_TYPES = {"position", "tilt_position"} |
Definition at line 31 of file device_trigger.py.
| homeassistant.components.cover.device_trigger.STATE_TRIGGER_SCHEMA |
Definition at line 50 of file device_trigger.py.
| dictionary homeassistant.components.cover.device_trigger.STATE_TRIGGER_TYPES = {"opened", "closed", "opening", "closing"} |
Definition at line 32 of file device_trigger.py.
| homeassistant.components.cover.device_trigger.TRIGGER_SCHEMA = vol.Any(POSITION_TRIGGER_SCHEMA, STATE_TRIGGER_SCHEMA) |
Definition at line 58 of file device_trigger.py.