Several updates...major - started migrating off smartthings to direct zwave.

This commit is contained in:
Jeffrey Stone
2019-03-08 21:52:37 -05:00
parent 4769a74a86
commit 9b47902ee4
24 changed files with 249 additions and 298 deletions

View File

@@ -8,24 +8,29 @@
{% endif %}
{% endmacro %}
{% macro getBirthdays() %}
{% if states.sensor.birthday_skylar.state | int < 2 %}
{% if states.sensor.birthday_skylar.state | int == 1 %}
Tomorrow is Skylar's Birthday.
{% endif %}
{% if states.sensor.birthday_jeff.state | int < 2 %}
{% if states.sensor.birthday_skylar.state | int > 1 %}
{% if states.sensor.birthday_skylar.state | int < 5 %}
Skylar's birthday is in {{states.sensor.birthday_skylar.state}} days!
{% endif %}
{% endif %}
{% if states.sensor.birthday_jeff.state | int == 1 %}
Tomorrow is Jeff's Birthday.
{% endif %}
{% if states.sensor.birthday_kat.state | int < 2 %}
{% if states.sensor.birthday_kat.state | int == 1 %}
Tomorrow is Katherine's Birthday.
{% endif %}
{% if states.sensor.anniversary_our_wedding.state | int < 2 %}
{% if states.sensor.anniversary_our_wedding.state | int == 1 %}
Tomorrow is Jeff and Katherine's Wedding Anniversary.
{% endif %}
{% endmacro %}
{% macro getHolidays() %}
{% if states.sensor.holiday_halloween.state | int < 2 %}
{% if states.sensor.holiday_halloween.state | int == 1 %}
Tomorrow is Halloween. Hope you have picked out a costume.
{% endif %}
{% if states.sensor.holiday_christmas.state | int < 2 %}
{% if states.sensor.holiday_christmas.state | int == 1 %}
Tomorrow is Christmas. It's practically here!
{% endif %}
{% endmacro %}

View File

@@ -7,11 +7,11 @@
] | random -}}
{% endmacro %}
{% macro getVersion() %}
@homeassistant version {{ states.sensor.current_ha_version.state }} is out.
#homeassistant version {{ states.sensor.current_ha_version.state }} is out.
{% endmacro %}
{%- macro getRandomSnark() -%}
{{- [
" Its like Patch Tuesday, but with less fail. #homeassistant",
" Its 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",
@@ -27,7 +27,6 @@
{# a macro to call all macros :) #}
{%- macro mother_of_all_macros() -%}
It is {{ now().strftime("%I:%M %p") }}.
{{ getIntro() }}
{{ getVersion() }}
{{ getRandomSnark() }}
@@ -39,4 +38,4 @@