Functions | |
| list[dict[str, str]] | _async_get_automations (HomeAssistant hass, str device_id, list[dict[str, str]] automation_templates, str domain) |
| CALLBACK_TYPE | async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info) |
| None | async_call_action_from_config (HomeAssistant hass, ConfigType config, TemplateVarsType variables, Context|None context, str domain) |
| condition.ConditionCheckerType | async_condition_from_config (HomeAssistant hass, ConfigType config) |
| list[dict[str, str]] | async_get_actions (HomeAssistant hass, str device_id, str domain) |
| dict[str, vol.Schema] | async_get_condition_capabilities (HomeAssistant hass, ConfigType config) |
| list[dict[str, str]] | async_get_conditions (HomeAssistant hass, str device_id, str domain) |
| dict[str, vol.Schema] | async_get_trigger_capabilities (HomeAssistant hass, ConfigType config) |
| list[dict[str, str]] | async_get_triggers (HomeAssistant hass, str device_id, str domain) |
Variables | |
| _TOGGLE_TRIGGER_SCHEMA | |
| ACTION_SCHEMA | |
| CONDITION_SCHEMA | |
| list | DEVICE_ACTION_TYPES = [CONF_TOGGLE, CONF_TURN_OFF, CONF_TURN_ON] |
| list | ENTITY_ACTIONS |
| list | ENTITY_CONDITIONS |
| list | ENTITY_TRIGGERS |
| TRIGGER_SCHEMA = vol.Any(entity.TRIGGER_SCHEMA, _TOGGLE_TRIGGER_SCHEMA) | |
Device automation helpers for toggle entity.
|
private |
List device automations.
Definition at line 179 of file toggle_entity.py.
| CALLBACK_TYPE homeassistant.components.device_automation.toggle_entity.async_attach_trigger | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| TriggerActionType | action, | ||
| TriggerInfo | trigger_info | ||
| ) |
Listen for state changes based on configuration.
Definition at line 151 of file toggle_entity.py.
| None homeassistant.components.device_automation.toggle_entity.async_call_action_from_config | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| TemplateVarsType | variables, | ||
| Context | None | context, | ||
| str | domain | ||
| ) |
Change state based on configuration.
Definition at line 106 of file toggle_entity.py.
| condition.ConditionCheckerType homeassistant.components.device_automation.toggle_entity.async_condition_from_config | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Evaluate state based on configuration.
Definition at line 130 of file toggle_entity.py.
| list[dict[str, str]] homeassistant.components.device_automation.toggle_entity.async_get_actions | ( | HomeAssistant | hass, |
| str | device_id, | ||
| str | domain | ||
| ) |
List device actions.
Definition at line 209 of file toggle_entity.py.
| dict[str, vol.Schema] homeassistant.components.device_automation.toggle_entity.async_get_condition_capabilities | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
List condition capabilities.
Definition at line 234 of file toggle_entity.py.
| list[dict[str, str]] homeassistant.components.device_automation.toggle_entity.async_get_conditions | ( | HomeAssistant | hass, |
| str | device_id, | ||
| str | domain | ||
| ) |
List device conditions.
Definition at line 216 of file toggle_entity.py.
| dict[str, vol.Schema] homeassistant.components.device_automation.toggle_entity.async_get_trigger_capabilities | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
List trigger capabilities.
Definition at line 245 of file toggle_entity.py.
| list[dict[str, str]] homeassistant.components.device_automation.toggle_entity.async_get_triggers | ( | HomeAssistant | hass, |
| str | device_id, | ||
| str | domain | ||
| ) |
List device triggers.
Definition at line 223 of file toggle_entity.py.
|
private |
Definition at line 95 of file toggle_entity.py.
| homeassistant.components.device_automation.toggle_entity.ACTION_SCHEMA |
Definition at line 80 of file toggle_entity.py.
| homeassistant.components.device_automation.toggle_entity.CONDITION_SCHEMA |
Definition at line 87 of file toggle_entity.py.
| list homeassistant.components.device_automation.toggle_entity.DEVICE_ACTION_TYPES = [CONF_TOGGLE, CONF_TURN_OFF, CONF_TURN_ON] |
Definition at line 78 of file toggle_entity.py.
| list homeassistant.components.device_automation.toggle_entity.ENTITY_ACTIONS |
Definition at line 37 of file toggle_entity.py.
| list homeassistant.components.device_automation.toggle_entity.ENTITY_CONDITIONS |
Definition at line 52 of file toggle_entity.py.
| list homeassistant.components.device_automation.toggle_entity.ENTITY_TRIGGERS |
Definition at line 65 of file toggle_entity.py.
| homeassistant.components.device_automation.toggle_entity.TRIGGER_SCHEMA = vol.Any(entity.TRIGGER_SCHEMA, _TOGGLE_TRIGGER_SCHEMA) |
Definition at line 103 of file toggle_entity.py.