Twerking the Tweets

This commit is contained in:
Jeffrey Stone 2020-04-24 14:35:00 -04:00
parent a582de7eed
commit 6675289fdb
3 changed files with 9 additions and 5 deletions

View File

@ -2,7 +2,7 @@
# @author : Jeffrey Stone # @author : Jeffrey Stone
# @date : 07/15/2019 # @date : 07/15/2019
# @package : Twitter # @package : Twitter
# @description : Just some tweet stuff - @anchoragehouse2 # @description : Just the tweet stuff - @anchoragehouse2
############################################################################### ###############################################################################
automation: automation:
@ -433,9 +433,13 @@ automation:
# who: "jeff" # who: "jeff"
# title: "Covid-19 Update" # title: "Covid-19 Update"
# message: "Yesterday in the US there was {{ states.sensor.covid_pv_new_cases.state }} new cases of COVID-19 reported and {{ states.sensor.covid_pv_new_dead.state }} more deaths. We now have a total of {{ states.sensor.covid_pv_confirmed.state }} people that have been infected and {{ states.sensor.covid_pv_dead.state }} that have died. So far {{ states.sensor.covid_pv_recovered.state }} have recovered, but {{ states.sensor.covid_pv_critical.state }} are in critical condition." # message: "Yesterday in the US there was {{ states.sensor.covid_pv_new_cases.state }} new cases of COVID-19 reported and {{ states.sensor.covid_pv_new_dead.state }} more deaths. We now have a total of {{ states.sensor.covid_pv_confirmed.state }} people that have been infected and {{ states.sensor.covid_pv_dead.state }} that have died. So far {{ states.sensor.covid_pv_recovered.state }} have recovered, but {{ states.sensor.covid_pv_critical.state }} are in critical condition."
#- service: script.twitter_notify
# data_template:
# message: "Yesterday in the US there were {{ states.sensor.covid_pv_new_cases.state }} new cases of COVID-19 reported and {{ states.sensor.covid_pv_new_dead.state }} more deaths. We now have a total of {{ states.sensor.covid_pv_confirmed.state }} people that have been infected and {{ states.sensor.covid_pv_dead.state }} that have died. So far {{ states.sensor.covid_pv_recovered.state }} have recovered, but {{ states.sensor.covid_pv_critical.state }} are in critical condition. #worldometers"
- service: script.twitter_notify - service: script.twitter_notify
data_template: data_template:
message: "Yesterday in the US there were {{ states.sensor.covid_pv_new_cases.state }} new cases of COVID-19 reported and {{ states.sensor.covid_pv_new_dead.state }} more deaths. We now have a total of {{ states.sensor.covid_pv_confirmed.state }} people that have been infected and {{ states.sensor.covid_pv_dead.state }} that have died. So far {{ states.sensor.covid_pv_recovered.state }} have recovered, but {{ states.sensor.covid_pv_critical.state }} are in critical condition. #worldometers" message: >-
COVID-19 Stats for yesterday in the US: New Infections: {{ states.sensor.covid_pv_new_cases.state }} (Daily Change:{{ (((states.sensor.covid_pv_new_cases.state |replace(",", "") | int - states.sensor.covid_old_new_count.state |replace(",", "") | int) / states.sensor.covid_pv_new_cases.state |replace(",", "") | int * 100) | round)}}%) | New Deaths: {{ states.sensor.covid_pv_new_dead.state}} (Daily Change:{{ (((states.sensor.covid_pv_new_dead.state |replace(",", "") | int - states.sensor.covid_old_dead_count.state |replace(",", "") | int) / states.sensor.covid_pv_new_dead.state |replace(",", "") | int * 100) | round)}}%) | Total Cases: {{ states.sensor.covid_pv_confirmed.state }} | Total Dead:{{ states.sensor.covid_pv_dead.state }} | Total Recovered: {{ states.sensor.covid_pv_recovered.state }} ({{ ((states.sensor.covid_pv_recovered.state |replace(",", "") | int / states.sensor.covid_pv_confirmed.state |replace(",", "") | int) * 100) | round }}%)| Critical Cases: {{ states.sensor.covid_pv_critical.state }}
- id: new_ha_notification - id: new_ha_notification
alias: New HA Notification alias: New HA Notification

