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

Badges: specify attribute and unit from separate entity #140

Open
coreyo opened this issue Jul 2, 2018 · 0 comments
Open

Badges: specify attribute and unit from separate entity #140

coreyo opened this issue Jul 2, 2018 · 0 comments

Comments

@coreyo
Copy link

coreyo commented Jul 2, 2018

From the short documentation on the 'extra_badge' parameter, it seems that the 'entity_id' sub-parameter causes the 'attribute' and 'unit' sub-parameter values to be ignored. This seems to be the case when I use the following:

lock.office_deadbolt_locked:
  custom_ui_state_card: state-card-custom-ui
  extra_data_template: 
    - "Battery: ${entities['zwave.office_french_doors_deadbolt'].attributes.battery_level}%"
    - "Last Opened: ${attributes.notification}"
  extra_badge:
    - entity_id: zwave.office_deadbolt
      attribute: battery_level
      unit: "%"

This configuration seems to produce a badge that simply says "ready".

The 'extra_data_template' directives seem to be working as expected. Because the actual lock and deadbolt meta-info show up in different entities, It would be nice if I could specify an arbitrary attribute of an arbitrary entity with an arbitrary unit. Is this possible now? Is there another option? Thanks in advance for any advice or extra features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant