Dont need the shell commands right now

This commit is contained in:
Jeffrey Stone
2019-11-13 20:53:43 -05:00
parent 979219dbc0
commit 54dc4c4d58
6 changed files with 82 additions and 87 deletions

View File

@@ -81,10 +81,13 @@ automation:
{%- endif -%}
action:
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
- service: script.twitter_bot_info
- service: script.twitter_notify_image
data_template:
message: >-
tweet: >-
"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"
image: >-
"{{ [ "/config/www/tweet_images/robot1.jpg",
"/config/www/tweet_images/robot2.jpg"] | random }}"
- id: net_speed_report
initial_state: true
@@ -93,16 +96,18 @@ automation:
- platform: time
at: '11:15:00'
action:
- service: script.twitter_speedtest
- service: script.twitter_notify_image
data_template:
message: '{{ [ "According to my latest speed tests Anchorage House is getting
tweet: '{{ [ "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 }}
Mbps up thanks to #ATTFiber. ", "How fast is your internet? I just checked
am Im seeing {{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }}
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 }}
Mbps up." ] | random }}'
image: >-
{{ [ "/config/www/tweet_images/speed.jpg",
"/config/www/tweet_images/fiber-optic.jpg"] | random }}
- id: rex_manning_day_tweet_1
alias: Rex Manning Day Tweet One
@@ -205,9 +210,9 @@ automation:
{%- endif -%}
action:
- 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_notify_image
data_template:
message: '{{ [ "There are only {{states.sensor.christmas_countdown.state}} days until Christmas.",
tweet: '{{ [ "There are only {{states.sensor.christmas_countdown.state}} days until Christmas.",
"Christmas is only {{states.sensor.christmas_countdown.state}} days away. It might not be enough time. ",
"Santa is coming. {{states.sensor.christmas_countdown.state}} days and counting until he is here.",
"Only {{states.sensor.christmas_countdown.state}} days until Christmas.",
@@ -217,6 +222,12 @@ automation:
"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."
] | random }}'
image: >-
{{ [ "/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
alias: Christmas Eve Tweet
@@ -236,10 +247,12 @@ automation:
{%- endif -%}
action:
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
- service: script.twitter_xmas_eve
- service: script.twitter_notify_image
data_template:
message: >-
tweet: >-
'Tomorrow is Christmas. It is practically here! Santa is coming tonight! Don't forget the cookies!'
image: >-
"/config/www/tweet_images/santa.jpg"
- id: Christmas Day Tweet
alias: Christmas Day Tweet
@@ -259,10 +272,12 @@ automation:
{%- endif -%}
action:
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
- service: script.twitter_xmas_day
- service: script.twitter_notify_image
data_template:
message: >-
'From everyone at Anchorage House, Merry Christmas!'
tweet: >-
"From everyone at Anchorage House, Merry Christmas!"
image: >-
"/config/www/tweet_images/merry-christmas.jpg"
- id: Freeze Warning Tweet
alias: Freeze Warning Tweet
@@ -276,10 +291,13 @@ automation:
state: 'on'
action:
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
- service: script.twitter_freezing
- service: script.twitter_notify_image
data_template:
message: '{{ [ "Appears that the temperature will be below freezing soon. I think I will stay inside.",
tweet: '{{ [ "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.",
"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 }}'
image: >-
{{ [ "/config/www/tweet_images/ice.jpg",
"/config/www/tweet_images/snowfall.jpg",
"/config/www/tweet_images/snowflake.jpg"] | random }}