Skip to main content
Glama

Hass-MCP

get_entity

Retrieve the state and attributes of a Home Assistant entity, with options to filter specific fields or include all details. Simplify smart home monitoring and automation tasks by querying entity data directly.

Instructions

Get the state of a Home Assistant entity with optional field filtering

Args: entity_id: The entity ID to get (e.g. 'light.living_room') fields: Optional list of fields to include (e.g. ['state', 'attr.brightness']) detailed: If True, returns all entity fields without filtering

Examples: entity_id="light.living_room" - basic state check entity_id="light.living_room", fields=["state", "attr.brightness"] - specific fields entity_id="light.living_room", detailed=True - all details

Input Schema

NameRequiredDescriptionDefault
detailedNo
entity_idYes
fieldsNo

Input Schema (JSON Schema)

{ "properties": { "detailed": { "default": false, "title": "Detailed", "type": "boolean" }, "entity_id": { "title": "Entity Id", "type": "string" }, "fields": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Fields" } }, "required": [ "entity_id" ], "title": "get_entityArguments", "type": "object" }

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