Skip to main content
Glama

Home Assistant MCP Server

by miguelg719
import pytest import sys from pathlib import Path sys.path.append(str(Path(__file__).parent.parent / 'src')) from home_assistant_mcp.server import turn_light_on @pytest.mark.asyncio @pytest.mark.integration # Mark these tests as integration tests async def test_real_light_on_success(): # Test with brightness result = await turn_light_on('ceiling_lights', brightness_pct=50) assert 'state' in result print(result) # Test without brightness result = await turn_light_on('ceiling_lights') assert 'state' in result

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/miguelg719/home-assistant-mcp'

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