I know itās an old topic; bumped on it while searching for something.
Can this not be achieved simply by using different Lovelace Dashboards?
Thatās at least how Iām doing it and then on that specific device assign that dashboard to it as default.
There is no code: the idea is just to create multiple dashboards and assign them to a specific device.
These are the steps:
in the HA UI go to āConfigurationā => āLovelace Dashboardsā => 'Add dashboard (+ sign bottom-right)
a new window - the āAdd new dashboardā appears and you type a unique title (I have 1 called ātabletā)
after you provide a title and enter/tab to the next field, you will notice that this new title has been used as a URL
additionally you can choose to make it visible or not in the sidebar and admin only or not.
Now you have an extra dashboard and when you open it, you will get all the entities that you have used.
You can keep them and remove what you donāt need of you can delete them from this dashboard and start from scratch.
Of course you can copy cards over from another dashboard when you edit them or copy the yaml code to a new card, your choice.
I have installed the Custom header mod to tweak my dashboards, have a look at it if you donāt know it yet.
My experience with HA is fairly new and Iām not sure that this is the best way to accomplish this but it works for me (for now) so Iām happy that I have discovered this way.
Is there a new way to do that now when thereās no Custom Header anymore?
I know thereās already a built in user viability option which is great, but what about default view per a device?
Bumping this thread to ask if there are any solutions to this yet?
Here is my scenario: I have about 7 RTSP live camera feeds on a dashboard in Home Assistant. On my desktop computer I want these to show in a 3 column grid, maximizing screen real estate. On my mobile phone though these feeds are too small in a grid, and so I want them to show in a single column on my phone.
I want to avoid creating multiple dashboards to manage just for this purpose.
I need the same thing for a wall tablet. I just need to show the camera feed using a horizontal stack on my computer and a vertical stack on my tablet.
Let us know if there is a way to accomplish that without creating multiple dashboards.
It also uses the decluttering card but it uses a media query in my case to see portrait or landscape and then uses the correct card. There are other options other than mediaquery you can use too.