Moving some twitter and weather automations to the respective packages

This commit is contained in:
Jeffrey Stone 2019-07-23 09:41:45 -04:00
parent dd5315519f
commit 55e29a4743
3 changed files with 28 additions and 41 deletions

View File

@ -84,28 +84,13 @@
intitiated a backup of my critical data. ", "With @home_assistant and the intitiated a backup of my critical data. ", "With @home_assistant and the
#dropbox component it is easy to backup your important config files. Lets #dropbox component it is easy to backup your important config files. Lets
do this thing! " ] | random }}' do this thing! " ] | random }}'
- id: net_speed_report
initial_state: true - id: coffee_time
alias: Network Speed Report alias: Coffee Time
trigger:
- platform: time
at: '11:15:00'
action:
- service: script.twitter_notify
data_template:
message: '{{ [ "According to my latest speed tests Anchorage House is getting
{{ states.sensor.network_down.state}} Mbps down and {{ states.sensor.network_up.state}}
Mbps up thanks to #ATTFiber. ", "How fast is your internet? I just checked
am Im seeing {{ states.sensor.network_down.state}} Mbps down and {{ states.sensor.network_up.state}}
Mbps up. Beat that. ", "My speed is monitored using @home_assistant and https://github.com/thejeffreystone/speedtest_to_mqtt
and is {{ states.sensor.network_down.state}} Mbps down and {{ states.sensor.network_up.state}}
Mbps up." ] | random }}'
- id: coffee_time_workday
alias: Coffee Time Workday
initial_state: true initial_state: true
trigger: trigger:
- platform: time platform: template
at: 05:15:00 value_template: "{{ states('sensor.time') == (state_attr('input_datetime.coffee_time', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
condition: condition:
condition: state condition: state
entity_id: binary_sensor.workday_sensor entity_id: binary_sensor.workday_sensor
@ -115,25 +100,9 @@
entity_id: scene.diminshed_livingroom_lighting entity_id: scene.diminshed_livingroom_lighting
- service: scene.turn_on - service: scene.turn_on
entity_id: scene.diminished_kitchen_lighting entity_id: scene.diminished_kitchen_lighting
- id: coffee_time_holiday
alias: Coffee Time Holiday - id: good_morning
initial_state: true alias: Good Morning
trigger:
- platform: time
at: 07:30:00
condition:
condition: state
entity_id: binary_sensor.workday_sensor
state: 'off'
action:
- service: scene.turn_on
entity_id: scene.diminshed_livingroom_lighting
- service: scene.turn_on
entity_id: scene.diminished_kitchen_lighting
- service: switch.turn_off
entity_id: switch.rainbow_light_3
- id: good_morning_workday
alias: Good Morning Workday
initial_state: true initial_state: true
trigger: trigger:
- platform: time - platform: time
@ -157,6 +126,7 @@
"Good Morning from Anchorage House. Glad to see everyone made it. ", "Birds "Good Morning from Anchorage House. Glad to see everyone made it. ", "Birds
are awake, and so is Anchorage House. Good morning everyone! " ] | random are awake, and so is Anchorage House. Good morning everyone! " ] | random
}}' }}'
- id: skylar_bedtime - id: skylar_bedtime
alias: Skylar Bedtime alias: Skylar Bedtime
initial_state: true initial_state: true

View File

@ -73,6 +73,23 @@ automation:
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"
- id: net_speed_report
initial_state: true
alias: Network Speed Report
trigger:
- platform: time
at: '11:15:00'
action:
- service: script.twitter_notify
data_template:
message: '{{ [ "According to my latest speed tests Anchorage House is getting
{{ states.sensor.internet_test_down_mean.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up_mean.attributes.max_value }}
Mbps up thanks to #ATTFiber. ", "How fast is your internet? I just checked
am Im seeing {{ states.sensor.internet_test_down_mean.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up_mean.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_mean.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up_mean.attributes.max_value }}
Mbps up." ] | 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

View File

@ -200,7 +200,7 @@ automation:
to: 'on' to: 'on'
action: action:
- service: media_player.play_media - service: media_player.play_media
entity_id: media_player.hass_speaker entity_id: media_player.guest_tv
data: data:
media_content_id: /media/audio/Tornado_Siren.mp3 media_content_id: /media/audio/Tornado_Siren.mp3
media_content_type: "music" media_content_type: "music"
@ -215,7 +215,7 @@ automation:
action: action:
- service: media_player.media_stop - service: media_player.media_stop
entity_id: media_player.hass_speaker entity_id: media_player.guest_tv
script: script: