Skip to main content
Glama

Home Assistant MCP Server

by miguelg719
climate.py981 B
from .entity import EntityDescription, EntityAttributes, EntityDomain from enum import Enum class ClimateState(str, Enum): """States specific to climate entities""" OFF = "off" HEAT = "heat" COOL = "cool" HEAT_COOL = "heat_cool" DRY = "dry" FAN_ONLY = "fan_only" AUTO = "auto" class ClimateAttributes(EntityAttributes): """Attributes for climate entities""" temperature: int | None = None current_temperature: int | None = None target_temperature: int | None = None target_temperature_high: int | None = None target_temperature_low: int | None = None current_humidity: int | None = None target_humidity: int | None = None supported_features: list[str] = [] class ClimateDescription(EntityDescription[ClimateState]): """Climate-specific entity description""" domain: EntityDomain = EntityDomain.CLIMATE attributes: type[EntityAttributes] = ClimateAttributes supported_states: list[ClimateState]

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