View File

@ -12,7 +12,7 @@
"Be sure to follow along at https://jeffreystone.net so you can keep up today with the latest updates to my Home Asissitant Configuration", "Be sure to follow along at https://jeffreystone.net so you can keep up today with the latest updates to my Home Asissitant Configuration",
"I created dog mode for when I dont want to disarm my security system but the dog needs to go out -> https://jeffreystone.net/2020/04/14/where-we-are-going-we-need-dog-mode/", "I created dog mode for when I dont want to disarm my security system but the dog needs to go out -> https://jeffreystone.net/2020/04/14/where-we-are-going-we-need-dog-mode/",
"I built a security system using #homeassistant and you can too. Start the two part series at https://jeffreystone.net/2020/04/10/how-i-secured-my-home-using-home-assistant-part-one/", "I built a security system using #homeassistant and you can too. Start the two part series at https://jeffreystone.net/2020/04/10/how-i-secured-my-home-using-home-assistant-part-one/",
"My #homeassistant security system is some good at recognizing threats it disarms itself. Learn how at https://jeffreystone.net/2020/04/10/how-i-secured-my-home-using-home-assistant-part-one/", "My #homeassistant security system is so good at recognizing threats it disarms itself. Learn how at https://jeffreystone.net/2020/04/10/how-i-secured-my-home-using-home-assistant-part-one/",
"Want to know how I was migrated from Hassbian to Home Assistant? Now you can at https://jeffreystone.net/2020/04/05/migrating-from-hassbian-to-hassio/", "Want to know how I was migrated from Hassbian to Home Assistant? Now you can at https://jeffreystone.net/2020/04/05/migrating-from-hassbian-to-hassio/",
"Did you see the post about how I can turn into Disney's Haunted Mansion on command using #home_assistant? Visit https://jeffreystone.net/2020/04/04/how-i-turned-my-anchorage-house-into-disneys-haunted-mansion-using-home-assistant/ #homemadedisney" "Did you see the post about how I can turn into Disney's Haunted Mansion on command using #home_assistant? Visit https://jeffreystone.net/2020/04/04/how-i-turned-my-anchorage-house-into-disneys-haunted-mansion-using-home-assistant/ #homemadedisney"
] | random -}} ] | random -}}

View File

@ -16,7 +16,7 @@
"The average temperature in the garage is {{states.sensor.garage_temp_stats.attributes.mean | round}} degrees fahrenheit.", "The average temperature in the garage is {{states.sensor.garage_temp_stats.attributes.mean | round}} degrees fahrenheit.",
"The HVAC has cooled the house for {{states.sensor.cooling_last_month.attributes.value}} and heated for {{states.sensor.heating_last_month.attributes.value}} in the last month", "The HVAC has cooled the house for {{states.sensor.cooling_last_month.attributes.value}} and heated for {{states.sensor.heating_last_month.attributes.value}} in the last month",
"The HVAC has cooled the house for {{states.sensor.cooling_last_day.attributes.value}} and heated for {{states.sensor.heating_last_day.attributes.value}} in the last 24 hours", "The HVAC has cooled the house for {{states.sensor.cooling_last_day.attributes.value}} and heated for {{states.sensor.heating_last_day.attributes.value}} in the last 24 hours",
"Anchorage House averages {{ states.sensor.humidity_stats.attributes.mean | round}}% Humidity.", "Anchorage House averages {{ states.sensor.humidity_stats.attributes.mean | round}}% Humidity outside.",
"On Average, Ancohrage House has {{states.sensor.visibility_stats.attributes.mean | round}} miles of visability.", "On Average, Ancohrage House has {{states.sensor.visibility_stats.attributes.mean | round}} miles of visability.",
"The wind blows an average of {{ states.sensor.wind_speed_stats.attributes.mean | round}} mph here at Anchorage House.", "The wind blows an average of {{ states.sensor.wind_speed_stats.attributes.mean | round}} mph here at Anchorage House.",
"The Washing Machine uses an an average of {{ states.sensor.washer_power_stats.attributes.mean | round}} watts here at Anchorage House.", "The Washing Machine uses an an average of {{ states.sensor.washer_power_stats.attributes.mean | round}} watts here at Anchorage House.",