# # ##############################################################################
# #   @author         :   Mahasri Kalavala
# #   @date           :   01/05/2018
# #   @package        :   Random Quote at Startup
# #   @description    :   Daily quotes
# # ##############################################################################
# homeassistant:
#   customize:
#     sensor.quote_of_the_day:
#       hidden: true

# sensor:
#   - platform: rest
#     name: quote_of_the_day
#     resource: http://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en
#     value_template: '{{ value_json.quoteText }} - By {{ value_json.quoteAuthor }}'
#     scan_interval: 86400

# automation:

#   - alias: Quote At Startup
#     initial_state: true
#     trigger:
#       - platform: homeassistant
#         event: start
#     action:
#       - delay:
#           seconds: 15
#       - service: persistent_notification.create
#         data:
#           title: 'Quote:'
#           message: '{{ states.sensor.quote_of_the_day.state  }}'