mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-06 17:51:36 +00:00
Minor updates
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
{%- endfor %} lights on right now."
|
||||
{% set comma = joiner(', ') %} The
|
||||
{% for group in states.group|groupby('state') -%}
|
||||
{%- 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' -%}
|
||||
{%- 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' -%}
|
||||
{{ ' and' if loop.last and not loop.first else comma() }}
|
||||
{{ entity.name }}
|
||||
{%- endfor -%}
|
||||
|
||||
Reference in New Issue
Block a user