gptme/gptme-contrib/home-assistant
- community
Checking that the SKILL.md file is still in the repository.
Query a Home Assistant instance for presence, sensor data, calendar events, and cameras
Install
npx vskill@latest install gptme/gptme-contrib/home-assistantSKILL.md
Home Assistant Skill
Query a Home Assistant instance for presence, sensor data, calendar events, and cameras.
Setup
Credentials in .env at your agent workspace root:
Cloud connectivity: If your HA instance uses Nabu Casa, the host resolves publicly (CNAME → *.ui.nabu.casa). No /etc/hosts entry or VPN needed.
Generate a long-lived token: HA UI → Profile → Long-Lived Access Tokens → Create.
Quick Commands
Common Entity ID Patterns
HA entity IDs follow predictable patterns — discover yours with ha.py states:
| Domain | Example | Notes | |
|---|---|---|---|
person.<name> | person.alice | state: home/away/zone_name | |
device_tracker.* | device_tracker.alice_phone | GPS source for person entity | |
sensor.*_battery_level | sensor.alice_phone_battery_level | % | |
calendar.main | calendar.main | Primary Google calendar | |
weather.forecast_* | weather.forecast_home | Current weather | |
camera.* | camera.front_door | Camera snapshot | |
zone.home | zone.home | Home geofence |
Use ha.py states --domain sensor to browse what's available on your instance.
REST API Reference
Base URL: $HA_HOST/api/ Auth header: Authorization: Bearer $HA_API_KEY
Key endpoints:
GET /api/states— all entity statesGET /api/states/<entity_id>— single entityGET /api/config— HA config (location, timezone)GET /api/calendars/<entity_id>?start=<iso-utc>&end=<iso-utc>— calendar events (note:Zsuffix required for UTC, not+00:00)GET /api/camera_proxy/<entity_id>— camera snapshot (binary JPEG)
Google Calendar (Alternative)
If the agent's Google account is shared as a reader on the owner's main calendar, use gog (gogcli) directly without HA:
Giving Another Agent the Same Capability
- SSH to the other agent's VM
- Add
HA_HOSTandHA_API_KEYto their.env - Pull latest gptme-contrib — the script is at
gptme-contrib/skills/home-assistant/scripts/ha.py
For Google Calendar: share the owner's calendar with the agent's Google account (reader access).
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/home-assistant/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 19
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gptme/gptme-contrib/home-assistant)