Updating some of the language formatting.

This commit is contained in:
CCOSTAN
2017-02-13 20:39:53 +00:00
parent 66787b8755
commit b5ee1cca92
3 changed files with 14 additions and 19 deletions

View File

@@ -1 +1 @@
0.38.0 0.38.2

View File

@@ -17,25 +17,26 @@
value1: > value1: >
"Welcome Home {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }}. Here is what's going on around the house right now: "Welcome Home {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }}. Here is what's going on around the house right now:
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%} {%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day. Please be sure to tell the kids to take out the trash. Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day. Please be sure to tell the kids to take out the trash.
{%endif%} {%endif%}
Inside the house, it is {{ states.climate.downstairs.attributes["current_temperature"]}} degrees with around {{states('sensor.downstairs_thermostat_humidity')}} percent humidity. Outside, it is going to be {{states('sensor.dark_sky_minutely_summary')}} Inside the house, it is {{ states.climate.downstairs.attributes["current_temperature"]}} degrees with around {{states('sensor.downstairs_thermostat_humidity')}} percent humidity. Outside, it is going to be {{states('sensor.dark_sky_minutely_summary')}}
{% if is_state('cover.garadget_large', 'open') -%} {% if is_state('cover.garadget_large', 'open') -%}
Also, The Large Garage Door is still open Also, The Large Garage Door is still open
{% endif -%} {% endif -%}
{% if is_state('cover.garadget_small', 'open') -%} {% if is_state('cover.garadget_small', 'open') -%}
{% if is_state('cover.garadget_large', 'open') -%}and {% if is_state('cover.garadget_large', 'open') -%}and
{%- endif %} The small Garage Door is still open. {%- endif %} The small Garage Door is still open.
{% endif %} {% endif %}
. There are . There are
{% for state in states.light if state.state == 'on' -%} {% for state in states.light if state.state == 'on' -%}
{%- if loop.last -%} {%- if loop.last -%}
{{ loop.index }} {{ loop.index }}
{%- endif -%} {%- endif -%}
{%- endfor %} lights on right now." {%- endfor %} lights on right now."
{% set comma = joiner(', ') %} The {% set comma = joiner(', ') %} The
{% for group in states.group|groupby('state') -%} {% for group in states.group|groupby('state') -%}
{%- for entity in group.list if entity.state == 'on' and entity.name.split(' ')[1]|lower == 'lights' and entity.name.split(' ')[0]|lower != 'all' and entity.name.split(' ')[0]|lower != 'interior' -%} {%- for entity in group.list if entity.state == 'off' and entity.name.split(' ')[1]|lower == 'lights' and entity.name.split(' ')[0]|lower != 'all' and entity.name.split(' ')[0]|lower != 'interior' -%}
{{ comma() }}{{ entity.name }} {{ ' and' if loop.last and not loop.first else comma() }}
{%- endfor -%} {{ entity.name }}
{%- endfor %}. {%- endfor -%}
{%- endfor %}

View File

@@ -7,13 +7,7 @@
entity_id: entity_id:
- binary_sensor.upstairs_away_mode - binary_sensor.upstairs_away_mode
- binary_sensor.downstairs_away_mode - binary_sensor.downstairs_away_mode
state: 'off' state: 'off'
- platform: state
entity_id:
- binary_sensor.sleepnumber_carlo_carlo_is_in_bed
- binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'on'
for: '00:05:00'
- platform: state - platform: state
entity_id: group.family entity_id: group.family
state: home state: home