homeassistant:
  external_url: !secret ahsl_base_url
  internal_url: http://192.168.7.187:8123
  customize: !include customize.yaml
  auth_providers:
    - type: homeassistant
  packages: !include_dir_named packages
  media_dirs:
    haunted_sounds: /media/haunted_sounds
    music: /media/music
    sounds: /media/sounds
    disney: /media/disney
    books: /media/books
    images: /media/images


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
  # ssl_certificate: !secret ahsl_ssl_cert
  # ssl_key: !secret ahsl_ssl_key
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.7.0/24
    - 173.245.48.0/20
    - 103.21.244.0/22
    - 103.22.200.0/22
    - 103.31.4.0/22
    - 141.101.64.0/18
    - 108.162.192.0/18
    - 190.93.240.0/20
    - 188.114.96.0/20
    - 197.234.240.0/22
    - 198.41.128.0/17
    - 162.158.0.0/15
    - 104.16.0.0/12
    - 172.64.0.0/13
    - 131.0.72.0/22
  ip_ban_enabled: true
  login_attempts_threshold: 5

ssdp:

zeroconf:

system_health:

mobile_app:

person:

frontend:
  themes: !include_dir_merge_named themes

cloud:

conversation:

device_tracker:
  - platform: eero_tracker
    consider_home: 300
    interval_seconds: 60
    track_new_devices: yes
    #only_macs: "d0:c5:f3:80:50:5e, f4:31:c3:84:1d:d1, 08:74:02:CC:C4:97, 5C:F5:DA:9B:5A:A2, 34:7C:25:CC:9D:0F, 64:52:99:93:F1:B3"
  - platform: icloud3
    username: !secret ICLOUD_USER
    password: !secret ICLOUD_PASS

discovery:


updater:
  include_used_components: true

sun:

python_script:

map:

geo_location:
  - platform: usgs_earthquakes_feed
    feed_type: 'past_hour_all_earthquakes'

group: !include groups.yaml


### Includes ###
alert: !include_dir_merge_named alerts/
automation: !include automations.yaml
script: !include scripts.yaml
sensor: !include_dir_merge_list sensors
binary_sensor: !include_dir_merge_list binary_sensors
# light: !include lights.yaml
switch: !include switches.yaml
scene: !include scenes.yaml
input_select: !include input_select.yaml
input_boolean: !include input_boolean.yaml
input_datetime: !include input_datetime.yaml
zone: !include zones.yaml


shell_command:
  grocy_consume_item: "curl -k -X POST https://{{server_ip}}:9192/api/stock/products/{{product_id}}/consume -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'GROCY-API-KEY: {{grocy_key}}' -H 'cache-control: no-cache' -d '{ \"amount\": {{amount}},  \"transaction_type\": \"consume\",  \"spoiled\": false }'"
  grocy_chore_complete: "curl -k -X POST https://{{server_ip}}:9192/api/chores/{{chore_id}}/execute -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'GROCY-API-KEY: {{grocy_key}}' -H 'cache-control: no-cache' -d '{ \"tracked_time\": {{timestamp}},  \"done_by\": {{user}} }'"
  grocy_add_item: "curl -k -X POST https://{{server_ip}}:9192/api/stock/products/{{product_id}}/add -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'GROCY-API-KEY: {{grocy_key}}' -H 'cache-control: no-cache' -d '{ \"amount\": {{amount}},  \"best_before_date\": {{best_before_date}},  \"transaction_type\": \"purchase\", \"price\": {{price}} }'"
  google_token: sed -i -e 's/2client.client"}2client.client"}/2client.client"}/g' /config/.google.token