mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-09-14 23:55:18 +00:00
Updated #750 - Adding collapable IOS notifications
This commit is contained in:
@@ -19,29 +19,6 @@ automation:
|
||||
event_type: feedreader
|
||||
|
||||
action:
|
||||
- service: persistent_notification.create
|
||||
data_template:
|
||||
title: >
|
||||
{{ trigger.event.data.title }}
|
||||
message: >
|
||||
{% set url = trigger.event.data.feed_url.split('https://')[1] %}
|
||||
{% set source = {'https://us12.campaign-archive.com/feed?u=45cab4343ffdbeb9667c28a26&id=e01847e94f':'vCloudInfo.com',
|
||||
'hasspodcast.io/feed/podcast':'Hass podcast'} %}
|
||||
New Rss feed for {{source[url] if url in source else 'Unknown'}}, see
|
||||
{{trigger.event.data.link}},{{trigger.event.data.author}}
|
||||
notification_id: >
|
||||
{% set url = trigger.event.data.feed_url.split('https://')[1] %}
|
||||
{% set source = {'https://us12.campaign-archive.com/feed?u=45cab4343ffdbeb9667c28a26&id=e01847e94f':'vCloudInfo.com',
|
||||
'hasspodcast.io/feed/podcast':'Hass podcast'} %}
|
||||
rss-feed-{{source[url] if url in source else 'Unknown'}}
|
||||
|
||||
############ everything below this line should be deleted if using as a drop in package. ####################
|
||||
|
||||
- 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
|
||||
data_template:
|
||||
|
Reference in New Issue
Block a user