custom-cards / bar-card

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

entities vs. state_attr. (Solved it myself, thank you!!!) #159

Open RobertoCravallo opened 1 year ago

RobertoCravallo commented 1 year ago

Not an issue as such!!!

Thank you for your troubles, cool card!!

I am using sensor.kuche_fenster_shutter1_position but that does not update when the shutter is moving. I would need to use "state_attr('cover.kuche_fenster_cover_1','current_position')" to get the current position. This is updated as the window cover moves.

So how do I get this to work with the bar-card? In mushroom I have got this all worked out as "secondary information" and the % text is updated nicely as the cover moves. When using sensor.kuche_fenster_shutter1_position, the update occurs seconds after the cover has stopped moving. Not nice and also not very informative as it is not updated in real time.

Can't figure out, how to implement this with the bar-card.

Regards from Germany,

Robert

Was looking around and found, there is a "attribute"!! Can't figure out, how to get this info there....

RobertoCravallo commented 1 year ago

`type: custom:bar-card title: '' columns: '3' color: grey min: '0' max: '100' positions: icon: 'off' indicator: 'off' minmax: 'off' title: inside value: inside entities: