/** * Home Assistant Tool — Control smart home devices via REST API. * * Hermes equivalent: homeassistant_tool.py (514 lines) * * Provides: * - List/filter entities by domain or area * - Get detailed state of entities * - List available services per domain * - Call HA services (turn_on, turn_off, set_temperature, etc.) */ export interface HAConfig { url: string; token: string; } export interface HAEntity { entity_id: string; state: string; attributes: Record; last_changed: string; last_updated: string; context: { id: string; parent_id?: string; }; } export interface HAService { domain: string; services: Record; }>; } export declare class HomeAssistantClient { private config; private blockedDomains; constructor(config: HAConfig); /** * Make a HA API request. */ private request; /** * List all entities, optionally filtered by domain. */ listEntities(domain?: string): Promise; /** * Get state of a specific entity. */ getState(entityId: string): Promise; /** * List available services. */ listServices(): Promise; /** * List services for a specific domain. */ listDomainServices(domain: string): Promise>; /** * Call a HA service. */ callService(domain: string, service: string, entityId: string, data?: Record): Promise; /** * Turn on an entity. */ turnOn(entityId: string, data?: Record): Promise; /** * Turn off an entity. */ turnOff(entityId: string): Promise; /** * Toggle an entity. */ toggle(entityId: string): Promise; /** * Get HA config. */ getConfig(): Promise>; /** * Get HA event history. */ getHistory(entityId: string, startTime: string): Promise; /** * Validate entity ID format. */ static isValidEntityId(entityId: string): boolean; /** * Validate service/domain name format. */ static isValidServiceName(name: string): boolean; } export declare function getHomeAssistantClient(url?: string, token?: string): HomeAssistantClient; export declare function resetHomeAssistantClient(): void; //# sourceMappingURL=homeassistant-tool.d.ts.map