mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-02-09 00:55:08 +00:00
Lots of updates here. Updated my Readme - Added Affiliate Links, added some more information, better organized devices Updated gitignore with paths realtive to my hassio config Combined my switches and lights into single yaml files instead of the directory structure previously Added zigbee2mqtt.yaml to packages - contains automations and such for zigbee2mqtt Archived my previous version in the V4-config branch.
42 lines
1.3 KiB
YAML
Executable File
42 lines
1.3 KiB
YAML
Executable File
>
|
||
{% macro getIntro() %}
|
||
{{- [
|
||
"Woohoo! ",
|
||
"BAM! ",
|
||
"Look at that! "
|
||
] | random -}}
|
||
{% endmacro %}
|
||
{% macro getVersion() %}
|
||
@home_assistant version {{ states.sensor.current_ha_version.state }} is out.
|
||
{% endmacro %}
|
||
{%- macro getRandomSnark() -%}
|
||
{{- [
|
||
" It’s like Patch Tuesday, but without the fail. #homeassistant",
|
||
" Get in my SD Card! #homeassistant",
|
||
" Shut up and take my ones and zeros! #homeassistant",
|
||
" Seriously, you want some of this! #homeassistant",
|
||
" Friends dont let friends update #homeassistant without reading breaking changes! ",
|
||
" If you are not running #homeassistant now is the best time to get started. Visit https://www.home-assistant.io"
|
||
] | random -}}
|
||
{%- 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() -%}
|
||
{{ getIntro() }}
|
||
{{ getVersion() }}
|
||
{{ getRandomSnark() }}
|
||
|
||
{%- endmacro -%}
|
||
|
||
{# Call the macro #}
|
||
{{- cleanup(mother_of_all_macros()) -}}
|
||
|
||
|
||
|
||
|