mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-21 16:44:46 +00:00
List out the lights that are left on please.
This commit is contained in:
parent
5ce17e9728
commit
cc673420c3
@ -33,3 +33,9 @@
|
||||
{{ loop.index }}
|
||||
{%- endif -%}
|
||||
{%- 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 }}
|
||||
{%- endfor -%}
|
||||
{%- endfor %}.
|
Loading…
x
Reference in New Issue
Block a user