Template a homeassistant card for an entity

  1. these options does not belong to Entities card:
show_name: false  # Hide the entity name.
        show_icon: true   # Show the entity icon.
        show_state: true  # Show the entity state.

they are a part of the Glance card.

  1. If you wish to create a decluttering template from your stack card:
    template:
my_super_template:
  card:
    type: vertical-stack  
    cards:
      - type: entities  
        entities:
          - entity: switch.[[DEVICE_NAME]]
            ...
    
      - type: glance  
        entities:
          - entity: sensor.[[DEVICE_NAME]]_voltage
          - entity: sensor.[[DEVICE_NAME]]_current
          - entity: sensor.[[DEVICE_NAME]]_power
          ...

using:

type: custom:decluttering-card
template: my_super_template
variables:
  - DEVICE_NAME: smart_plug_2

Check Github for the decluttering card & a dedicated Community thread for docs & examples.

2 Likes