46 lines
4.1 KiB
YAML
Executable File
46 lines
4.1 KiB
YAML
Executable File
>
|
|
{# 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/",
|
|
"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"
|
|
] | random -}}
|
|
{%- endmacro -%}
|
|
{%- macro getTags() -%}
|
|
#homeassistant #iot #smarthome
|
|
{%- 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()) -}}
|
|
|