Disabled a twitter welcome message via HA. Working on a new HOT Flow! See @BearStoneHA for details.
This commit is contained in:
parent
bf9cc8a2c2
commit
128cabaa8d
|
@ -7,9 +7,9 @@
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
feedreader:
|
feedreader:
|
||||||
urls:
|
urls:
|
||||||
- https://hasspodcast.io/feed/podcast
|
- https://hasspodcast.io/feed/podcast #HA Podcast Feed
|
||||||
- http://feeds.feedburner.com/IPMer?format=xml
|
- https://us12.campaign-archive.com/feed?u=45cab4343ffdbeb9667c28a26&id=e01847e94f #This is CCOSTAN's Smart Home Blog feed
|
||||||
# - http://feeds.feedburner.com/RecentCommitsToBearStoneHA
|
# - http://feeds.feedburner.com/RecentCommitsToBearStoneHA - This is the Repo Commit feed.
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
|
@ -21,32 +21,26 @@ automation:
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data_template:
|
||||||
value1: 'There is a new HA Podcast available for {{trigger.event.data.title}}.'
|
value1: 'There is a new RSS item available for {{trigger.event.data.title}}.'
|
||||||
value2: 'https://hasspodcast.io/'
|
value2: '{{trigger.event.data.link}}'
|
||||||
who: 'carlo'
|
who: 'carlo'
|
||||||
|
|
||||||
- service: notify.html5
|
- service: notify.html5
|
||||||
data_template:
|
data_template:
|
||||||
title: "New HA Podcast available"
|
title: "New RSS Item available"
|
||||||
message: "New HA Podcast - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }} {{trigger.event.data.title}}"
|
message: "New RSS Item - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }} {{trigger.event.data.title}}"
|
||||||
data:
|
data:
|
||||||
url: "https://hasspodcast.io/"
|
url: "{{trigger.event.data.link}}"
|
||||||
|
|
||||||
- service: persistent_notification.create
|
- service: persistent_notification.create
|
||||||
data_template:
|
data_template:
|
||||||
title: "{{trigger.event.data.title}}"
|
title: "{{trigger.event.data.title}}"
|
||||||
message: "New Podcast available - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
|
message: "New RSS item available - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
|
||||||
notification_id: "update_available"
|
notification_id: "update_available"
|
||||||
|
|
||||||
- service: script.tweet_engine
|
- service: script.tweet_engine
|
||||||
data_template:
|
data_template:
|
||||||
tweet: >
|
tweet: 'Check it out! {{trigger.event.data.title}} - {{trigger.event.data.link}}'
|
||||||
{{ [
|
|
||||||
"There is a new HA Podcast available! @DanGeek, @rohank9, @philhawthorne & Crew rock it out (#HomeAutomation Style!)!",
|
|
||||||
"Mine and @DanGeek Favorite Podcast just came out!",
|
|
||||||
"Listen to @rohank9 and the HA Podcast crew on thier new #HomeAutomation episode!",
|
|
||||||
"Mine & @CCostan Favorite Podcast just came out! Thanks @DanGeek!"
|
|
||||||
] | random + "(https://hasspodcast.io/)"}}
|
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data_template:
|
||||||
|
|
|
@ -107,30 +107,30 @@ automation:
|
||||||
media_content_id: "https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/twitter-chirp.mp3"
|
media_content_id: "https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/twitter-chirp.mp3"
|
||||||
media_content_type: audio/mp4
|
media_content_type: audio/mp4
|
||||||
|
|
||||||
- service: script.tweet_engine
|
# - service: script.tweet_engine
|
||||||
data_template:
|
# data_template:
|
||||||
tweet: >-
|
# tweet: >-
|
||||||
{% set handle = trigger.event.data.value1 %}
|
# {% set handle = trigger.event.data.value1 %}
|
||||||
{% set location = trigger.event.data.location %}
|
# {% set location = trigger.event.data.location %}
|
||||||
{% set phrases = [
|
# {% set phrases = [
|
||||||
"Thanks for the Follow " ~ handle ~ "! Chirp the Bird from " ~ location ~ "!!",
|
# "Thanks for the Follow " ~ handle ~ "! Chirp the Bird from " ~ location ~ "!!",
|
||||||
"Hey " ~ handle ~ "! Thanks for the Follow from " ~ location ~ " !",
|
# "Hey " ~ handle ~ "! Thanks for the Follow from " ~ location ~ " !",
|
||||||
"Sending a #Chirp to " ~ handle ~ " in " ~ location ~ "!",
|
# "Sending a #Chirp to " ~ handle ~ " in " ~ location ~ "!",
|
||||||
"New follower " ~ handle ~ " from " ~ location ~ ", I just sounded a chirp in the house.",
|
# "New follower " ~ handle ~ " from " ~ location ~ ", I just sounded a chirp in the house.",
|
||||||
"Boom! The " ~ location ~ " follow from " ~ handle ~ " makes me sound a chirp in the house.",
|
# "Boom! The " ~ location ~ " follow from " ~ handle ~ " makes me sound a chirp in the house.",
|
||||||
"Wanna know who is super cool? "~ handle ~" IS!!! Thanks for making me CHIRP!",
|
# "Wanna know who is super cool? "~ handle ~" IS!!! Thanks for making me CHIRP!",
|
||||||
"If the AMP (http://amzn.to/2j18dlT) is on & I get a new follower like " ~ handle ~ ", I sound a chirp!"
|
# "If the AMP (http://amzn.to/2j18dlT) is on & I get a new follower like " ~ handle ~ ", I sound a chirp!"
|
||||||
] %}
|
# ] %}
|
||||||
{% set hashtags = [
|
# {% set hashtags = [
|
||||||
"#ThanksForTheFollow",
|
# "#ThanksForTheFollow",
|
||||||
"#FollowBack",
|
# "#FollowBack",
|
||||||
"#ChirpTheHouse",
|
# "#ChirpTheHouse",
|
||||||
"#FollowMe",
|
# "#FollowMe",
|
||||||
"#MakingitChirp",
|
# "#MakingitChirp",
|
||||||
"(http://www.vmwareinfo.com/2017/12/giving-house-twitter-account.html)",
|
# "(http://www.vmwareinfo.com/2017/12/giving-house-twitter-account.html)",
|
||||||
"(http://www.vmwareinfo.com/2017/11/building-digital-cuckoo-clock-with-home.html)"
|
# "(http://www.vmwareinfo.com/2017/11/building-digital-cuckoo-clock-with-home.html)"
|
||||||
] %}
|
# ] %}
|
||||||
{{ phrases|random ~ " " ~ hashtags|random }}
|
# {{ phrases|random ~ " " ~ hashtags|random }}
|
||||||
|
|
||||||
- alias: 'Closed Github Issue'
|
- alias: 'Closed Github Issue'
|
||||||
hide_entity: True
|
hide_entity: True
|
||||||
|
|
Loading…
Reference in New Issue