automation: !include 'automations.yaml'
default_config:
group:
  garmin:
    entities:
    - switch.tasmota
    - switch.sufit2switchsalon
    - switch.sufit3switchsalon
    - switch.tasmota_8
    - switch.tasmota_12
    - switch.tasmota_9
    - switch.tasmota_3
    - scene.Film
    name: Garmin
http:
  trusted_proxies:
  - 192.168.31.0/24
  - 172.18.0.0/24
  - 172.19.0.0/24
  - 172.22.0.0/24
  - 172.20.0.0/24
  - 172.21.0.0/24
  - 172.23.0.0/24
  - 172.17.0.0/24
  use_x_forwarded_for: true
logger:
  default: warning
  logs:
    homeassistant.components.rest_command: debug
    homeassistant.components.shell_command: debug
prometheus:
  namespace: hass
rest_command:
  piplayer_reboot:
    method: GET
    url: http://192.168.31.6/cgi-bin/main.cgi?ACTION=reboot
  piplayer_shutdown:
    method: GET
    url: http://192.168.31.6/cgi-bin/main.cgi?ACTION=shutdown
scene: !include 'scenes.yaml'
script: !include 'scripts.yaml'
sensor:
- json_attributes:
  - addr
  - lat
  - lon
  - tst
  method: GET
  name: owntracks_last_location
  platform: rest
  resource: http://192.168.31.5:8083/api/0/last?user=owntracksusr&device=oskar&fields=tst,tid,addr,topic,isotst,lat,lon,addr
  scan_interval: 60
  value_template: '{{ value_json.lat }},{{ value_json.lon }}'
shell_command:
  piplayer_reboot: curl -X GET http://192.168.31.6/cgi-bin/main.cgi?ACTION=reboot
  piplayer_shutdown: curl -X GET http://192.168.31.6/cgi-bin/main.cgi?ACTION=shutdown
tts:
- platform: google_translate
