haobserver/.env.example
2026-05-16 08:50:49 +00:00

48 lines
1.4 KiB
Text

# 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"
ARTICLE_CONTEXT_DAYS="7"
# 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, pi, ollama, or openai
# none publishes a page, but without real AI conclusions.
# pi uses your logged-in pi subscription via `pi -p`.
LLM_MODE="none"
# For pi subscription mode. Run `pi /login` interactively once first.
PI_BIN="/usr/local/bin/pi"
PI_MODEL=""
PI_TIMEOUT="600"
# 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"