Classes | |
| class | _AbortScript |
| class | _ChooseData |
| class | _ConditionFail |
| class | _HaltScript |
| class | _IfData |
| class | _QueuedScriptRun |
| class | _ScriptRun |
| class | _StopScript |
| class | Script |
| class | ScriptData |
| class | ScriptRunResult |
| class | ScriptStoppedError |
Functions | |
| None | _async_stop_scripts_after_shutdown (HomeAssistant hass, datetime point_in_time) |
| None | _async_stop_scripts_at_shutdown (HomeAssistant hass, Event event) |
| None | _referenced_extract_ids (Any data, str key, set[str] found) |
| None | _schedule_stop_scripts_after_shutdown (HomeAssistant hass) |
| None | _set_result_unless_done (asyncio.Future[None] future) |
| TraceElement | action_trace_append (dict[str, Any] variables, str path) |
| ConfigType | async_validate_action_config (HomeAssistant hass, ConfigType config) |
| list[ConfigType] | async_validate_actions_config (HomeAssistant hass, list[ConfigType] actions) |
| None | breakpoint_clear (HomeAssistant hass, str key, str|None run_id, str node) |
| None | breakpoint_clear_all (HomeAssistant hass) |
| list[dict[str, Any]] | breakpoint_list (HomeAssistant hass) |
| None | breakpoint_set (HomeAssistant hass, str key, str|None run_id, str node) |
| None | debug_continue (HomeAssistant hass, str key, str run_id) |
| None | debug_step (HomeAssistant hass, str key, str run_id) |
| None | debug_stop (HomeAssistant hass, str key, str run_id) |
| vol.Schema | make_script_schema (Mapping[Any, Any] schema, str default_script_mode, int extra=vol.PREVENT_EXTRA) |
| AsyncGenerator[TraceElement] | trace_action (HomeAssistant hass, _ScriptRun script_run, asyncio.Future[None] stop, dict[str, Any] variables) |
Variables | |
| int | _LOG_EXCEPTION = logging.ERROR + 1 |
| _LOGGER = logging.getLogger(__name__) | |
| list | _MAX_EXCEEDED_CHOICES = [*LOGSEVERITY, "SILENT"] |
| int | _SHUTDOWN_MAX_WAIT = 60 |
| string | _TIMEOUT_MSG = "Timeout reached, abort script." |
| _VarsType | |
| int | ACTION_TRACE_NODE_MAX_LEN = 20 |
| string | ATTR_CUR = "current" |
| string | ATTR_MAX = "max" |
| string | CONF_MAX = "max" |
| string | CONF_MAX_EXCEEDED = "max_exceeded" |
| default | |
| int | DEFAULT_MAX = 10 |
| string | DEFAULT_MAX_EXCEEDED = "WARNING" |
| string | DEFAULT_SCRIPT_MODE = SCRIPT_MODE_SINGLE |
| string | NODE_ANY = "*" |
| int | REPEAT_TERMINATE_ITERATIONS = 10000 |
| int | REPEAT_WARN_ITERATIONS = 5000 |
| string | RUN_ID_ANY = "*" |
| SCRIPT_BREAKPOINT_HIT = SignalType[str, str, str]("script_breakpoint_hit") | |
| string | SCRIPT_DEBUG_CONTINUE_ALL = "script_debug_continue_all" |
| list | SCRIPT_MODE_CHOICES |
| string | SCRIPT_MODE_PARALLEL = "parallel" |
| string | SCRIPT_MODE_QUEUED = "queued" |
| string | SCRIPT_MODE_RESTART = "restart" |
| string | SCRIPT_MODE_SINGLE = "single" |
| tuple | STATIC_VALIDATION_ACTION_TYPES |
Helpers to execute scripts.
|
private |
|
private |
|
private |
|
private |
|
private |
| TraceElement homeassistant.helpers.script.action_trace_append | ( | dict[str, Any] | variables, |
| str | path | ||
| ) |
| ConfigType homeassistant.helpers.script.async_validate_action_config | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
| list[ConfigType] homeassistant.helpers.script.async_validate_actions_config | ( | HomeAssistant | hass, |
| list[ConfigType] | actions | ||
| ) |
| None homeassistant.helpers.script.breakpoint_clear | ( | HomeAssistant | hass, |
| str | key, | ||
| str | None | run_id, | ||
| str | node | ||
| ) |
| None homeassistant.helpers.script.breakpoint_clear_all | ( | HomeAssistant | hass | ) |
| list[dict[str, Any]] homeassistant.helpers.script.breakpoint_list | ( | HomeAssistant | hass | ) |
| None homeassistant.helpers.script.breakpoint_set | ( | HomeAssistant | hass, |
| str | key, | ||
| str | None | run_id, | ||
| str | node | ||
| ) |
| None homeassistant.helpers.script.debug_continue | ( | HomeAssistant | hass, |
| str | key, | ||
| str | run_id | ||
| ) |
| None homeassistant.helpers.script.debug_step | ( | HomeAssistant | hass, |
| str | key, | ||
| str | run_id | ||
| ) |
| None homeassistant.helpers.script.debug_stop | ( | HomeAssistant | hass, |
| str | key, | ||
| str | run_id | ||
| ) |
| vol.Schema homeassistant.helpers.script.make_script_schema | ( | Mapping[Any, Any] | schema, |
| str | default_script_mode, | ||
| int | extra = vol.PREVENT_EXTRA |
||
| ) |
| AsyncGenerator[TraceElement] homeassistant.helpers.script.trace_action | ( | HomeAssistant | hass, |
| _ScriptRun | script_run, | ||
| asyncio.Future[None] | stop, | ||
| dict[str, Any] | variables | ||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |
| int homeassistant.helpers.script.ACTION_TRACE_NODE_MAX_LEN = 20 |
| string homeassistant.helpers.script.CONF_MAX_EXCEEDED = "max_exceeded" |
| string homeassistant.helpers.script.DEFAULT_MAX_EXCEEDED = "WARNING" |
| string homeassistant.helpers.script.DEFAULT_SCRIPT_MODE = SCRIPT_MODE_SINGLE |
| int homeassistant.helpers.script.REPEAT_TERMINATE_ITERATIONS = 10000 |
| int homeassistant.helpers.script.REPEAT_WARN_ITERATIONS = 5000 |
| homeassistant.helpers.script.SCRIPT_BREAKPOINT_HIT = SignalType[str, str, str]("script_breakpoint_hit") |
| string homeassistant.helpers.script.SCRIPT_DEBUG_CONTINUE_ALL = "script_debug_continue_all" |
| list homeassistant.helpers.script.SCRIPT_MODE_CHOICES |
| string homeassistant.helpers.script.SCRIPT_MODE_PARALLEL = "parallel" |
| string homeassistant.helpers.script.SCRIPT_MODE_QUEUED = "queued" |
| string homeassistant.helpers.script.SCRIPT_MODE_RESTART = "restart" |
| string homeassistant.helpers.script.SCRIPT_MODE_SINGLE = "single" |
| tuple homeassistant.helpers.script.STATIC_VALIDATION_ACTION_TYPES |