diff --git a/config/templates/twitter_follow_me.yaml b/config/templates/twitter_follow_me.yaml new file mode 100755 index 0000000..423d056 --- /dev/null +++ b/config/templates/twitter_follow_me.yaml @@ -0,0 +1,31 @@ +> + {# Twitter Self Promos #} + {%- macro getRandomPromo() -%} + {{- [ + "Be sure to Star My #homeassistant Github Repo -> https://github.com/thejeffreystone/home-assistant-configuration so you can stay up to date with changes to my config. ", + "Follow my #homeassistant Github repo and you could be one of the {{ states.sensor.home_assistant_configuration.attributes.stargazers}} people currently following everything that happens in realtime. ", + "Be sure to subscribe to my Youtube channel https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg for videos on #homeassistant and building a smart home. ", + "Be sure you follow my other accounts on Twitter @thejeffreystone @slackerlabs for #homeassistant content ", + "If you haven not already, checkout my blog at https://slacker-labs.com for articles om Home Automation and Smart Home tech and #homeassistant ", + "Be sure to follow along at https://slacker-labs.com so you can keep up today with the latest #homeassistant how-tows, reviews, and join the conversation. ", + "Do you want your house to be a #smarthome? It is easy. Install #homeassistant, and add some config files like https://github.com/thejeffreystone/home-assistant-configuration " + ] | random -}} + {%- endmacro -%} + {%- macro getTags() -%} + #homeautomation + {%- endmacro -%} + + {# a macro that removes all newline characters, empty spaces, and returns formatted text #} + {%- macro cleanup(data) -%} + {%- for item in data.split("\n") if item | trim != "" -%} + {{ item | trim }} {% endfor -%} + {%- endmacro -%} + + {# a macro to call all macros :) #} + {%- macro mother_of_all_macros() -%} + {{ getRandomPromo() }} + {{ getTags() }} + {%- endmacro -%} + + {# Call the macro #} + {{- cleanup(mother_of_all_macros()) -}} \ No newline at end of file diff --git a/config/templates/twitter_great_content.yaml b/config/templates/twitter_great_content.yaml index 904e253..feaad55 100755 --- a/config/templates/twitter_great_content.yaml +++ b/config/templates/twitter_great_content.yaml @@ -1,17 +1,16 @@ - > +> {# Twitter Great Content #} {%- macro getRandomPromo() -%} {{- [ - "Want to get YouTube Certified in Home Assistant? @ccostan has the courses to get you there. Subscribe at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ", - "Checkout one of my favorite Home Assistant Youtubers @ccostan at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ", - "Don't miss @Dr_Zzs next live stream and besure to follow him on Youtube at https://www.youtube.com/channel/UC7G4tLa4Kt6A9e3hJ-HO8ng ", - "Looking for some great Home Assistant content? @JuanMTech has you covered. Subscribe at https://www.youtube.com/user/Jfelipe83M ", - "Want some Home Assistant and Home Automation content? @hasscasts has what you want at https://hasscasts.com", - "Need some How-To's to juice up your Home Assistant skills? @juanMTech has something for everyone at https://www.juanmtech.com" - ] | random -}} + "Want to get YouTube Certified in Home Assistant? @ccostan has the courses to get you there. Subscribe at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ", + "Checkout one of my favorite Home Assistant Youtubers @ccostan at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ", + "Don't miss @Dr_Zzs next live stream and besure to follow him on Youtube at https://www.youtube.com/channel/UC7G4tLa4Kt6A9e3hJ-HO8ng ", + "Looking for some great Home Assistant content? @JuanMTech has you covered. Subscribe at https://www.youtube.com/user/Jfelipe83M ", + "Need some How-To's to juice up your Home Assistant skills? @juanMTech has something for everyone at https://www.juanmtech.com" + ] | random -}} {%- endmacro -%} {%- macro getTags() -%} - #homeassistant #youcandoit #spreadtheword #givingback + #homeassistant #youcandoit #givingback {%- endmacro -%} {# a macro that removes all newline characters, empty spaces, and returns formatted text #} @@ -19,7 +18,7 @@ {%- for item in data.split("\n") if item | trim != "" -%} {{ item | trim }} {% endfor -%} {%- endmacro -%} - + {# a macro to call all macros :) #} {%- macro mother_of_all_macros() -%} {{ getRandomPromo() }} diff --git a/config/templates/twitter_promos.yaml b/config/templates/twitter_promos.yaml index c13f19d..f295482 100755 --- a/config/templates/twitter_promos.yaml +++ b/config/templates/twitter_promos.yaml @@ -12,18 +12,17 @@ {%- endmacro -%} {%- macro getRandomLead() -%} {{- [ - "All you need is #home_assistant, and these config files ->‏", - "Just grab @home_assistant and checkout ", - "Just grab #home_assistant and for inspiration checkout ", - "It is easy. Install #home_assistant, and add some config files like ", - "You can't go wrong with #home_assistant. For an example of what you can do checkout " + "All you need is #homeassistant, and these config files ->‏", + "Just grab #homeassistant and checkout ", + "Just grab #homeassistant and for inspiration checkout ", + "It is easy. Install #homeassistant, and add some config files like ", + "You can't go wrong with #homeassistant. For an example of what you can do checkout " ] | random -}} {%- endmacro -%} {%- macro getRandomPromo() -%} {{- [ "https://github.com/CCOSTAN/Home-AssistantConfig#logo cc: @ccostan ‏", "https://github.com/skalavala/mysmarthome ", - "https://github.com/thejeffreystone/home-assistant-configuration cc: @thejeffreystone ", "https://github.com/arsaboo/homeassistant-config ", "https://github.com/Vasiley/Home-Assistant-Main ", "https://github.com/JamesMcCarthy79/Home-Assistant-Config ", @@ -33,7 +32,7 @@ ] | random -}} {%- endmacro -%} {%- macro getTags() -%} - #homeassistant #youcandoit #spreadtheword #givingback + #homeautomation #youcandoit #givingback {%- endmacro -%} {# a macro that removes all newline characters, empty spaces, and returns formatted text #} diff --git a/config/templates/twitter_recent_content.yaml b/config/templates/twitter_recent_content.yaml new file mode 100755 index 0000000..ed8e3b9 --- /dev/null +++ b/config/templates/twitter_recent_content.yaml @@ -0,0 +1,35 @@ +> + {# Twitter Self Promos #} + {%- macro getRandomPromo() -%} + {{- [ + "Use #homeassistant to build a haunted house -> https://youtu.be/3dsUEsu3Evo ", + "Randomize #homeassistant automations to keep people guessing what will happen next. Like in a Haunted House -> https://youtu.be/3dsUEsu3Evo", + "Did you you know you can use scripts to build smarter #homeassistan automations? I walk you through it -> https://slacker-labs.com/2020/10/23/build-smarter-automations-in-home-assistant/ ", + "ICYMI: Build smarter #homeassistant automations using scripts -> https://youtu.be/RIGQy8ZmEf4 ", + "If you are running #homeassistant on a Raspbery Pi3 the Raspberry Pi4 is a big improvement. Learn how to migrate everything over and not loose anything at https://slacker-labs.com/2020/08/26/migrating-home-assistant-from-raspberry-pi3-to-a-raspberry-pi4/ ", + "Did you see the article about how I can turn into Disney's Haunted Mansion on command using #homeassistant? Visit https://slacker-labs.com/2020/04/04/how-i-turned-my-anchorage-house-into-disneys-haunted-mansion-using-home-assistant/ #homemadedisney ", + "ICYMI: How I set up presence detection in #homeassistant -> https://youtu.be/1J776MtLuH4 ", + "Presence Detection is critical to a smart home. Follow along how I used four #homeassistant integrations to nail it -> https://slacker-labs.com/2020/11/12/how-i-set-up-presence-detection-in-home-assistant/ ", + "#homeassistant automation modes give you a lot more control. Learn how to use them to improve your automation flow -> https://slacker-labs.com/2020/11/21/how-to-use-modes-in-home-assistant-automations/ ", + "ICYMI: Use the #homeassistant automation modes to automate the boring stuff -> https://youtu.be/_ni6iFuhozQ ", + "If you wanted to know how to install presence detection in #homeassistant Ive got a guide for you. Head over to https://slacker-labs.com/2020/11/25/installing-presence-detection-in-home-assistant/ " + ] | random -}} + {%- endmacro -%} + {%- macro getTags() -%} + #homeautomation + {%- endmacro -%} + + {# a macro that removes all newline characters, empty spaces, and returns formatted text #} + {%- macro cleanup(data) -%} + {%- for item in data.split("\n") if item | trim != "" -%} + {{ item | trim }} {% endfor -%} + {%- endmacro -%} + + {# a macro to call all macros :) #} + {%- macro mother_of_all_macros() -%} + {{ getRandomPromo() }} + {{ getTags() }} + {%- endmacro -%} + + {# Call the macro #} + {{- cleanup(mother_of_all_macros()) -}} \ No newline at end of file diff --git a/config/templates/twitter_selfpromos.yaml b/config/templates/twitter_selfpromos.yaml index 915f265..280444c 100755 --- a/config/templates/twitter_selfpromos.yaml +++ b/config/templates/twitter_selfpromos.yaml @@ -2,30 +2,22 @@ {# Twitter Self Promos #} {%- macro getRandomPromo() -%} {{- [ - "Be sure to Star My Github Repo -> https://github.com/thejeffreystone/home-assistant-configuration so you can stay up to date with changes to my config. ", - "Join my Github repo and you could be one of the {{ states.sensor.home_assistant_configuration.attributes.stargazers}} people currently following everything that happens in realtime. ", - "Be sure to subscribe to my Youtube channel https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg for videos on #homeassistant and building a smart home.", - "Want to know how to add USPS Notifications to your Home Assistant? Check out https://www.youtube.com/watch?v=TjVeoAKn-r0", - "You can watch videos on turning your home into a smart home at https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg ", - "You can bring a little Disney #imagineering into your home using #homeassistant. Check out this video -> https://www.youtube.com/watch?v=Tm9ZXtk5P-s #homemadedisney", - "Anchorage House's Automation was built under the guiding principles of The Three Laws of Home Automation -> https://slacker-labs.com/2020/04/02/the-three-laws-of-home-automation/", - "If you haven't already, checkout my blog at https://slacker-labs.com for articles om Home Automation and Smart Home tech ", - "Be sure to follow along at https://slacker-labs.com so you can keep up today with the latest how-tows, reviews, and join the conversation. ", - "Do you use Zigbee2Mqtt? Your zigbee devices may have a firmware update waiting and you might be able to leverage the OTA Update process. Checkout https://slacker-labs.com/2020/05/29/zigbee2mqtt-and-ota-device-firmware-updates/", - "Want to use Cloudflare to manage your SSL cert? You might have seen my article linked to on the Home Assistant forum. But in case not -> https://slacker-labs.com/2020/04/17/swapping-out-duckdns-for-cloudflare/", - "Tired of renewing Lets Encrypt certs? Migrate to Cloudflare for your SSL cert and they last almost forever. I show you how at https://slacker-labs.com/2020/04/17/swapping-out-duckdns-for-cloudflare/", - "I created dog mode for when I dont want to disarm my security system but the dog needs to go out -> https://slacker-labs.com/2020/04/14/where-we-are-going-we-need-dog-mode/", - "Do you forget to disarm your security system in the middle of the night? Home Assistant can solve that. https://slacker-labs.com/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://slacker-labs.com/2020/04/10/how-i-secured-my-home-using-home-assistant-part-one/", + "Want to know how to add USPS Notifications to #homeassistant? Check out https://www.youtube.com/watch?v=TjVeoAKn-r0 ", + "You can watch videos on turning your home into a smart home using #homeassistant at https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg ", + "You can bring a little Disney #imagineering into your home using #homeassistant. Check out this video -> https://www.youtube.com/watch?v=Tm9ZXtk5P-s #homemadedisney ", + "Anchorage House's Automation was built under the guiding principles of The Three Laws of Home Automation -> https://slacker-labs.com/2020/04/02/the-three-laws-of-home-automation/ ", + "Do you use Zigbee2Mqtt in #homeassistant? Your zigbee devices may have a firmware update waiting and you might be able to leverage the OTA Update process. Checkout https://slacker-labs.com/2020/05/29/zigbee2mqtt-and-ota-device-firmware-updates/ ", + "Want to use Cloudflare to manage your #homeassistant SSL cert? I left a short write up over at https://slacker-labs.com/2020/04/17/swapping-out-duckdns-for-cloudflare/", + "Tired of renewing Lets Encrypt certs in #homeassistant? Migrate to Cloudflare for your SSL cert and they last almost forever. I show you how at https://slacker-labs.com/2020/04/17/swapping-out-duckdns-for-cloudflare/ ", + "I created dog mode for when I dont want to disarm my #homeassistant security system just to let the dog out -> https://slacker-labs.com/2020/04/14/where-we-are-going-we-need-dog-mode/ ", + "Do you forget to disarm your security system in the middle of the night? #homeassistant can solve that. https://slacker-labs.com/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://slacker-labs.com/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://slacker-labs.com/2020/04/10/how-i-secured-my-home-using-home-assistant-part-one/", - "Want to know how I migrated from Hassbian to Home Assistant? Now you can at https://slacker-labs.com/2020/04/05/migrating-from-hassbian-to-hassio/", - "Use Home Assistant to build a haunted house -> https://youtu.be/3dsUEsu3Evo ", - "Randomize Home Assistant's automations to keep people guessing what will happen next. Like in a Haunted House -> https://youtu.be/3dsUEsu3Evo", - "Did you see the article about how I can turn into Disney's Haunted Mansion on command using #homeassistant? Visit https://slacker-labs.com/2020/04/04/how-i-turned-my-anchorage-house-into-disneys-haunted-mansion-using-home-assistant/ #homemadedisney" + "Want to know how I migrated from Hassbian to #homeassistant? Now you can at https://slacker-labs.com/2020/04/05/migrating-from-hassbian-to-hassio/" ] | random -}} {%- endmacro -%} {%- macro getTags() -%} - #homeassistant #iot #smarthome + #homeautomation {%- endmacro -%} {# a macro that removes all newline characters, empty spaces, and returns formatted text #} diff --git a/config/templates/twitter_snark.yaml b/config/templates/twitter_snark.yaml index 6f9e415..29b43e9 100755 --- a/config/templates/twitter_snark.yaml +++ b/config/templates/twitter_snark.yaml @@ -37,26 +37,26 @@ "My #homeassistant config contains {{ states.sensor.lines_of_code.state }} lines of code. Anyone want to take a guess at how many are really needed? Hint: The number is not {{ states.sensor.lines_of_code.state }}", "How many lines of code does it take to make my job look easy? {{ states.sensor.lines_of_code.state }} lines of code evidently. How many lines of code do you have? #homeassistant ", "Do you think we were all created for a purpose? I'd like to think so. #irobot #homeassistant ", - "That rug really ties the room together, does it not? #modifiedmoviequotes #notbiglebowski #homeassistant ", - "Use #homeassistant and everyone will think your house has ESPN or something. #modifiedmoviequotes #notmeangirls ", - "You keep using that switch. I do not think it does what you think it does. #modifiedmoviequotes #notprincessbride #homeassistant ", - "If you look, #homeassistant goes to 11. Most Home Automation systems go up to 10. #modifiedmoviequotes #notspinaltap ", - "If that light does not turn off in five minutes, just wait longer. #modifiedmoviequotes #notaceventura #homeassistant ", - "I have presence detection skills! #modifiedmoviequotes #notofficespace #homeassistant ", - "There is no place like a home powered by #homeassistant. #modifiedmoviequotes #notwizardofoz ", - "#homeassistant made my light switches disappear. #modifiedmoviequotes #nothomealone ", - "Who knows where breaking changes come from? They just appear. #modifiedmoviequotes #notempirerecords #homeassistant ", - "They may take our internet but they will never take our automation thanks to local control with #homeassistant #modifiedmoviequotes #notbraveheart ", + "That rug really ties the room together, does it not? #modifiedmoviequotes #biglebowski #homeassistant ", + "Use #homeassistant and everyone will think your house has ESPN or something. #modifiedmoviequotes #meangirls ", + "You keep using that switch. I do not think it does what you think it does. #modifiedmoviequotes #princessbride #homeassistant ", + "If you look, #homeassistant goes to 11. Most Home Automation systems go up to 10. #modifiedmoviequotes #spinaltap ", + "If that light does not turn off in five minutes, just wait longer. #modifiedmoviequotes #aceventura #homeassistant ", + "I have presence detection skills! #modifiedmoviequotes #officespace #homeassistant ", + "There is no place like a home powered by #homeassistant. #modifiedmoviequotes #wizardofoz ", + "#homeassistant made my light switches disappear. #modifiedmoviequotes #homealone ", + "Who knows where breaking changes come from? They just appear. #modifiedmoviequotes #empirerecords #homeassistant ", + "They may take our internet but they will never take our automation thanks to local control with #homeassistant #modifiedmoviequotes #braveheart ", "When you realize you want to live the rest of your life in a house automated by #homeassistant, you want the rest of your life to start as soon as possible. #modifiedmoviequotes ", "Pay no attention to the Raspbery Pi4 behind the curtain. #modifiedmoviequotes #homeassistant ", "What we have here is a lack of communication failure thanks to #homeassistant. #modifiedmoviequotes ", - "The greatest trick #homeassistant ever pulled was convincing the world home automation did not need the cloud. #modifiedmoviequotes ", - "Keep Calm and Enjoy the Automation. #homeassistant ", - "Hey. The door was just opened and this is crazy. But now you know. So close it maybe. #lyricalnotifications #homeassistant " + "The greatest thing #homeassistant ever did was convincing the world home automation did not need the cloud. #modifiedmoviequotes ", + "Keep Calm and Automate the Boring Stuff. #homeassistant ", + "Hey. The door was left open and this is crazy. But now you know. So close it maybe. #lyricalnotifications #homeassistant " ] | random -}} {%- endmacro -%} {%- macro getTags() -%} - #iot #smarthome + #homeautomation {%- endmacro -%} {# a macro that removes all newline characters, empty spaces, and returns formatted text #} diff --git a/config/templates/twitter_stats.yaml b/config/templates/twitter_stats.yaml index fba53bd..1a716a8 100755 --- a/config/templates/twitter_stats.yaml +++ b/config/templates/twitter_stats.yaml @@ -30,13 +30,13 @@ "How fast is your internet? I just checked am Im seeing {{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.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.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }} + "My speed is monitored using @home_assistant + and at last check is {{ states.sensor.internet_test_down.attributes.max_value }} Mbps down and {{ states.sensor.internet_test_up.attributes.max_value }} Mbps up." ] | random -}} {%- endmacro -%} {%- macro getTags() -%} - #homeassistant #iot #smarthome #randomstats + #homeassistant #homeautomation #randomstats {%- endmacro -%} {# a macro that removes all newline characters, empty spaces, and returns formatted text #}