benct / lovelace-multiple-entity-row

Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI
MIT License
797 stars 60 forks source link

Is it possible to hide somehow icon and name? #341

Open denveronly opened 2 months ago

denveronly commented 2 months ago

Hey all, i tried everything but i just cant hide the icon and name. i tried card-mod but it doesnt work.

image

my code looks like this `

kwkid commented 1 month ago

forget about card_mod...this is way i use

where you have entity: script.update_solar_forecast type: custom:multiple-entity-row name: Solcast state_header: Update show_icon: false toggle: true state_color: false icon: mdi:solar-power

try entity: script.update_solar_forecast type: custom:multiple-entity-row name: ' ' state_header: Update show_icon: false toggle: true state_color: false icon: mdi:none

ildar170975 commented 1 month ago

forget about card_mod

I would not be so confident since in SOME use-cases this advice may not give a desired effect since entities-row element will occupy SOME part of a row, not a whole row.

2 OP: ask in the main card-mod thread of Community (in case you have not asked already but have not closed this issue yet).

Airblader commented 2 weeks ago

FWIW, choosing a non-existing icon seems to work for me. For the name you can use name: ''.

nicknol commented 2 weeks ago

according to the documentation you could suppress the name by setting it to false. name: false

ildar170975 commented 2 weeks ago

according to the documentation you could suppress the name by setting it to false. name: false

This is not about the main entity.

nicknol commented 2 weeks ago

perhaps I didn't get the point. For me name: false works for all entities: for the main entity but as well for the secondary entities. It needs to be set per entity.

ildar170975 commented 2 weeks ago

For me name: false works for all entities: for the main entity but as well for the secondary entities.

I was wrong. Yes, name: false works for the main entity as well: изображение

There is a confusion in Docs: for additional entities it is said clearly about false, for the main entity - it is not: изображение

But anyway, hiding an icon by setting an empty/non-existing icon + hiding a name MAY help in some case - and MAY NOT in case of many additional entities (as it was already noted):

type: entities
entities:
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - &ref_icon
        entity: sun.sun
        icon: true
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
  - type: custom:multiple-entity-row
    entity: sun.sun
    name: false 
    icon: mdi:none
    entities:
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon
      - *ref_icon

изображение