This is possible using the (sadly deprecated) Custom Header plugin.
It would be nice to have the same functionality built-in to HA itself. And it should be easy to do since the functionality already exists as a third party plugin.
We should be able to use the state/attribute/etc of an entity to determine the visibility of a tab/view or possibly even entire dashboard.
Even tagging entities/devices and having lovelace filter on that (or area, etc.) would be super nice. Tags would be awesome for things you’d want in more than one lovelace “view”
This is actually called Dashboard strategies and is built-in and available for use for custom developers.
We have some Dashboard strategies in use (for example, the Energy dashboard).
I think you misunderstand… Tabs and views are part of an dashboard…
Anyways, I’m just highlighting the capability of it being there. If someone wants to pick up something like this to contribute, it could give them an handle.
That’s cool that there is already something like this out there, hopefully it makes it to everyone. I would hop all over it because, coupled with Remote Assistant, you could essentially have the work-around for not being able to link two houses through the app
Yes but if I have a dashboard of my own but I don’t need/want to see every tab all the time having dynamic tabs just like Custom Header does/did is great.
I have about 5 tabs I hide until certain conditions are met and then I make them visible.
Having to change dashboards to ones with different views on those conditions is at a minimum inconvenient if it’s even possible.
Assuming that your device(s) can configure themselves with HA and provide additional attributes (or, you manually set attributes in customize.yaml) then it would be amazing to do something like this:
in your customize.yaml:
light.bathroom_lights:
tag_lightType: ['interior', 'nightLight']
<... add the `tag_lightType` attribute for other entities, too ...>
And then for a card, you might do something like this
You can do this with groups, but depending on the number of uses for the tag/attributes, you might have a TON of groups and maintaining them all would be a nightmare.
I doubt that this is the solution that was requested - this does only show entities in a specific card, when a condition is met - similar as the “conditional” for some cards.
BUT: it would still be required to have that card on a dashboard - or tab / View of a dashboard.
the requested solution was probably more like that:
I have a Tab / View for “MediaPlayer Controll”… on this tab, I have all the different cards I need to controll the media shown on my TV - for example.
But I don’t need that tab to be available all the time, because my TV is off… the tab shoul donly be shown if my TV is on - and ONLY THEN I need all the stuff provided on that tab.