So one way to accomplish this is with the custom multiple-entity-row card. This is my favorite control for several reasons. It is highly configurable and works well. It allows you to create information-dense UI controls that look good. Finally, all the content is created in the backend which means that you won’t see template data flash on-screen before it gets rendered.
So let say you want to display the status of all the lights in the house. First, create a group for the lights. This group will be used to create a popup displaying the status of each light with plus toggles for adjustment. Next to make things look nice create a template sensor. Finally put it all together in the UI.
group:
lights:
name: Lights
entities:
- switch.alcove
- switch.bar
- switch.counter
- switch.dome
- switch.entry
sensor:
- platform: template
sensors:
lights: # pretty 'lights on' count for ui
friendly_name: 'Lights'
icon_template: mdi:lightbulb-on
entity_id:
- switch.alcove
- switch.bar
- switch.counter
- switch.dome
- switch.entry
value_template: >
{% set ns = namespace(count=0) %}
{% set lights = state_attr('group.lights', 'entity_id') %}
{% for l in lights %}
{% if states(l) == 'on' %} {% set ns.count = ns.count + 1 %}
{% endif %}
{% endfor %}
{% if ns.count %}
{{ ns.count }} light {%- if ns.count > 1 -%} s {% endif %} on
{% else %} all off {% endif %}
type: entities
title: 'At a glance'
show_header_toggle: false
state_color: true
entities:
- entity: sensor.lights
type: custom:multiple-entity-row
tap_action:
entity: group.lights
action: more-info
This will create a control with the name Lights, a lightbulb icon, and a state message of how many lights are currently on. If you click on the name or state a popup will appear listing all the lights with toggles on each for adjustments.
I am doing it by defining a dummy switch that I stack above the card to show/hide and then make that a conditional card depending on the above switch. Works perfectly!
So I have this panel that collects all data from my solar inverter, which is a long list that I rarely actually look at. So I want to hide it completely by default and just switch it on occasionally. I define an according boolean flag in configuration:
The only thing that I would want to add to this is per-device or per-user capability.
Currently, if I turn the input_boolean on, it affects all the devices (and all users) (i.e. the conditional card on all the devices is shown).
Any idea how this can be accomplished?