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

logger:
  default: info
#  logs:
#    tuya: debug
#    homeassistant.components.tuya: debug

# Text to speech
tts:
  - platform: google_translate

http:
  ip_ban_enabled: true
  login_attempts_threshold: 5
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.0.30

homeassistant:
  allowlist_external_dirs:
    - /config
#sensor:
#  - platform: filesize
#    file_paths:
#      - /config/home-assistant_v2.db
#    scan_interval: 1800

recorder:
  purge_keep_days: 1
  commit_interval: 10

influxdb:
  host: localhost
  port: 8086
  database: homeassistant
  username: homeassistant
  password: Homeassistant!
  exclude:
    domains:
      - device_tracker
      - media_player
#      - uptime
      - time_date
      - worldclock
      - camera
      - glances
    entity_globs:
      - sensor.clock*
      - sensor.date*
#      - sensor.load_*m
      - sensor.time*
#      - sensor.uptime*
#      - sensor.asuswrt*
    entities:
      - sensor.home_assistant_v2_db
      - sensor.memory_free
      - sensor.memory_use
#      - sensor.memory_use_percent
#      - sensor.processor_use
      - sun.sun

weather:
  - platform: pirateweather
    api_key: qjeyi5uUqa14bSDhGOtK155uAiw2qKYL3zJsvBkd
    # Additional optional values:
    latitude: 43.111587
    longitude: -77.644523
    mode: hourly
    name: Rochester, NY Weather


# you can also get a sensor data
sensor:
  - platform: pirateweather
    api_key: qjeyi5uUqa14bSDhGOtK155uAiw2qKYL3zJsvBkd
    scan_interval: '00:15:00'
    monitored_conditions:
      - temperature
      - precip_probability
      - precip_type
      - humidity
      - cloud_cover
      - nearest_storm_distance
      - precip_intensity
      - wind_speed

notify:  
- name: adris_mobile_devices
  platform: group
  services:
    - service: mobile_app_pixel_4a
    - service: mobile_app_adri_s_gs22

# emulated_hue:
#   listen_port: 80
#   exposed_domains:
#     - light
#     - group
#     - lock
#   entities:
#     switch.basement_heater_switch:
#       hidden: false
#     switch.bath_fan:
#       hidden: false
#     switch.bedroom_heater_switch:
#       hidden: false
#     switch.office_heater_switch:
#       hidden: false
#     light.driveway_floodlights_basic:
#       hidden: true
#     light.driveway_motion_sensor_basic:
#       hidden: true
#     light.garage_motion_sensor_basic:
#       hidden: true

alexa:
  smart_home:
    filter:
      include_domains:
        - lock
        - camera
      include_entities:
        - switch.basement_heater_switch
        - switch.bath_fan
        - switch.bedroom_heater_switch
        - switch.office_heater_switch
        - light.driveway_floodlights
        - light.basement_ceiling
        - light.basement_stairs

zha:
  enable_quirks: true
  custom_quirks_path: /config/thirdreality_quirks

#localtuya: !include localtuya.yaml
#light: !include lights.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
