#Ways to see switched on lights (and maybe switched on devices by energy consumption?) in dashboard?

1 messages · Page 1 of 1 (latest)

void hedge
#

Hello guys,
is there a way to see all turned on lights in dashboard so I can e.g. before leaving house see which lights are turned on?

Same would be interesting to have a list of devices by (current) energy consumption.

Do I really have to add each entity or is it possible to show all devices by kind (and filter switched off devices out?)

Thank you

fierce marsh
#

You might want the auto-entities custom card

void hedge
#

Seems good, thanks! I'll try

candid atlas
#

I use a script to turn off "all lights except certain lights". If you edit this script to fit your purpose, it maybe can show you all turned on lights.

This is a script to turn off all lights except certain lights:

alias: Lights off except
icon: mdi:home-lightbulb
sequence:
  - variables:
      list_light: >
        {% set exclude_light = [
          'light.bg_door',
          'light.vd2_bed',
          'light.vd2_bath
        ] %} {%- for device in
        states.light|rejectattr('entity_id','in',exclude_light)|rejectattr('state','in','off')
        %}{%- if loop.first %}{%- else %}, {% endif %}{{device.entity_id }}{%-
        if loop.last %}{% endif %}{%- endfor  %}
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ list_light|length > 0 }}"
        sequence:
          - data:
              entity_id: "{{ list_light }}"
            action: light.turn_off

Additionally, it should be possible to show these lights on your dashboard using a script like this.

I don't give you a full answer here, but maybe the above information is still useful for you.