question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attribute feature in v0.11.0-dev.3 only works for the first entity

See original GitHub issue

Does the attributes function in this branch work? I’m not having luck while using the following lovelace code:

type: 'custom:mini-graph-card'
entities:
  - entity: switch.hs110_server
    name: Watts
    attribute: current_power_w

Developer tools for the switch.hs110_server entity displays the following:

current_power_w: '87.49'
total_energy_kwh: '18.060'
voltage: '247.2'
current_a: '0.47'
today_energy_kwh: '1.844'
friendly_name: HS110 Server

My mini-graph-card display N/A for the switch.hs110_server entity and current_power_w attribute.

I have not excluded anything from recorder, and the attribute is confirmed to be listed in HA. Am I missing something here?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

5reactions
hercule115commented, Mar 18, 2021

Hi, Same behavior at home. However , I can get state attribute working when using it in a dedicated mini-graph-card. But it does not work (NaN) when using multiple entities in a single mini-graph-card

0reactions
github-actions[bot]commented, Jan 22, 2022

🎉 This issue has been resolved in version 0.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

mini-graph-card - githubmemory
Attribute feature in v0.11.0-dev.3 only works for the first entity. u8915055 ... [Feature request] Ability to set font size of legend. Rendeik.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found