###############################################################################
#   @author         :   Mahasri Kalavala
#   @date           :   04/15/2017
#   @package        :   Scripts
#   @description    :   Nothing but Notification Stuff!
###############################################################################
homeassistant:

notify:
  - name: ios_devices
    platform: group
    services:
      - service: ios_ipad
      - service: ios_suresh
      - service: ios_mallika
      - service: ios_srinika
      - service: ios_hasika

  # make sure you generate app password for your email if you have 2FA enabled!
  - name: notify_smtp
    platform: smtp
    server: smtp.gmail.com
    port: 587
    timeout: 15
    username: !secret smtp_username
    password: !secret smtp_password
    sender: !secret smtp_sender
    recipient: !secret smtp_recipient

  # - name: notify_aws_sns
  #   platform: aws_sns
  #   aws_access_key_id: !secret aws_access_key_id
  #   aws_secret_access_key: !secret aws_secret_access_key
  #   region_name: 'us-east-1'

  - name: file_notify
    platform: file
    filename: debug.log

  - name: telegram
    platform: telegram
    chat_id: !secret telegram_chatid

tts:
  - platform: amazon_polly
    aws_access_key_id: !secret aws_access_key_id
    aws_secret_access_key: !secret aws_secret_access_key
    region_name: "us-east-1"
    text_type: ssml
    voice: Joanna

#
# Telegram Configuration
#
telegram_bot:
  # Setup Broadcast for sending messages
  - platform: broadcast
    api_key: !secret telegram_apikey
    allowed_chat_ids:
      - !secret telegram_chatid

  # Add Polling
  - platform: polling
    api_key: !secret telegram_apikey
    parse_mode: html
    allowed_chat_ids:
      - !secret telegram_chatid
