mysmarthome/packages/fun.yaml

37 lines
1.3 KiB
YAML

# # ##############################################################################
# # @author : Mahasri Kalavala
# # @date : 04/15/2017
# # @package : Random Chuck Norris Facts
# # @description : Daily dose of Chuck Norris.
# # It is intentionally set to query once a day.
# # Know your limits, too much of Chuck Norris is not good!
# #
# # These are facts, and not jokes. DO NOT JOKE ABOUT CHUCK NORRIS!
# # ##############################################################################
# homeassistant:
# customize:
# sensor.fact_of_the_day:
# hidden: true
# sensor:
# - platform: rest
# name: fact_of_the_day
# resource: http://api.icndb.com/jokes/random?firstName=Chuck&lastName=Norris&limitTo=[nerdy]
# value_template: '{{ value_json.value.joke }}'
# scan_interval: 86400
# automation:
# - alias: Chuck Norris Fact At Startup
# initial_state: true
# trigger:
# - platform: homeassistant
# event: start
# action:
# - delay:
# seconds: 15
# - service: persistent_notification.create
# data:
# title: 'Chuck Norris fact:'
# message: '{{ states.sensor.fact_of_the_day.state }}'