home-assistant-configuration/config/templates/twitter_selfpromos.yaml

43 lines
3.7 KiB
YAML
Raw Normal View History

2020-04-10 16:41:46 +00:00
>
{# Twitter Self Promos #}
{%- macro getRandomPromo() -%}
{{- [
"Be sure to my follow my Github Repo -> https://github.com/thejeffreystone/home-assistant-configuration",
"Be sure to subscribe to my Youtube channel https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg for videos on Home Assistant.",
"Want to know how to add USPS Notifications to your Home Assistant? @thejeffreystone made a video -> https://www.youtube.com/watch?v=TjVeoAKn-r0",
"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 ",
"You can bring a little Disney #imagineering into your home using @home_assistant. Check out this video @thejeffreystone posted -> 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://jeffreystone.net/2020/04/02/the-three-laws-of-home-automation/",
"You can read about how I came to be and all the cool things I'm learning to do at https://jeffreystone.net ",
"Be sure to follow along at https://jeffreystone.net so you can keep up today with the latest updates to my Home Asissitant Configuration",
2020-06-07 19:31:06 +00:00
"Do you use Zigbee2Mqtt? Your zigbee devices may have a firmware update waiting and uou might be able to leverage the OTA Update process. @thejeffreystone walks you though it at https://jeffreystone.net/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://jeffreystone.net/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://jeffreystone.net/2020/04/17/swapping-out-duckdns-for-cloudflare/",
2020-04-15 02:31:29 +00:00
"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/",
2020-06-07 19:31:06 +00:00
"Do you forget to disarm your security system in the middle of the night? Home Assistant can solve that. https://jeffreystone.net/2020/04/14/where-we-are-going-we-need-dog-mode/",
2020-04-15 02:29:40 +00:00
"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/",
2020-04-24 18:35:00 +00:00
"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/",
2020-04-10 16:41:46 +00:00
"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 -}}
{%- endmacro -%}
{%- macro getTags() -%}
2020-04-15 02:29:40 +00:00
#homeassistant #iot #smarthome
2020-04-10 16:41:46 +00:00
{%- 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()) -}}