Restart Home Assistant
ha_restartRestart Home Assistant to apply configuration changes or troubleshoot issues. Automations pause during the 1-5 minute restart process.
Instructions
Restart Home Assistant.
WARNING: This will restart the entire Home Assistant instance! All automations will be temporarily unavailable during restart. The restart typically takes 1-5 minutes depending on your setup.
Parameters:
confirm: Must be set to True to confirm the restart. This is a safety measure to prevent accidental restarts.
Best Practices:
Config is validated automatically before the restart proceeds; to pre-check, call ha_get_system_health(include="config_check")
Notify users before restarting (if applicable)
Schedule restarts during low-activity periods
Example Usage:
# Optional pre-check (ha_restart also validates config automatically)
health = ha_get_system_health(include="config_check")
if health["config_check"]["is_valid"]:
# Restart with confirmation
result = ha_restart(confirm=True)Alternative: For configuration changes, consider using ha_reload_core() instead, which reloads specific components without a full restart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||