From 911bdc66d27ccbca2a5cf0d4714f0e906ded9629 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 31 Aug 2019 02:30:23 +0300 Subject: [PATCH] Draft of Home Assistant configuration. A lot of refactoring is needed. *.yaml.dist files are needed too. --- .gitignore | 12 ++++++ automations.yaml | 1 + configuration.yaml | 97 ++++++++++++++++++++++++++++++++++++++++++++++ groups.yaml | 0 scripts.yaml | 0 5 files changed, 110 insertions(+) create mode 100644 .gitignore create mode 100755 automations.yaml create mode 100755 configuration.yaml create mode 100755 groups.yaml create mode 100755 scripts.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2067dd --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# Ignoring all by default +* + +# Excluding these files +!*.yaml +!.gitignore +!*.md + +# Ignoring secrets +known_devices.yaml +persons.yaml +secrets.yaml diff --git a/automations.yaml b/automations.yaml new file mode 100755 index 0000000..0637a08 --- /dev/null +++ b/automations.yaml @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/configuration.yaml b/configuration.yaml new file mode 100755 index 0000000..9622aeb --- /dev/null +++ b/configuration.yaml @@ -0,0 +1,97 @@ + +# 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: +# base_url: example.duckdns.org:8123 + +## Text to speech +tts: + - platform: google_translate + +group: !include groups.yaml +automation: !include automations.yaml +script: !include scripts.yaml + +## Persons +person: !include persons.yaml + +## Devices +vacuum: + - platform: xiaomi_miio + host: !secret xiaomi_vacuum1_ip + token: !secret xiaomi_vacuum1_token + +# Aqara Gateway 2 +xiaomi_aqara: + gateways: + - mac: !secret xiaomi_gateway1_mac + key: !secret xiaomi_gateway1_key + +# MikroTik presense +device_tracker: + - platform: mikrotik + host: !secret mikrotik_router1_ip + username: !secret mikrotik_router1_username + password: !secret mikrotik_router1_password + method: wireless + consider_home: 180 + new_device_defaults: + track_new_devices: true + +# Wake on LAN +wake_on_lan: + +## Services +media_player: + - platform: emby + host: !secret emby_media_ip + api_key: !secret emby_media_api_key + - platform: samsungtv + host: !secret samsung_tv_media_ip + name: !secret samsung_tv_media_name + timeout: 15 + mac: !secret samsung_tv_media_mac + - platform: webostv + host: !secret lg_tv_media_ip + name: !secret lg_tv_media_name + filename: webostv.conf + timeout: 5 + +upnp: + port_mapping: false + +# Transmission torrent daemon +transmission: + host: !secret transmission_torrent_host + username: !secret transmission_torrent_username + password: !secret transmission_torrent_password + turtle_mode: true + monitored_conditions: + - current_status + - download_speed + - upload_speed + - active_torrents + - total_torrents + +## Sensors +sensor: + - platform: uptime + - platform: version + - platform: cpuspeed + +## Notifications +# Platforms +# Uncomment when access problem will be solved +#telegram_bot: +# - platform: polling +# api_key: !secret telegram_bot_key +# allowed_chat_ids: +# - !secret telegram_bot_chat_id + +# Notifiers +#notify: +# - name: test +# platform: telegram +# chat_id: !secret telegram_bot_chat_id diff --git a/groups.yaml b/groups.yaml new file mode 100755 index 0000000..e69de29 diff --git a/scripts.yaml b/scripts.yaml new file mode 100755 index 0000000..e69de29