I was wondering if it is possible to create an automatically updating card that is always identical to a “primary” card?
I have a main dashboard that i use on my pc that as you know i am constantly tweaking.
Those cards are copied to different views and dashboards across HA (for tab and mobile views)
I would like this updates to be automatically be transferred to the copies of the cards without me having to go change the code everywhere.
Is this functionality possible somehow?
Could it be integrated as a core functionality or as a custom component?
You can already do this with the !include statement.
My entire UI is based on !includes. Most of the elements and cards are shared between my desktop, tablet (kiosk), and mobile dashboards so I only have to maintain one copy of them.
Is there a tutorial on how to use the !include statement?
I am new to Home Assistant have so far only used the built in editor for creating dashboard.
Thanks
Hey there!
I know this is doable with yaml mode, but i find the ui editor offers a lot of usability, especially when editing something while not on a full sized pc/laptop.
The idea is to at least allow !include while the ui editor is enabled.
Or IDK, maybe assign an id to a card and then call that id from a card that’s someplace else in HA?
This would be really useful. I have a number of dashboards and views with cards that are common across them. Being able to define a card in one place but use in multiple views would be a nice time saver. It also helps ensure the cards are actually displaying the same entities etc.
This is on the very top of my personal wish list. My frontend has gotten quite expansive and it has become quite a chore to change the navigation element that lives on top of each view.
can attest this would be a lifesavere. Making separate dashboards for phones, tablet-kiosks and laptop and they all use shared elements that require a lot of copy/pasting in raw yaml
Maybe if we could assign a unique ID to the source card through UI…
and then have a “copy card” where we would just enter the source card’s ID?
I dont know
Thats actually not a bad idea i.e.: card_id (like entity_id). Doing this would not only help towards copy of cards but you could add to that and “!include card_id” in other views and reduce duplicate cards on other views. I have a diag card I use on a lot of my views and updating it is a pain. Anyway card_id would be a good solution for this ‘copy’ issue but also for ‘!include’ of cards in other views. But… would take some infrastructure…