Home Assistant MCP Server

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

ID: io8m0yc5wq