Skip to main content
Glama

HomeAssistant MCP

commands.ts767 B
// Common commands that work with most entities export const commonCommands = ["turn_on", "turn_off", "toggle"] as const; // Commands specific to cover entities export const coverCommands = [ ...commonCommands, "open", "close", "stop", "set_position", "set_tilt_position", ] as const; // Commands specific to climate entities export const climateCommands = [ ...commonCommands, "set_temperature", "set_hvac_mode", "set_fan_mode", "set_humidity", ] as const; // Types for command validation export type CommonCommand = (typeof commonCommands)[number]; export type CoverCommand = (typeof coverCommands)[number]; export type ClimateCommand = (typeof climateCommands)[number]; export type Command = CommonCommand | CoverCommand | ClimateCommand;

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/jango-blockchained/advanced-homeassistant-mcp'

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