Skip to content

Commit 81f798b

Browse files
committed
Initial release: HA Cursor Agent v1.0.0
AI Agent API for Home Assistant - enables Cursor AI to autonomously manage HA configuration. Features: - 📁 File Management: Read/write/list configuration files - 🏠 HA Integration: Full REST API access, entity queries - 🔧 Component Management: Create/delete helpers, automations, scripts - 💾 Git Versioning: Automatic backup, rollback, commit history - 📊 Monitoring: Agent logs, operation history, health checks 29 API endpoints with Swagger UI documentation. Install as Home Assistant Add-on in 5 minutes. Repository: https://github.com/Coolver/home-assistant-cursor-agent License: MIT
0 parents  commit 81f798b

33 files changed

Lines changed: 3029 additions & 0 deletions

.github/workflows/builder.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Builder
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
name: Build add-on
15+
steps:
16+
- name: Checkout the repository
17+
uses: actions/checkout@v4
18+
19+
- name: Login to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
25+
- name: Build add-on
26+
uses: home-assistant/builder@master
27+
with:
28+
args: |
29+
--all \
30+
--target ha_cursor_agent
31+

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
__pycache__/
2+
*.py[cod]
3+
*$py.class
4+
*.so
5+
.Python
6+
*.egg-info/
7+
dist/
8+
build/
9+
.env
10+
.venv
11+
venv/
12+
*.log
13+
.DS_Store
14+
.vscode/
15+
.idea/
16+

CHANGELOG.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Changelog
2+
3+
## [1.0.0] - 2025-11-03
4+
5+
### Added
6+
- Initial release
7+
- FastAPI REST API
8+
- Files API (read/write/list/append/delete)
9+
- Entities API (list/state/services)
10+
- Helpers API (create/delete)
11+
- Automations API (create/delete/list)
12+
- Scripts API (create/delete/list)
13+
- System API (reload/check_config/restart)
14+
- Backup API (commit/rollback/history/diff)
15+
- Logs API (get/clear)
16+
- Git versioning integration
17+
- Automatic backups before modifications
18+
- Swagger UI documentation
19+
- Authentication via HA token
20+
- Comprehensive logging
21+
- Health check endpoint
22+
23+
### Features
24+
- ✅ Full file system access to /config
25+
- ✅ CRUD operations for helpers, automations, scripts
26+
- ✅ Git-based version control
27+
- ✅ Automatic backup/rollback
28+
- ✅ Configuration validation
29+
- ✅ Component reload without restart
30+
- ✅ Interactive API documentation
31+
- ✅ Audit logs
32+
33+
### Security
34+
- Path validation (restricted to /config)
35+
- Token-based authentication
36+
- Operation logging
37+
- Safe rollback mechanism
38+
39+
---
40+
41+
## Future Plans
42+
43+
### [1.1.0] - Planned
44+
- WebSocket support for real-time updates
45+
- Bulk operations API
46+
- Template validation before applying
47+
- Dashboard management API
48+
- Lovelace card creation
49+
- Integration management
50+
- Device management
51+
52+
### [1.2.0] - Planned
53+
- AI-friendly natural language API
54+
- Auto-fix configuration errors
55+
- Dependency detection
56+
- Impact analysis before changes
57+
- Automated testing
58+
- Performance optimization
59+
60+
---
61+
62+
*Stay tuned for updates!*
63+

0 commit comments

Comments
 (0)