Lovelace: Easier setting of default pages on your device

Home setter card

A card that lets you choose a different homepage to be the default on the current browser.

09

Source:

Options

Name Type Default Description
type string Required custom:home-setter
title string optional A title for the card
pages list Required A list of objects of type ‘pages’

Pages object

Name Type Default Description
title string optional Title of the page to display on the ard
path string Required The path that is used when using this as default

Example

- type: custom:home-setter
  pages:
    - name: Main
      path: lovelace/0
    - name: Mobile
      path: lovelace/mobile

Credits

4 Likes

great, I’m guessing use case would be something like a wall-mounted or otherwise room-specific tablet.

does this use a service call in HA?

I wonder if it could be used to show different tabs on the same device given different scenarios (the default homepage I want to see when checking in from work is different from when I’m sitting in the living room)

This uses localStorage.defaultPage that is used to navigate to when hitting / in a new session.
Keep in mind that localStorage is cleared at logout so setting a homepage and logging out will delete that setting.

I may be missing something.

I set it up like the example and picked /mobile, but the same UI shows up. How do I configure a different homepage in Lovelace?

I want to set it up for my wife to have a simplified UI page.

Is this set as “module” or “js” for the config UI’s resource section?

I think, nowadays, it’s better to use Compact Custom Header (CCH)

Hi, sorry for necroposting but I noticed that this component is now archived and no longer in HACS.

But I found this error in my log:

Logger: hacs
Source: custom_components/hacs/http.py:76
First occurred: 24 maggio 2020, 21:16:04 (7 occurrences)
Last logged: 24 maggio 2020, 23:41:30

Tried to serve up ‘/config/www/community/home-setter/home-setter.js’ but it does not exist

Can someone please help me to fix it?

Ty

we need this back now that CH is gone, I haven’t found another way to set default pages for users when in yaml mode… anyone know?