custom-cards / bar-card

Customizable Animated Bar card for Home Assistant Lovelace
MIT License
378 stars 54 forks source link

Use entity value for target, max value #88

Closed Gunth closed 4 years ago

Gunth commented 4 years ago

Hi there,

I saw on this reply (https://community.home-assistant.io/t/lovelace-bar-card/87503/77) that the version 0.1.0 enable the possibility to use an entity as max value. But when i try to use this feature, it doesn't seems to work, it show NaN. Here is my current configuration :

type: 'custom:bar-card'
entities:
  - entity: sensor.sma_current_month_production
    limit_value: true
unit_of_measurement: kWh
max: sensor.sma_last_month_production

I'm using use the latest version 3.1.6

Thanks.

Gluwc commented 4 years ago

This has been removed from the card in favor of https://github.com/iantrich/config-template-card . This card allows you to use other entities for any value on any card.