# Ignore everything globally
.DS_Store
._*
custom_components/
blueprints/
dwains-dashboard/
tts/
www/
backups/
old*

# System / runtime folders
.storage/
.cloud/
.google.token/
.Rproj.user/
.cache/

# Logs / DB / temp
*.log*
*.db*
.com*

# Sensitive files
ip_bans.yaml
secrets.yaml
known_devices.yaml
configuration_full.yaml
configuration_minimal.yaml
.env.infrastructure

# --- Whitelist core files ---
!*.yaml
!*.md
!.gitignore
!.travis.yml
!*.pem
!.HA_VERSION
!customize

# --- Re-ignore macOS metadata files inside whitelisted dirs ---
include/**/.DS_Store
include/**/._*

# --- Whitelist directories ---
!www/
!include/
!themes/
!python_scripts/
!dashboards/

# --- Explicitly include all YAML in dashboards subdirs ---
!dashboards/**/*.yaml

# --- Local machine / editor files ---
.vscode/
.google.token
.ha_run.lock

# --- Generated or local-only root YAML files ---
/automations.yaml
/scenes.yaml
/scripts.yaml

# --- Local scratch / exports ---
/image/
/ssl/
/oldautomations.yaml
/oldscratch.yaml
/oldscripts.yaml

# --- Local media snapshots and downloads ---
/www/snapshots/
/www/affalddk/
/www/community/
/www/indkorsel_snapshot.jpg
/www/indkorsel_snapshot_1.jpg
/www/indkorsel_snapshot_2.jpg
/www/media/Halloween-doorbell.mp3
/www/tesla_y.jpg

# --- Local helper scripts not used in git ---
/python_scripts/scene_generator.py

# --- Temporary backup workspace ---
/tmp_backups/
/python_scripts/update_climate.py