home-assistant

Retrieve and manipulate Home Assistant data via REST API.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/Mezzle/ai-skills --skill home-assistant-mezzle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: home-assistant
Source: https://github.com/Mezzle/ai-skills/tree/main/home-assistant
Command: npx skills add https://github.com/Mezzle/ai-skills --skill home-assistant-mezzle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node-fetch, and includes scripts (resource) and references (resource) components.

What problem does it solve?

AI agents often struggle to interact with smart-home ecosystems. This Skill provides a reliable bridge to Home Assistant's REST API, enabling automated inquiries and controls from AI workflows.

Core Features & Use Cases

  • Retrieve real-time entity states for lights, switches, climate, sensors, and more.
  • Call services to operate devices, trigger automations, and fire custom events.
  • Fetch configuration and history data to support auditing, monitoring, and proactive automation.
  • Use Cases: check all lights’ states before deciding whether to adjust a thermostat, or query configuration to adapt automations to the current Home Assistant setup.

Quick Start

Install dependencies in the scripts directory, configure HOME_ASSISTANT_URL and HOME_ASSISTANT_TOKEN, then run a sample script to verify connectivity.

Frequently Asked Questions about home-assistant

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control Home Assistant entities from an AI workflow?

To control Home Assistant entities from an AI workflow, this Skill provides TypeScript scripts that interact with the REST API. It retrieves and manipulates entity states, calls services, and triggers events to enable smart-home automation.

What do I need to connect an AI agent to Home Assistant?

Connecting an AI agent to Home Assistant requires Node.js, a running Home Assistant instance, and a Long-Lived Access Token. You must configure the HOME_ASSISTANT_URL and HOME_ASSISTANT_TOKEN environment variables to authenticate REST API requests.

Can I retrieve smart-home sensor history and configuration data via REST API?

Yes, you can retrieve smart-home sensor history and configuration data via the REST API. This Skill builds queries to fetch historical states and configuration details from Home Assistant to support monitoring, auditing, and proactive automation.

How do I trigger automations and fire custom events in Home Assistant using scripts?

You trigger automations and fire custom events in Home Assistant using the TypeScript scripts included in the scripts folder. These scripts call services through the REST API to operate devices, trigger automations, and fire custom events.

Does this Home Assistant REST API integration require node-fetch?

Yes, this Home Assistant REST API integration requires node-fetch as a dependency. You must install dependencies in the scripts directory before executing the TypeScript scripts to query and manipulate your smart-home environment.