kinghat / tabbed-card

a custom card for home assistant that utilizes tabs to segregate individual cards.
MIT License
87 stars 10 forks source link

Added ability to have states in labels #92

Open dzikimarian opened 1 year ago

dzikimarian commented 1 year ago

Hi, I wanted to have ability to quickly see current temperature, even if graph is in inactive tab, so I've added possibility to put it into label - you do this with: label: Outside ([[ sensor.outside_temperature ]] °C). Result looks like this:

obraz

Code for parsing & accessing state comes from other HA card: https://github.com/PiotrMachowski/lovelace-html-card

If you like it feel free to merge.

kinghat commented 1 year ago

thanks for your interest in the card. at some point im going to allow for the tabs to be dynamic. there are a few feature requests for that type of thing already here: https://github.com/kinghat/tabbed-card/discussions/categories/feature-requests. could you open a feature request there and mention this PR for me? when i get around to working out that part of the card it will be a good place for further discussion.

dzikimarian commented 1 year ago

Sure, I've put it here: https://github.com/kinghat/tabbed-card/issues/93 thanks for the interest in this feature.