Initial Home Assistant observer
This commit is contained in:
commit
325917c09b
8 changed files with 624 additions and 0 deletions
41
.env.example
Normal file
41
.env.example
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Copy this file to .env and fill in your values.
|
||||
# Do not commit/share .env; it contains secrets.
|
||||
|
||||
# Home Assistant URL and long-lived token
|
||||
HA_URL="http://homeassistant.local:8123"
|
||||
HA_TOKEN="paste_your_long_lived_access_token_here"
|
||||
|
||||
# Local storage
|
||||
DATA_DIR="./data"
|
||||
REPORT_DIR="./reports"
|
||||
WEB_DIR="./web"
|
||||
|
||||
# Extra owner directions appended to the 05:00 AI prompt
|
||||
PROMPT_FILE="./llm_instructions.md"
|
||||
|
||||
# Collection/history settings
|
||||
HISTORY_HOURS="24"
|
||||
MAX_HISTORY_PER_ENTITY="20"
|
||||
KEEP_SNAPSHOT_DAYS="14"
|
||||
|
||||
# At 05:00, analyze snapshots from roughly this many hours
|
||||
ANALYZE_SNAPSHOT_HOURS="24"
|
||||
|
||||
# Domains to include
|
||||
RELEVANT_DOMAINS="sensor,binary_sensor,person,device_tracker,climate,light,switch,lock,cover,alarm_control_panel,media_player,calendar,weather"
|
||||
|
||||
# Optional: comma-separated entity IDs to exclude for privacy/noise
|
||||
# EXCLUDED_ENTITIES="device_tracker.my_phone,camera.front_door"
|
||||
EXCLUDED_ENTITIES=""
|
||||
|
||||
# AI backend for the 05:00 analysis: none, ollama, or openai
|
||||
# none publishes a page, but without real AI conclusions.
|
||||
LLM_MODE="none"
|
||||
|
||||
# For local Ollama, recommended for privacy
|
||||
OLLAMA_URL="http://localhost:11434"
|
||||
OLLAMA_MODEL="llama3.1"
|
||||
|
||||
# For OpenAI cloud API
|
||||
OPENAI_API_KEY=""
|
||||
OPENAI_MODEL="gpt-4o-mini"
|
||||
Loading…
Add table
Add a link
Reference in a new issue