Anyone knows if you can do this into home assistant frontend?
Lets say that I have the same identical 4 cards into 4 different dashboards.
I want to show Card1 only on Dash1, Card 2 only on Dash2 and so on…
I don’t want to remove the other 3 cards from each dashboard…
There is any possibility for the condition to show the card based on the current URL? Or there is any other approach to this? Except of using the “lovelace: state-switch” card, which is not working with the deviceID/browserID …
Are you talking about using include files in yaml dashboards or what? Why would you add the same cards to different dashboards if you do not want the same cards in those dashboards?
I don’t want to be rude, but I was hoping to not lose time with explications about “why I want it exactly like this”, but if there is a good purpose, I am glad to waste it…
Imagine that you have 4 dashboards… and all have almost the same cards, except some of them… (those which we talk about)… and, there are moments when I want to upgrade the dashboards, but I hate when I need to copy/paste and modify for each dashboard… Won’t be faster if I just copy/paste dashboard and thats it?
Also not wanting to be rude: you hoping not to have to take time to explain, takes more time of us to understand what you want to accomplish. I do not think you can have exactly what you want, and to come up with alternatives takes a lot more effort if we know very little of what it is for. Leading to suggestions that are possibly of no use.
One reason I asked (and hinted to) yaml dashboards: have you considered moving to yaml and to use include files to compose the different dashboards of reusable bits? It is a pity you cannot do so in gui edited ones. I moved to yaml and do not regret the move. I use the ui to build the parts I reuse.
I do not know of a way to hide cards based on what dashboard it is in. The purpose of the dashboards might give a clue on why you want cards in one but not the other, and what might be used as a condition instead. If it is because you have similar dashboards on tablets in different rooms, you might want to consider logging each one in as a different user and hide cards based on that.
I wanted to go into full yaml, many times… but I could not do it because I will miss the UI verify of what I am doing… I like to have a visual confirmation of what I am doing, in real time… and with full yaml… i will have the confirmation after I save… At least this is what I think of.
I tried the state-switch addon, but without any success… I don’t know, but that addon it is not working with DeviceID/BrowserID entity
I will try to create an addon, but python impremented to HA… it is not too easy for me.