diff --git a/config/packages/twitter.yaml b/config/packages/twitter.yaml index 8891563..f6d1dc2 100755 --- a/config/packages/twitter.yaml +++ b/config/packages/twitter.yaml @@ -2,7 +2,7 @@ # @author : Jeffrey Stone # @date : 07/15/2019 # @package : Twitter -# @description : Just some tweet stuff - @anchoragehouse2 +# @description : Just the tweet stuff - @anchoragehouse2 ############################################################################### automation: @@ -433,10 +433,14 @@ automation: # who: "jeff" # 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." + #- 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 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 alias: New HA Notification initial_state: true diff --git a/config/templates/twitter_selfpromos.yaml b/config/templates/twitter_selfpromos.yaml index 474f28e..9f5e235 100755 --- a/config/templates/twitter_selfpromos.yaml +++ b/config/templates/twitter_selfpromos.yaml @@ -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", "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/", - "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/", "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 -}} diff --git a/config/templates/twitter_stats.yaml b/config/templates/twitter_stats.yaml index 5b314d6..35e0ecb 100755 --- a/config/templates/twitter_stats.yaml +++ b/config/templates/twitter_stats.yaml @@ -16,7 +16,7 @@ "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_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.", "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.",