homeassistant:

  customize: !include customize.yaml

#Enable default configuration set
default_config: 

http:
  server_port: 8123
  cors_allowed_origins:
    - https://gugg.siora.de
    - https://tftfxumhpq35xehc.myfritz.net
  use_x_forwarded_for: true
  trusted_proxies:
    - 127.0.0.1
    - 10.1.1.22
    - 10.1.1.63
    - ::1
    - 2001:16b8:2494:bb00:4c36:d45e:a75b:f684
  ip_ban_enabled: true
  login_attempts_threshold: 5
  
frontend:
  themes: !include themes.yaml

# Enable influxDB:
# influxdb:

# log history in DB
recorder: 
  #db_url: postgresql://homeassistant:homeassistant@localhost/homeassistant
  auto_purge: true
  purge_keep_days: 30
  exclude:
    domains:
      - automation
      # - weblink
      - updater
    entities:
     - sensor.last_boot
     - sensor.date
     - sun.sun
            
#deprecated
#mqtt:
#  ##broker: rpi-amlab
#  broker: localhost
#  port: 1883
#  ##protocol: 3.1
#  keepalive: 60
#  birth_message:
#    topic: 'hass/status'
#    payload: 'online'
#  will_message:
#    topic: 'hass/status'
#    payload: 'offline'

# tankerkoenig:
  # api_key: a32fee52-4d0e-89f0-a165-43815ac27bf2
  # fuel_types:
    # - "diesel"
  # scan_interval: "0:15:00"
  # stations:
    # - 00060282-9715-4444-8888-acdc00000001
    # - 8c2d31f9-966e-4872-812d-8ade5cb49642
    # - e1a15081-259f-9107-e040-0b0a3dfe563c
    # - 72901fed-92d6-8b22-54c2-851ca418ffff
  # show_on_map: true

##### SENSORS ######
binary_sensor: !include binary_sensors.yaml
sensor: !include sensors.yaml
mqtt: !include mqtt.yaml
notify: !include notifications.yaml
    
##### SWITCHES #####
switch:
  - platform: wake_on_lan
    name: Odin
    mac: 74:D0:2B:93:BE:76
    host: 10.1.1.24
    
  - platform: wake_on_lan
    name: Idun
    mac: 74:56:3C:3C:EE:B2
    host: 10.1.1.30

##### INPUTS #####
input_number:
  tank1_min:
    name: "Min"
    initial: 30
    min: 10
    max: 80
    step: 1

  tank1_max:
    name: "Max"
    initial: 70
    min: 20
    max: 90
    step: 1

  tank2_min:
    name: "Min"
    initial: 30
    min: 10
    max: 80
    step: 1
    
  tank2_max:
    name: "Max"
    initial: 70
    min: 20
    max: 90
    step: 1
    
  wg_temp_open:
    name: "öffnen bei"
    initial: 40
    min: 20
    max: 60
    step: 1

  wg_temp_close:
    name: "schließen bei"
    initial: 30
    min: 10
    max: 50
    step: 1

#####--- AUTOMATION ---#####

##### SLIDER #####
automation: !include automations.yaml

##### GROUPS #####
group: !include groups.yaml


##### CAMERA #####
# camera:
  # - platform: mjpeg
    # name: gardencam
    # username: bram
    # password: Triamos
    # authentication: basic
    # mjpeg_url: http://rpi-cam/cam/cam_pic_new.php
    # still_image_url: http://rpi-cam/cam/cam_pic.php

  # - platform: mjpeg
    # name: merle_door
    # mjpeg_url: https://merle.siora.de/cam1/cam_pic.php
    # username: bram
    # password: Triamos

  # - platform: mjpeg
    # name: merle_room
    # mjpeg_url: https://merle.siora.de/cam2/cam_pic.php
    # username: bram
    # password: Triamos

  # - platform: mjpeg
    # name: merle_garden
    # mjpeg_url: https://merle.siora.de/cam3/cam_pic.php
    # username: bram
    # password: Triamos
  