Namespaces | |
| config | |
| const | |
| helpers | |
| logbook | |
| reproduce_state | |
| trace | |
Classes | |
| class | AutomationEntity |
| class | AutomationEntityConfig |
| class | BaseAutomationEntity |
| class | IfAction |
| class | UnavailableAutomationEntity |
Variables | |
| __all__ = all_with_deprecated_constants(globals()) | |
| __dir__ | |
| __getattr__ = partial(check_if_deprecated_constant, module_globals=globals()) | |
| _DEPRECATED_AutomationActionType | |
| _DEPRECATED_AutomationTriggerData | |
| _DEPRECATED_AutomationTriggerInfo | |
| string | ATTR_LAST_TRIGGERED = "last_triggered" |
| string | ATTR_SOURCE = "source" |
| string | ATTR_VARIABLES = "variables" |
| string | CONF_SKIP_CONDITION = "skip_condition" |
| string | CONF_STOP_ACTIONS = "stop_actions" |
| bool | DEFAULT_STOP_ACTIONS = True |
| string | ENTITY_ID_FORMAT = DOMAIN + ".{}" |
| string | EVENT_AUTOMATION_RELOADED = "automation_reloaded" |
| string | EVENT_AUTOMATION_TRIGGERED = "automation_triggered" |
| string | SERVICE_TRIGGER = "trigger" |
Allow to set up simple automation rules via the config file.
|
private |
Process config and add automations.
Definition at line 1010 of file __init__.py.
|
private |
Process if checks.
Definition at line 1131 of file __init__.py.
|
private |
Process config and add a single automation.
Definition at line 1108 of file __init__.py.
|
private |
Return False if an automation's config has been changed.
Definition at line 1096 of file __init__.py.
|
private |
Return the configured name of an automation.
Definition at line 924 of file __init__.py.
|
private |
Return all automations that reference the x.
Definition at line 163 of file __init__.py.
|
private |
Create automation entities from prepared configuration.
Definition at line 931 of file __init__.py.
|
private |
Parse configuration and prepare automation entity configuration.
Definition at line 891 of file __init__.py.
|
private |
Extract devices from a trigger config.
Definition at line 1152 of file __init__.py.
|
private |
Extract entities from a trigger config.
Definition at line 1172 of file __init__.py.
|
private |
Return all x in an automation.
Definition at line 177 of file __init__.py.
| list[str] homeassistant.components.automation.areas_in_automation | ( | HomeAssistant | hass, |
| str | entity_id | ||
| ) |
Return all areas in an automation.
Definition at line 221 of file __init__.py.
| bool homeassistant.components.automation.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up all automations.
Definition at line 275 of file __init__.py.
| list[str] homeassistant.components.automation.automations_with_area | ( | HomeAssistant | hass, |
| str | area_id | ||
| ) |
Return all automations that reference the area.
Definition at line 215 of file __init__.py.
| list[str] homeassistant.components.automation.automations_with_blueprint | ( | HomeAssistant | hass, |
| str | blueprint_path | ||
| ) |
Return all automations that reference the blueprint.
Definition at line 251 of file __init__.py.
| list[str] homeassistant.components.automation.automations_with_device | ( | HomeAssistant | hass, |
| str | device_id | ||
| ) |
Return all automations that reference the device.
Definition at line 203 of file __init__.py.
| list[str] homeassistant.components.automation.automations_with_entity | ( | HomeAssistant | hass, |
| str | entity_id | ||
| ) |
Return all automations that reference the entity.
Definition at line 191 of file __init__.py.
| list[str] homeassistant.components.automation.automations_with_floor | ( | HomeAssistant | hass, |
| str | floor_id | ||
| ) |
Return all automations that reference the floor.
Definition at line 227 of file __init__.py.
| list[str] homeassistant.components.automation.automations_with_label | ( | HomeAssistant | hass, |
| str | label_id | ||
| ) |
Return all automations that reference the label.
Definition at line 239 of file __init__.py.
| str | None homeassistant.components.automation.blueprint_in_automation | ( | HomeAssistant | hass, |
| str | entity_id | ||
| ) |
Return the blueprint the automation is based on or None.
Definition at line 264 of file __init__.py.
| list[str] homeassistant.components.automation.devices_in_automation | ( | HomeAssistant | hass, |
| str | entity_id | ||
| ) |
Return all devices in an automation.
Definition at line 209 of file __init__.py.
| list[str] homeassistant.components.automation.entities_in_automation | ( | HomeAssistant | hass, |
| str | entity_id | ||
| ) |
Return all entities in an automation.
Definition at line 197 of file __init__.py.
| list[str] homeassistant.components.automation.floors_in_automation | ( | HomeAssistant | hass, |
| str | entity_id | ||
| ) |
Return all floors in an automation.
Definition at line 233 of file __init__.py.
| bool homeassistant.components.automation.is_on | ( | HomeAssistant | hass, |
| str | entity_id | ||
| ) |
Return true if specified automation entity_id is on. Async friendly.
Definition at line 155 of file __init__.py.
| list[str] homeassistant.components.automation.labels_in_automation | ( | HomeAssistant | hass, |
| str | entity_id | ||
| ) |
Return all labels in an automation.
Definition at line 245 of file __init__.py.
| None homeassistant.components.automation.websocket_config | ( | HomeAssistant | hass, |
| websocket_api.ActiveConnection | connection, | ||
| dict[str, Any] | msg | ||
| ) |
Get automation config.
Definition at line 1202 of file __init__.py.
|
private |
Definition at line 1229 of file __init__.py.
|
private |
Definition at line 1226 of file __init__.py.
|
private |
Definition at line 1225 of file __init__.py.
|
private |
Definition at line 143 of file __init__.py.
|
private |
Definition at line 146 of file __init__.py.
|
private |
Definition at line 149 of file __init__.py.
| string homeassistant.components.automation.ATTR_LAST_TRIGGERED = "last_triggered" |
Definition at line 125 of file __init__.py.
| string homeassistant.components.automation.ATTR_SOURCE = "source" |
Definition at line 126 of file __init__.py.
| string homeassistant.components.automation.ATTR_VARIABLES = "variables" |
Definition at line 127 of file __init__.py.
| string homeassistant.components.automation.CONF_SKIP_CONDITION = "skip_condition" |
Definition at line 118 of file __init__.py.
| string homeassistant.components.automation.CONF_STOP_ACTIONS = "stop_actions" |
Definition at line 119 of file __init__.py.
| bool homeassistant.components.automation.DEFAULT_STOP_ACTIONS = True |
Definition at line 120 of file __init__.py.
| string homeassistant.components.automation.ENTITY_ID_FORMAT = DOMAIN + ".{}" |
Definition at line 115 of file __init__.py.
| string homeassistant.components.automation.EVENT_AUTOMATION_RELOADED = "automation_reloaded" |
Definition at line 122 of file __init__.py.
| string homeassistant.components.automation.EVENT_AUTOMATION_TRIGGERED = "automation_triggered" |
Definition at line 123 of file __init__.py.
| string homeassistant.components.automation.SERVICE_TRIGGER = "trigger" |
Definition at line 128 of file __init__.py.