mirror of
https://github.com/skalavala/mysmarthome.git
synced 2025-09-14 23:32:40 +00:00
Back Alive!
This commit is contained in:
36
packages/fun.yaml
Executable file
36
packages/fun.yaml
Executable file
@@ -0,0 +1,36 @@
|
||||
# # ##############################################################################
|
||||
# # @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 }}'
|
Reference in New Issue
Block a user