# Ignore everything by default
*

# Whitelist config files
!*.yaml
!*.yml
!.gitignore
!*.md
!*.sh
!*.js*
!*.txt*
!*.json*
!*.ui.yaml
!*.py
!*.conf

# Whitelist subdirectory yaml files
!*/*.yaml
!*/*.yml
!*/*.md
!*/*.sh
!*/*.js*
!*/*.txt*
!*/*.json*
!*/*.ui.yaml
!*/*.h
!*/*.py
!*/*/*.py
!*/*/*.yaml


# Whitelist specific folders (uncomment as needed)

### Automations ###
!automations/
!automations/**

### Packages ###
!packages/
!packages/**
!packages/**
!packages/chore-tracker-ha.yaml

### Scenes ###
!scenes/

### Scripts ###
!scripts/

### Blueprints ###
!blueprints/
!blueprints/**
!blueprints/automation/**
!blueprints/automation/homeassistant/*.yaml
!blueprints/automation/nberkturner/*.yaml

### Dashboards ###
!dashboards/
!dashboards/**

### ESPHome Folders ###
!esphome/
!esphome/fonts/**
!esphome/ha-remote/
!esphome/ha-remote/components/
!esphome/ha-remote/components/**
!esphome/ha-remote/components/max17043/
!esphome/components/
!esphome/components/**
!esphome/components/max17043/**
!custom_components/**
!esphome/chore-tracker/*.py
!esphome/chore-tracker/*.yaml
!esphome/chore-tracker/
!esphome/chore-tracker/**
!esphome/family-room-remote/
!esphome/family-room-remote/**
!esphome/family-room-remote/*.yaml
!esphome/chore-tracker-esphome.yaml
!esphome/respeaker-satellite/
!esphome/respeaker-satellite/**
!esphome/respeaker-satellite/*.yaml
!esphome/jarvis-satellite/
!esphome/jarvis-satellite/**

### Helpers ###
!helpers/
!helpers/**

### Themes ###
!themes/
!themes/**

# =============================================
# SENSITIVE FILES - always ignore these
# =============================================
secrets.yaml
known_devices.yaml
ip_bans.yaml

# =============================================
# Generated files and folders - always ignore
# =============================================
.storage
.cloud
.google.token
home-assistant.log
home-assistant_v2.db
home-assistant_v2.db-shm
home-assistant_v2.db-wal

# Dependencies and cache
deps/
tts/
www/
custom_components/
image/
ms365_storage/

# Pickle / session files
*.pickle
*.db
*.db-shm
*.db-wal

# OS files
.DS_Store
Thumbs.db
