SurfSense/surfsense_backend/app/routes
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 Add Home Assistant connector for smart home data indexing 2025-11-18 23:58:57 +00:00
airtable_add_connector_route.py refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
chats_routes.py feat: added global llm configurations 2025-11-14 21:53:46 -08:00
documents_routes.py Improve code quality per PR #11 and #12 review feedback 2025-11-18 22:46:17 +00:00
google_calendar_add_connector_route.py refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
google_gmail_add_connector_route.py refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
home_assistant_add_connector_route.py Add Home Assistant connector for smart home data indexing 2025-11-18 23:58:57 +00:00
llm_config_routes.py feat: added global llm configurations 2025-11-14 21:53:46 -08:00
logs_routes.py refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
luma_add_connector_route.py feat: Moved searchconnectors association from user to searchspace 2025-10-08 21:13:01 -07:00
podcasts_routes.py inject user instruction in the podcast generation task 2025-11-11 20:08:32 +02:00
search_source_connectors_routes.py Add Home Assistant connector for smart home data indexing 2025-11-18 23:58:57 +00:00
search_spaces_routes.py refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
site_configuration_routes.py Implement dynamic site appearance configuration system 2025-11-18 10:58:31 +00:00
social_media_links_routes.py Implement dynamic social media link management system 2025-11-17 20:44:17 +00:00