diff --git a/config/packages/notify.yaml b/config/packages/notify.yaml index 0c3dc8b..205bc5e 100755 --- a/config/packages/notify.yaml +++ b/config/packages/notify.yaml @@ -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 diff --git a/config/templates/twitter_stats.yaml b/config/templates/twitter_stats.yaml index 51e4d15..39da96d 100755 --- a/config/templates/twitter_stats.yaml +++ b/config/templates/twitter_stats.yaml @@ -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 #}