Home-AssistantConfig/config/packages/hasspodcast.yaml

52 lines
2.0 KiB
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
#-------------------------------------------
# RSS Podcast Alerting function Packages
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
#-------------------------------------------
#-------------------------------------------
feedreader:
urls:
- https://hasspodcast.io/feed/podcast #HA Podcast Feed
- https://us12.campaign-archive.com/feed?u=45cab4343ffdbeb9667c28a26&id=e01847e94f #This is CCOSTAN's Smart Home Blog feed
# - http://feeds.feedburner.com/RecentCommitsToBearStoneHA - This is the Repo Commit feed.
2018-01-02 00:00:45 +00:00
#-------------------------------------------
automation:
- alias: Send notification of RSS feed title when updated
trigger:
platform: event
event_type: feedreader
action:
- service: notify.html5
data_template:
title: "New RSS Item available"
message: "New RSS Item - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }} {{trigger.event.data.title}}"
2018-01-02 00:00:45 +00:00
data:
url: "{{trigger.event.data.link}}"
2018-01-02 00:00:45 +00:00
- service: persistent_notification.create
data_template:
title: "{{trigger.event.data.title}}"
message: "New RSS item available - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
2018-01-02 00:00:45 +00:00
notification_id: "update_available"
2018-03-19 15:29:25 +00:00
############ everything below this line should be deleted if using as a drop in package. ####################
2018-03-19 15:25:23 +00:00
- service: script.notify_engine
data_template:
value1: 'There is a new RSS item available for {{trigger.event.data.title}}.'
value2: '{{trigger.event.data.link}}'
who: 'carlo'
- service: script.tweet_engine_image
2018-01-02 00:00:45 +00:00
data_template:
2018-03-09 21:58:36 +00:00
tweet: '{{trigger.event.data.title}} - {{trigger.event.data.link}}'
image: >-
{% set pictures = [
"/config/www/custom_ui/floorplan/images/branding/BearStoneParty.png",
"/config/www/custom_ui/floorplan/images/branding/Chalk-Podcast.png"
] %}
{{ pictures|random }}