SurfSense/surfsense_backend/app/tasks/celery_tasks
Claude 4f279b06c3
Add Home Assistant connector for smart home data indexing
## New Files
- connectors/home_assistant_connector.py: API client for Home Assistant REST API
- tasks/connector_indexers/home_assistant_indexer.py: Data indexer for HA items
- routes/home_assistant_add_connector_route.py: Authentication route for token setup

## Modified Files
- db.py: Add HOME_ASSISTANT_CONNECTOR to DocumentType and SearchSourceConnectorType enums
- connector_service.py: Add search_home_assistant() method
- nodes.py: Add HOME_ASSISTANT_CONNECTOR to search_single_connector
- utils.py: Add connector metadata (emoji, result name, friendly name)
- routes/__init__.py: Register Home Assistant route
- search_source_connectors_routes.py: Add indexing endpoint and run function
- celery_tasks/connector_tasks.py: Add Celery task for background indexing
- connector_indexers/__init__.py: Export index_home_assistant_data

## Features
- Index automations, scripts, scenes, and logbook events
- Long-Lived Access Token authentication (simple setup)
- Markdown formatting for indexed content
- Incremental indexing based on last_indexed_at
- Full integration with existing search infrastructure
2025-11-18 23:58:57 +00:00
..
__init__.py feat: added celery and removed background_tasks for MQ's 2025-10-20 00:30:00 -07:00
connector_tasks.py Add Home Assistant connector for smart home data indexing 2025-11-18 23:58:57 +00:00
document_tasks.py feat: added file limit tracking for a user 2025-10-30 14:58:08 -07:00
podcast_tasks.py inject user instruction in the podcast generation task 2025-11-11 20:08:32 +02:00
schedule_checker_task.py feat: added meta-scheduler for running periodic tasks 2025-10-22 19:49:44 -07:00