Skip to main content
Glama

Home Assistant MCP Server

by hekmon8

toggle_entity

Switch Home Assistant devices on or off using their entity ID. Control connected devices and manage automation states directly through the Home Assistant MCP Server.

Instructions

Toggle a Home Assistant entity on/off

Input Schema

NameRequiredDescriptionDefault
entity_idYesThe entity ID to toggle (e.g., switch.bedroom)
stateYesThe desired state (on/off)

Input Schema (JSON Schema)

{ "properties": { "entity_id": { "description": "The entity ID to toggle (e.g., switch.bedroom)", "type": "string" }, "state": { "description": "The desired state (on/off)", "enum": [ "on", "off" ], "type": "string" } }, "required": [ "entity_id", "state" ], "type": "object" }

You must be authenticated.

Other Tools from Home Assistant MCP Server

Related Tools

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/hekmon8/Homeassistant-server-mcp'

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