Public Attributes | |
| action_script | |
| raw_config | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Private Member Functions | |
| Callable[[], None]|None | _async_attach_triggers (self, bool home_assistant_start) |
| None | _async_disable (self, bool stop_actions=DEFAULT_STOP_ACTIONS) |
| None | _async_enable (self) |
| None | _async_enable_automation (self, Event event) |
| ScriptRunResult|None | _async_trigger_if_enabled (self, dict[str, Any] run_variables, Context|None context=None, bool skip_condition=False) |
| None | _log_callback (self, int level, str msg, **Any kwargs) |
Private Attributes | |
| _async_detach_triggers | |
| _attr_name | |
| _attr_unique_id | |
| _blueprint_inputs | |
| _cond_func | |
| _initial_state | |
| _is_enabled | |
| _logger | |
| _trace_config | |
| _trigger_config | |
| _trigger_variables | |
| _variables | |
Static Private Attributes | |
| bool | _attr_should_poll = False |
Additional Inherited Members | |
Static Public Attributes inherited from homeassistant.helpers.entity.ToggleEntity | |
| None | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Entity to show status of entity.
Definition at line 494 of file __init__.py.
| None homeassistant.components.automation.AutomationEntity.__init__ | ( | self, | |
| str | None | automation_id, | ||
| str | name, | ||
| list[ConfigType] | trigger_config, | ||
| IfAction | None | cond_func, | ||
| Script | action_script, | ||
| bool | None | initial_state, | ||
| ScriptVariables | None | variables, | ||
| ScriptVariables | None | trigger_variables, | ||
| ConfigType | None | raw_config, | ||
| ConfigType | None | blueprint_inputs, | ||
| ConfigType | trace_config | ||
| ) |
Initialize an automation entity.
Definition at line 499 of file __init__.py.
|
private |
Set up the triggers.
Definition at line 848 of file __init__.py.
|
private |
Disable the automation entity. This method is not expected to write state to the state machine.
Definition at line 810 of file __init__.py.
|
private |
Enable this automation entity. This method is not expected to write state to the state machine.
Definition at line 790 of file __init__.py.
|
private |
Start automation on startup.
Definition at line 781 of file __init__.py.
|
private |
Trigger automation if enabled. If the trigger starts but has a delay, the automation will be triggered when the delay has passed so we need to make sure its still enabled before executing the action.
Definition at line 832 of file __init__.py.
|
private |
Log helper callback.
Definition at line 828 of file __init__.py.
| None homeassistant.components.automation.AutomationEntity.async_added_to_hass | ( | self | ) |
Startup with initial state or previous state.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 598 of file __init__.py.
| ScriptRunResult | None homeassistant.components.automation.AutomationEntity.async_trigger | ( | self, | |
| dict[str, Any] | run_variables, | ||
| Context | None | context = None, |
||
| bool | skip_condition = False |
||
| ) |
Trigger automation. This method is a coroutine.
Reimplemented from homeassistant.components.automation.BaseAutomationEntity.
Definition at line 650 of file __init__.py.
| None homeassistant.components.automation.AutomationEntity.async_turn_off | ( | self, | |
| **Any | kwargs | ||
| ) |
Turn the entity off.
Reimplemented from homeassistant.helpers.entity.ToggleEntity.
Definition at line 642 of file __init__.py.
| None homeassistant.components.automation.AutomationEntity.async_turn_on | ( | self, | |
| **Any | kwargs | ||
| ) |
Turn the entity on and update the state.
Reimplemented from homeassistant.helpers.entity.ToggleEntity.
Definition at line 637 of file __init__.py.
| None homeassistant.components.automation.AutomationEntity.async_will_remove_from_hass | ( | self | ) |
Remove listeners when removing automation from Home Assistant.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 776 of file __init__.py.
| dict[str, Any] homeassistant.components.automation.AutomationEntity.extra_state_attributes | ( | self | ) |
Return the entity state attributes.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 531 of file __init__.py.
| bool homeassistant.components.automation.AutomationEntity.is_on | ( | self | ) |
Return True if entity is on.
Reimplemented from homeassistant.helpers.entity.ToggleEntity.
Definition at line 543 of file __init__.py.
| set[str] homeassistant.components.automation.AutomationEntity.referenced_areas | ( | self | ) |
Return a set of referenced areas.
Reimplemented from homeassistant.components.automation.BaseAutomationEntity.
Definition at line 558 of file __init__.py.
Return referenced blueprint or None.
Reimplemented from homeassistant.components.automation.BaseAutomationEntity.
Definition at line 563 of file __init__.py.
| set[str] homeassistant.components.automation.AutomationEntity.referenced_devices | ( | self | ) |
Return a set of referenced devices.
Reimplemented from homeassistant.components.automation.BaseAutomationEntity.
Definition at line 570 of file __init__.py.
| set[str] homeassistant.components.automation.AutomationEntity.referenced_entities | ( | self | ) |
Return a set of referenced entities.
Reimplemented from homeassistant.components.automation.BaseAutomationEntity.
Definition at line 584 of file __init__.py.
| set[str] homeassistant.components.automation.AutomationEntity.referenced_floors | ( | self | ) |
Return a set of referenced floors.
Reimplemented from homeassistant.components.automation.BaseAutomationEntity.
Definition at line 553 of file __init__.py.
| set[str] homeassistant.components.automation.AutomationEntity.referenced_labels | ( | self | ) |
Return a set of referenced labels.
Reimplemented from homeassistant.components.automation.BaseAutomationEntity.
Definition at line 548 of file __init__.py.
|
private |
Definition at line 787 of file __init__.py.
|
private |
Definition at line 514 of file __init__.py.
|
staticprivate |
Entity to show status of entity.
Definition at line 497 of file __init__.py.
|
private |
Definition at line 528 of file __init__.py.
|
private |
Definition at line 526 of file __init__.py.
|
private |
Definition at line 517 of file __init__.py.
|
private |
Definition at line 520 of file __init__.py.
|
private |
Definition at line 521 of file __init__.py.
|
private |
Definition at line 522 of file __init__.py.
|
private |
Definition at line 527 of file __init__.py.
|
private |
Definition at line 515 of file __init__.py.
|
private |
Definition at line 524 of file __init__.py.
|
private |
Definition at line 523 of file __init__.py.
| homeassistant.components.automation.AutomationEntity.action_script |
Definition at line 518 of file __init__.py.
| homeassistant.components.automation.AutomationEntity.raw_config |
Definition at line 525 of file __init__.py.