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

@@ -35,7 +35,8 @@
{%- endfor %} lights on right now."
{% set comma = joiner(', ') %} The
{% 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' -%}
{{ comma() }}{{ entity.name }}
{%- 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' -%}
{{ ' and' if loop.last and not loop.first else comma() }}
{{ entity.name }}
{%- endfor -%}
{%- endfor %}.
{%- endfor %}

View File

@@ -8,12 +8,6 @@
- binary_sensor.upstairs_away_mode
- binary_sensor.downstairs_away_mode
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
entity_id: group.family
state: home