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 more-info to point to other entities #163

Closed
Mariusthvdb opened this issue May 16, 2019 · 1 comment · Fixed by #166
Closed

allow more-info to point to other entities #163

Mariusthvdb opened this issue May 16, 2019 · 1 comment · Fixed by #166
Labels
FR Feature Request

Comments

@Mariusthvdb
Copy link
Contributor

Additional context
Add any other context or screenshots about the feature request here.

following our discussion in https://community.home-assistant.io/t/lovelace-button-card/65981/1141?u=mariusthvdb

please add the option for a more-info action to point to other entities than the entity holds.

previously on Tiles:

entities:
  - entity: device_tracker.life360_name
    templates:
      background: >
        if (state === 'home' || state === 'not_home') return 'url(\"/local/tiles/family/name_' + state + '.png\")';
        return 'url(\"/local/tiles/family/name_' + entities['sensor.name_location_picture'].state + '.png\")';
      style: >
        if (state === 'home') return 'background-color: #008000';
        if (state === 'not_home') return 'background-color: #808080';
        return 'background-color: #643aac';
    more_info: group.name
@Mariusthvdb Mariusthvdb added the FR Feature Request label May 16, 2019
@iantrich
Copy link
Member

I was planning on adding this to the common custom-card-helpers in the near future; so lets table this until we convert to those helper functions

@RomRider RomRider mentioned this issue May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FR Feature Request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants