Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow use of entity in the multiple entity row #23

Closed
Mariusthvdb opened this issue Jan 8, 2020 · 2 comments
Closed

allow use of entity in the multiple entity row #23

Mariusthvdb opened this issue Jan 8, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Mariusthvdb
Copy link

Mariusthvdb commented Jan 8, 2020

HI,

please consider allowing referencing the config entity in the multiple entity rows, (ie when not referencing an outside entity):

  - entity: vacuum.vacuum_cleaner
    type: custom:multiple-entity-row
    primary:
      entity: entity
      attribute: battery_level
      name: Battery
      unit: '%'
    secondary:
      entity: entity
      attribute: status
      name: Status

or maybe even:

  - entity: vacuum.vacuum_cleaner
    type: custom:multiple-entity-row
    primary:
      attribute: battery_level
      name: Battery
      unit: '%'
    secondary:
      attribute: status
      name: Status

instead of:

  - entity: vacuum.vacuum_cleaner
    type: custom:multiple-entity-row
    primary:
      entity: vacuum.vacuum_cleaner
      attribute: battery_level
      name: Battery
      unit: '%'
    secondary:
      entity: vacuum.vacuum_cleaner
      attribute: status
      name: Status

there's no need to keep repeating the entity, if set in the main config. Keep things short and simple.

And, it would make it so much easier to use the card in other cards or templates (like decluttering templates) Maybe even auto entities, though I am not sure that will go...

anyways,
thanks!

@benct
Copy link
Owner

benct commented Jan 8, 2020

I've actually considered making that possible several times, just always popped up more important stuff to fix. I'll try to get that implemented soon though :)

@benct benct self-assigned this Jan 10, 2020
@benct benct added the enhancement New feature or request label Jan 10, 2020
@benct
Copy link
Owner

benct commented Jan 10, 2020

Should now be supported in version 2.2.0 (55eda45)

@benct benct closed this as completed Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants