Skip to main content
Glama

restart_ha

Restart the Home Assistant system to apply changes or resolve issues, temporarily pausing all smart home operations during the process.

Instructions

Restart Home Assistant

⚠️ WARNING: Temporarily disrupts all Home Assistant operations

Returns: Result of restart operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'restart_ha' tool. This is the entry point registered with MCP via @mcp.tool(). It logs the action and delegates to the restart_home_assistant helper.
    @mcp.tool() @async_handler("restart_ha") async def restart_ha() -> Dict[str, Any]: """ Restart Home Assistant ⚠️ WARNING: Temporarily disrupts all Home Assistant operations Returns: Result of restart operation """ logger.info("Restarting Home Assistant") return await restart_home_assistant()
  • Helper function that performs the actual restart by calling Home Assistant's 'homeassistant.restart' service via the call_service utility.
    async def restart_home_assistant() -> Dict[str, Any]: """Restart Home Assistant""" return await call_service("homeassistant", "restart", {})
  • app/server.py:866-866 (registration)
    MCP tool registration decorator applied to the restart_ha handler.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/voska/hass-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server