Hi All,
Trying to set up an Alexa Flash Briefing to say which devices have been left on.
Rather than list out each entity in a group is there a way to say
Is Light Group ON?
If so list ON entities from it.
If not “No Lights on”
Is Switches Group ON?
If so list ON entities from it.
If not “No Switches on”
So far only way i have managed it to then list each entity within a group.
{% if (states.group.all_lights.state) == "on" %}
The following lights are currently on:
{% if (states.light.dining_main.state) == "on" %}
Dining Main,
{% endif %}
{% if (states.light.sofa_main.state) == "on" %}
Sofa Main,
{% endif %}
{% else %}
All lights Turned off.
{% endif %}