Moving some twitter stuff around...dont mind me
This commit is contained in:
parent
71c2bb030e
commit
cbf2c01633
|
@ -1049,6 +1049,12 @@ script:
|
||||||
- service: notify.twitter
|
- service: notify.twitter
|
||||||
data_template:
|
data_template:
|
||||||
message: !include ../templates/twitter_stats.yaml
|
message: !include ../templates/twitter_stats.yaml
|
||||||
|
data:
|
||||||
|
media: >-
|
||||||
|
{{ [ "/config/www/tweet_images/cloud.jpg",
|
||||||
|
"/config/www/tweet_images/laptop.jpg",
|
||||||
|
"/config/www/tweet_images/smart-home.jpg",
|
||||||
|
"/config/www/tweet_images/earth.jpg"] | random }}
|
||||||
|
|
||||||
twitter_promos:
|
twitter_promos:
|
||||||
sequence:
|
sequence:
|
||||||
|
@ -1056,6 +1062,20 @@ script:
|
||||||
data_template:
|
data_template:
|
||||||
message: !include ../templates/twitter_promos.yaml
|
message: !include ../templates/twitter_promos.yaml
|
||||||
|
|
||||||
|
twitter_iss:
|
||||||
|
sequence:
|
||||||
|
- service: notify.twitter
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% set msg = "" %}
|
||||||
|
{% set msg = msg + " " + message %}
|
||||||
|
{% set msg = msg + " #smarthome #iot " %}
|
||||||
|
{{ msg }}
|
||||||
|
data:
|
||||||
|
media: >-
|
||||||
|
{{ [ "/config/www/tweet_images/iss.jpg",
|
||||||
|
"/config/www/tweet_images/iss2.jpg"] | random }}
|
||||||
|
|
||||||
twitter_github:
|
twitter_github:
|
||||||
sequence:
|
sequence:
|
||||||
- service: notify.twitter
|
- service: notify.twitter
|
||||||
|
@ -1068,12 +1088,134 @@ script:
|
||||||
data:
|
data:
|
||||||
media: /config/www/tweet_images/ah.png
|
media: /config/www/tweet_images/ah.png
|
||||||
|
|
||||||
|
twitter_bot_info:
|
||||||
|
sequence:
|
||||||
|
- service: notify.twitter
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% set msg = "" %}
|
||||||
|
{% set msg = msg + " " + message %}
|
||||||
|
{% set msg = msg + " #smarthome #iot " %}
|
||||||
|
{{ msg }}
|
||||||
|
data:
|
||||||
|
media: >-
|
||||||
|
'{{ [ "/config/www/tweet_images/robot1.jpg",
|
||||||
|
"/config/www/tweet_images/robot2.jpg"] | random }}'
|
||||||
|
|
||||||
|
twitter_speedtest:
|
||||||
|
sequence:
|
||||||
|
- service: notify.twitter
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% set msg = "" %}
|
||||||
|
{% set msg = msg + " " + message %}
|
||||||
|
{% set msg = msg + " #smarthome #speedtest " %}
|
||||||
|
{{ msg }}
|
||||||
|
data:
|
||||||
|
media: >-
|
||||||
|
{{ [ "/config/www/tweet_images/speed.jpg",
|
||||||
|
"/config/www/tweet_images/fiber-optic.jpg"] | random }}
|
||||||
|
|
||||||
twitter_new_ha:
|
twitter_new_ha:
|
||||||
sequence:
|
sequence:
|
||||||
- service: notify.twitter
|
- service: notify.twitter
|
||||||
data_template:
|
data_template:
|
||||||
message: !include ../templates/twitter_new_ha.yaml
|
message: !include ../templates/twitter_new_ha.yaml
|
||||||
|
|
||||||
|
twitter_xmas_countdown:
|
||||||
|
sequence:
|
||||||
|
- service: notify.twitter
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% set msg = "" %}
|
||||||
|
{% set msg = msg + " " + message %}
|
||||||
|
{% set msg = msg + " #countdown " %}
|
||||||
|
{{ msg }}
|
||||||
|
data:
|
||||||
|
media: >-
|
||||||
|
{{ [ "/config/www/tweet_images/xmas.jpg",
|
||||||
|
"/config/www/tweet_images/gift.jpg",
|
||||||
|
"/config/www/tweet_images/christmas-cookies.jpg",
|
||||||
|
"/config/www/tweet_images/christmas.jpg",
|
||||||
|
"/config/www/tweet_images/christmas-tree.jpg"] | random }}
|
||||||
|
|
||||||
|
twitter_xmas_eve:
|
||||||
|
sequence:
|
||||||
|
- service: notify.twitter
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% set msg = "" %}
|
||||||
|
{% set msg = msg + " " + message %}
|
||||||
|
{% set msg = msg + " #santa #nightbeforechristmas" %}
|
||||||
|
{{ msg }}
|
||||||
|
data:
|
||||||
|
media: /config/www/tweet_images/santa.jpg
|
||||||
|
|
||||||
|
twitter_xmas_day:
|
||||||
|
sequence:
|
||||||
|
- service: notify.twitter
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% set msg = "" %}
|
||||||
|
{% set msg = msg + " " + message %}
|
||||||
|
{% set msg = msg + " #MerryChristmas " %}
|
||||||
|
{{ msg }}
|
||||||
|
data:
|
||||||
|
media: /config/www/tweet_images/merry-christmas.jpg
|
||||||
|
|
||||||
|
twitter_freezing:
|
||||||
|
sequence:
|
||||||
|
- service: notify.twitter
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% set msg = "" %}
|
||||||
|
{% set msg = msg + " " + message %}
|
||||||
|
{% set msg = msg + " #weather #smarthome " %}
|
||||||
|
{{ msg }}
|
||||||
|
data:
|
||||||
|
media: >-
|
||||||
|
{{ [ "/config/www/tweet_images/ice.jpg",
|
||||||
|
"/config/www/tweet_images/snowfall.jpg",
|
||||||
|
"/config/www/tweet_images/snowflake.jpg"] | random }}
|
||||||
|
|
||||||
|
twitter_tornado:
|
||||||
|
sequence:
|
||||||
|
- service: notify.twitter
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% set msg = "" %}
|
||||||
|
{% set msg = msg + " " + message %}
|
||||||
|
{% set msg = msg + " #weather #tornado " %}
|
||||||
|
{{ msg }}
|
||||||
|
data:
|
||||||
|
media: /config/www/tweet_images/tornado.jpg
|
||||||
|
|
||||||
|
twitter_full_moon:
|
||||||
|
sequence:
|
||||||
|
- service: notify.twitter
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% set msg = "" %}
|
||||||
|
{% set msg = msg + " " + message %}
|
||||||
|
{% set msg = msg + " #weather #tornado " %}
|
||||||
|
{{ msg }}
|
||||||
|
data:
|
||||||
|
media: /config/www/tweet_images/full_moon.jpg
|
||||||
|
|
||||||
|
twitter_severe_weather:
|
||||||
|
sequence:
|
||||||
|
- service: notify.twitter
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% set msg = "" %}
|
||||||
|
{% set msg = msg + " " + message %}
|
||||||
|
{% set msg = msg + " #weather #warning " %}
|
||||||
|
{{ msg }}
|
||||||
|
data:
|
||||||
|
media: >-
|
||||||
|
{{ [ "/config/www/tweet_images/lightning.jpg",
|
||||||
|
"/config/www/tweet_images/lightning-bolt.jpg"] | random }}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Weather Report
|
# Weather Report
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
|
@ -63,7 +63,7 @@ automation:
|
||||||
to: 'on'
|
to: 'on'
|
||||||
from: 'off'
|
from: 'off'
|
||||||
action:
|
action:
|
||||||
- service: script.twitter_notify
|
- service: script.twitter_iss
|
||||||
data_template:
|
data_template:
|
||||||
message: >-
|
message: >-
|
||||||
{{ [
|
{{ [
|
||||||
|
@ -71,10 +71,6 @@ automation:
|
||||||
"The #ISS just flew by with there are {{states.binary_sensor.iss.attributes.number_of_people_in_space}} people doing cool stuff. #Space #theycanseeourhouse",
|
"The #ISS just flew by with there are {{states.binary_sensor.iss.attributes.number_of_people_in_space}} people doing cool stuff. #Space #theycanseeourhouse",
|
||||||
"The #ISS just flew by with {{states.binary_sensor.iss.attributes.number_of_people_in_space}} people in it. #Space #theycanseeourhouse"
|
"The #ISS just flew by with {{states.binary_sensor.iss.attributes.number_of_people_in_space}} people in it. #Space #theycanseeourhouse"
|
||||||
] | random }}
|
] | random }}
|
||||||
data:
|
|
||||||
media: >-
|
|
||||||
{{ [ "/config/www/tweet_images/iss.jpg",
|
|
||||||
"/config/www/tweet_images/iss2.jpg"] | random }}
|
|
||||||
|
|
||||||
- id: iss_notification
|
- id: iss_notification
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
@ -100,12 +96,11 @@ automation:
|
||||||
to: 'full_moon'
|
to: 'full_moon'
|
||||||
action:
|
action:
|
||||||
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
||||||
- service: script.twitter_notify
|
- service: script.twitter_full_moon
|
||||||
data_template:
|
data_template:
|
||||||
message: >-
|
message: >-
|
||||||
{{ [
|
{{ [
|
||||||
"There is a Full Moon out tonight, and this time it's the actual moon and not the neighbor. ",
|
"There is a Full Moon out tonight, and this time it's the actual moon and not the neighbor. ",
|
||||||
"Hey look kids, There's the full moon. ",
|
"Hey look kids, There's the full moon. ",
|
||||||
"The moon is huge! And full. "] | random + "#Space #fullmoon"}}
|
"The moon is huge! And full. "] | random + "#Space #fullmoon"}}
|
||||||
data:
|
|
||||||
media: /config/www/tweet_images/full_moon.jpg
|
|
||||||
|
|
|
@ -81,14 +81,10 @@ automation:
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
action:
|
action:
|
||||||
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
||||||
- service: script.twitter_notify
|
- service: script.twitter_bot_info
|
||||||
data_template:
|
data_template:
|
||||||
message: >-
|
message: >-
|
||||||
"This is a good time to remind you that I am a bot powered by @home_assistant and configured by @thejeffreystone. Find my code at https://github.com/thejeffreystone/home-assistant-configuration"
|
"This is a good time to remind you that I am a bot powered by @home_assistant and configured by @thejeffreystone. Find my code at https://github.com/thejeffreystone/home-assistant-configuration"
|
||||||
data:
|
|
||||||
media: >-
|
|
||||||
'{{ [ "/config/www/tweet_images/robot1.jpg",
|
|
||||||
"/config/www/tweet_images/robot2.jpg"] | random }}'
|
|
||||||
|
|
||||||
- id: net_speed_report
|
- id: net_speed_report
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
@ -97,7 +93,7 @@ automation:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '11:15:00'
|
at: '11:15:00'
|
||||||
action:
|
action:
|
||||||
- service: script.twitter_notify
|
- service: script.twitter_speedtest
|
||||||
data_template:
|
data_template:
|
||||||
message: '{{ [ "According to my latest speed tests Anchorage House is getting
|
message: '{{ [ "According to my latest speed tests Anchorage House is getting
|
||||||
{{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }}
|
{{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }}
|
||||||
|
@ -106,10 +102,7 @@ automation:
|
||||||
Mbps up. Beat that. ", "My speed is monitored using @home_assistant and https://github.com/thejeffreystone/speedtest_to_mqtt
|
Mbps up. Beat that. ", "My speed is monitored using @home_assistant and https://github.com/thejeffreystone/speedtest_to_mqtt
|
||||||
and is {{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }}
|
and is {{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }}
|
||||||
Mbps up." ] | random }}'
|
Mbps up." ] | random }}'
|
||||||
data:
|
|
||||||
media: >-
|
|
||||||
{{ [ "/config/www/tweet_images/speed.jpg",
|
|
||||||
"/config/www/tweet_images/fiber-optic.jpg"] | random }}
|
|
||||||
|
|
||||||
- id: rex_manning_day_tweet_1
|
- id: rex_manning_day_tweet_1
|
||||||
alias: Rex Manning Day Tweet One
|
alias: Rex Manning Day Tweet One
|
||||||
|
@ -224,13 +217,6 @@ automation:
|
||||||
"Have you finished your Chistmas shopping? You only have {{states.sensor.christmas_countdown.state}} days left.",
|
"Have you finished your Chistmas shopping? You only have {{states.sensor.christmas_countdown.state}} days left.",
|
||||||
"Have you started your Chistmas shopping? You only have {{states.sensor.christmas_countdown.state}} days left."
|
"Have you started your Chistmas shopping? You only have {{states.sensor.christmas_countdown.state}} days left."
|
||||||
] | random }}'
|
] | random }}'
|
||||||
data:
|
|
||||||
media: >-
|
|
||||||
{{ [ "/config/www/tweet_images/xmas.jpg",
|
|
||||||
"/config/www/tweet_images/gift.jpg",
|
|
||||||
"/config/www/tweet_images/christmas-cookies.jpg",
|
|
||||||
"/config/www/tweet_images/christmas.jpg",
|
|
||||||
"/config/www/tweet_images/christmas-tree.jpg"] | random }}
|
|
||||||
|
|
||||||
- id: Christmas Eve Tweet
|
- id: Christmas Eve Tweet
|
||||||
alias: Christmas Eve Tweet
|
alias: Christmas Eve Tweet
|
||||||
|
@ -250,19 +236,17 @@ automation:
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
action:
|
action:
|
||||||
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
||||||
- service: script.twitter_notify
|
- service: script.twitter_xmas_eve
|
||||||
data_template:
|
data_template:
|
||||||
message: >-
|
message: >-
|
||||||
'Tomorrow is Christmas. It's practically here! Santa is coming tonight! Don't forget the cookies!'
|
'Tomorrow is Christmas. It is practically here! Santa is coming tonight! Don't forget the cookies!'
|
||||||
data:
|
|
||||||
media: /config/www/tweet_images/santa.jpg
|
|
||||||
|
|
||||||
- id: Christmas Day Tweet
|
- id: Christmas Day Tweet
|
||||||
alias: Christmas Day Tweet
|
alias: Christmas Day Tweet
|
||||||
initial_state: true
|
initial_state: true
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '13:00:00'
|
at: '04:00:00'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: calendar.holidays_in_united_states
|
entity_id: calendar.holidays_in_united_states
|
||||||
|
@ -275,12 +259,10 @@ automation:
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
action:
|
action:
|
||||||
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
||||||
- service: script.twitter_notify
|
- service: script.twitter_xmas_day
|
||||||
data_template:
|
data_template:
|
||||||
message: >-
|
message: >-
|
||||||
'From everyone at Anchorage House, Merry Christmas!'
|
'From everyone at Anchorage House, Merry Christmas!'
|
||||||
data:
|
|
||||||
media: /config/www/tweet_images/merry-christmas.jpg
|
|
||||||
|
|
||||||
- id: Freeze Warning Tweet
|
- id: Freeze Warning Tweet
|
||||||
alias: Freeze Warning Tweet
|
alias: Freeze Warning Tweet
|
||||||
|
@ -294,14 +276,10 @@ automation:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
||||||
- service: script.twitter_notify
|
- service: script.twitter_freezing
|
||||||
data_template:
|
data_template:
|
||||||
message: '{{ [ "Appears that the temperature will be below freezing soon. I think I will stay inside.",
|
message: '{{ [ "Appears that the temperature will be below freezing soon. I think I will stay inside.",
|
||||||
"The forecasted temperature may kill sensative plants, so I will let the house know. I cannot through inaction allow another to come to harm.",
|
"The forecasted temperature may kill sensative plants, so I will let the house know. I cannot through inaction allow another to come to harm.",
|
||||||
"Winter is coming. Actually it is already here. I suggest sleeping with Dragon Glass.",
|
"Winter is coming. Actually it is already here. I suggest sleeping with Dragon Glass.",
|
||||||
"When the temperature is forcasted to get near freezing, or the NWS issues a Freeze Warning I make sure the residents of Anchorage House know." ] | random }}'
|
"When the temperature is forcasted to get near freezing, or the NWS issues a Freeze Warning I make sure the residents of Anchorage House know." ] | random }}'
|
||||||
data:
|
|
||||||
media: >-
|
|
||||||
{{ [ "/config/www/tweet_images/ice.jpg",
|
|
||||||
"/config/www/tweet_images/snowfall.jpg",
|
|
||||||
"/config/www/tweet_images/snowflake.jpg"] | random }}
|
|
|
@ -140,11 +140,11 @@ automation:
|
||||||
{% else %}
|
{% else %}
|
||||||
The National Weather Service Has issued a {{ states.sensor.nws_alerts.attributes.spoken_desc.split('\n\n-\n\n')[0] }}
|
The National Weather Service Has issued a {{ states.sensor.nws_alerts.attributes.spoken_desc.split('\n\n-\n\n')[0] }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: script.twitter_notify
|
- service: script.twitter_severe_weather
|
||||||
data_template:
|
data_template:
|
||||||
message: '{{ [ "Anchorage House is battening down the hatches. Servere Weather is imminent. ",
|
message: '{{ [ "Anchorage House is battening down the hatches. Servere Weather is imminent. ",
|
||||||
"The weather outside is getting intense, so I just made a weather announcement.",
|
"The weather outside is getting intense, so I just made a weather announcement.",
|
||||||
"Anchorage House monitors the NWS using #HomeAssistant just for these occasions. Thanks for the heads up @NWSAtlanta " ] | random }}'
|
"Anchorage House monitors the NWS for severe weather using #HomeAssistant just for these occasions. Thanks for the heads up @NWSAtlanta " ] | random }}'
|
||||||
- delay: '00:00:15'
|
- delay: '00:00:15'
|
||||||
- service: script.ah_report
|
- service: script.ah_report
|
||||||
data_template:
|
data_template:
|
||||||
|
@ -179,13 +179,12 @@ automation:
|
||||||
- service: script.jarvis_alert
|
- service: script.jarvis_alert
|
||||||
data_template:
|
data_template:
|
||||||
message: "Attention!,,,Attention!,,,The National Weather Service Has issued a Tornado Warning for our area."
|
message: "Attention!,,,Attention!,,,The National Weather Service Has issued a Tornado Warning for our area."
|
||||||
- service: script.twitter_notify
|
- service: script.twitter_tornado
|
||||||
data_template:
|
data_template:
|
||||||
message: '{{ [ "NWS is sounding the Tornado alarm, so I am too. Anchorage House is taking cover. ",
|
message: '{{ [ "NWS is sounding the Tornado alarm, so I am too. Anchorage House is taking cover. ",
|
||||||
"Anchorage House is heading to the closet because the NWS just issued a tornado warning for our area.",
|
"Anchorage House is heading to the closet because the NWS just issued a tornado warning for our area.",
|
||||||
"I just activated the internal Tornado Alarm at the request of the NWS. Thanks for the heads up @NWSAtlanta " ] | random }}'
|
"I just activated the internal Tornado Alarm at the request of the NWS. Thanks for the heads up @NWSAtlanta " ] | random }}'
|
||||||
data:
|
|
||||||
media: /config/www/tweet_images/tornado.jpg
|
|
||||||
- delay: '00:00:15'
|
- delay: '00:00:15'
|
||||||
- service: script.jarvis_alert
|
- service: script.jarvis_alert
|
||||||
data_template:
|
data_template:
|
||||||
|
|
Loading…
Reference in New Issue