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

@ -426,9 +426,9 @@ automation:
script:
kill_hurry_back:
sequence:
- service: shell_command.alarm_off
# kill_hurry_back:
# sequence:
# - service: shell_command.alarm_off
hurry_back_short:
sequence:
- condition: state
@ -472,55 +472,6 @@ script:
data:
entity_id: scene.haunted_preshow
# ##############################################
# # Haunted Mansion Show
# haunted_mansion_start:
# sequence:
# - condition: state
# entity_id: input_boolean.audible_notifications
# state: 'on'
# - condition: state
# entity_id: sensor.family_status
# state: Home
# - service: shell_command.normal_vol
# - service: shell_command.haunted_mansion_preshow_full
# - service: light.turn_on
# entity_id: group.rgb_lr
# data:
# rgb_color: [255,255,255]
# - delay: 00:01:06
# - service: light.turn_on
# entity_id: group.rgb_lr
# data:
# rgb_color: [73,119,255]
# - delay: 00:00:15
# - service: light.turn_on
# entity_id: group.rgb_lr
# data:
# brightness_pct: 25
# - delay: 00:00:37
# - service: switch.turn_on
# entity_id: switch.rail_lights
# - service: switch.turn_off
# entity_id: switch.rail_lights
# - delay: 00:00:02
# - service: scene.turn_on
# data:
# entity_id: scene.haunted_lights_out
# - service: switch.turn_on
# entity_id: switch.rail_lights
# - service: switch.turn_off
# entity_id: switch.rail_lights
# - delay: 00:00:10
# - service: light.turn_on
# entity_id: group.rgb_lr
# data:
# rgb_color: [255,255,255]
# brightness_pct: 25
# - delay:
# seconds: 160
# ###############################################
kill_haunted_mansion:
sequence:
- service: shell_command.alarm_off
@ -560,8 +511,8 @@ script:
sequence:
- service: media_player.media_stop
entity_id: media_player.theater
- service: shell_command.alarm_off
- service: shell_command.vlc_off
# - service: shell_command.alarm_off
# - service: shell_command.vlc_off
- service: script.turn_off
data:
entity_id: script.haunted_preshow
@ -619,9 +570,9 @@ script:
entity_id: script.this_is_halloween
- service: script.turn_off
entity_id: script.sleepy_hollow_readalong
- service: shell_command.normal_vol
- service: switch.turn_off
entity_id: switch.ha_speaker
# - service: shell_command.normal_vol
# - service: switch.turn_off
# entity_id: switch.ha_speaker
- service: script.reset_show_inputs
reset_show_inputs:

View File

@ -1038,6 +1038,17 @@ script:
{% set msg = msg + " #iot #smarthome" %}
{{ msg }}
twitter_notify_image:
sequence:
- service: notify.twitter
data_template:
message: >-
{{ tweet }} #iot #smarthome
data:
media: >-
{{ image }}
twitter_snark:
sequence:
- service: notify.twitter
@ -1046,11 +1057,10 @@ script:
twitter_stats:
sequence:
- service: notify.twitter
- service: notify.twitter_notify_image
data_template:
message: !include ../templates/twitter_stats.yaml
data:
media: >-
tweet: !include ../templates/twitter_stats.yaml
image: >-
{{ [ "/config/www/tweet_images/cloud.jpg",
"/config/www/tweet_images/laptop.jpg",
"/config/www/tweet_images/smart-home.jpg",

View File

@ -63,14 +63,17 @@ automation:
to: 'on'
from: 'off'
action:
- service: script.twitter_iss
- service: script.twitter_notify_image
data_template:
message: >-
tweet: >-
{{ [
"The #ISS is passing over. Wave. #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"
] | random }}
image: >-
{{ [ "/config/www/tweet_images/iss.jpg",
"/config/www/tweet_images/iss2.jpg"] | random }}
- id: iss_notification
initial_state: true
@ -96,11 +99,12 @@ automation:
to: 'full_moon'
action:
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
- service: script.twitter_full_moon
- service: script.twitter_notify_image
data_template:
message: >-
tweet: >-
{{ [
"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. ",
"The moon is huge! And full. "] | random + "#Space #fullmoon"}}
image: >-
"/config/www/tweet_images/full_moon.jpg"

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 }}

View File

@ -67,6 +67,14 @@ automation:
# attachment:
# url: "{{ states.camera.usps_mail_pictures.attributes.entity_picture }}"
# content-type: jpg
- service: script.twitter_notify
data_template:
message: >-
'{{ [
"I just let Anchorage House know how much mail the USPS is leaving in the mailbox today. For the code checkout https://github.com/thejeffreystone/usps2mqtt #automation",
"One of the things I know is how much mail is being delivered because I am integrated with USPS Informed Delivery using https://github.com/thejeffreystone/usps2mqtt #automation.",
"Neither snow nor rain nor heat nor gloom of night prevents me from letting Anchorage House know what to expect from the USPS thanks to https://github.com/thejeffreystone/usps2mqtt #automation."
] | random }}'
# Notify USPS packages via TTS. Usually there are no pictures for packages
###############################################################################

View File

@ -140,11 +140,14 @@ automation:
{% else %}
The National Weather Service Has issued a {{ states.sensor.nws_alerts.attributes.spoken_desc.split('\n\n-\n\n')[0] }}
{% endif %}
- service: script.twitter_severe_weather
- service: script.twitter_notify_image
data_template:
message: '{{ [ "Anchorage House is battening down the hatches. Servere Weather is imminent. ",
tweet: '{{ [ "Anchorage House is battening down the hatches. Servere Weather is imminent. ",
"The weather outside is getting intense, so I just made a weather announcement.",
"Anchorage House monitors the NWS for severe weather using #HomeAssistant just for these occasions. Thanks for the heads up @NWSAtlanta " ] | random }}'
image: >-
{{ [ "/config/www/tweet_images/lightning.jpg",
"/config/www/tweet_images/lightning-bolt.jpg"] | random }}
- delay: '00:00:15'
- service: script.ah_report
data_template:
@ -179,12 +182,13 @@ automation:
- service: script.jarvis_alert
data_template:
message: "Attention!,,,Attention!,,,The National Weather Service Has issued a Tornado Warning for our area."
- service: script.twitter_tornado
- service: script.twitter_notify_image
data_template:
message: '{{ [ "NWS is sounding the Tornado alarm, so I am too. Anchorage House is taking cover. ",
tweet: '{{ [ "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.",
"I just activated the internal Tornado Alarm at the request of the NWS. Thanks for the heads up @NWSAtlanta " ] | random }}'
image: >-
"/config/www/tweet_images/tornado.jpg"
- delay: '00:00:15'
- service: script.jarvis_alert
data_template:
@ -301,4 +305,4 @@ script:
entity_id: media_player.theater
data:
media_content_id: http://192.168.7.40/audio/tornado_alarm.mp3
media_content_type: "music"
media_content_type: "music"