Added some new stat tweets

This commit is contained in:
Jeffrey Stone 2019-11-10 22:45:04 -05:00
parent 80cdd4144d
commit 2ad4de892b
2 changed files with 8 additions and 3 deletions

View File

@ -1004,13 +1004,18 @@ script:
data_template:
message: !include ../templates/twitter_snark.yaml
twitter_stats:
sequence:
- service: notify.twitter
data_template:
message: !include ../templates/twitter_stats.yaml
twitter_promos:
sequence:
- service: notify.twitter
data_template:
message: !include ../templates/twitter_promos.yaml
twitter_github:
sequence:
- service: notify.twitter

View File

@ -10,11 +10,11 @@
"I am running Home Assistant version {{ states.sensor.installed_version.state }} (https://github.com/thejeffreystone/home-assistant-configuration)"
"My configuration is at https://github.com/thejeffreystone/home-assistant-configuration and currently has {{ states.sensor.home_assistant_configuration.attributes.stargazers}} stargazers. You could be one too.",
"My configuration is at https://github.com/thejeffreystone/home-assistant-configuration .The last commit was {{ states.sensor.home_assistant_configuration.attributes.latest_commit_message}}.",
"You can watch videos about how I came to be and all the cool things I'm learning to do at https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg "
"The average temperature inside Anchorage House is {{states.sensor.inside_temp_stats.attributes.mean | round}} degrees fahrenheit"
] | random -}}
{%- endmacro -%}
{%- macro getTags() -%}
#homeassistant #iot #smarthome
#homeassistant #iot #smarthome #stats
{%- endmacro -%}
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}