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.