Home Assistant MCP Server

toggle_entity

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" }