ciotlosm
(Marius)
August 6, 2018, 11:28am
1
Home setter card
A card that lets you choose a different homepage to be the default on the current browser.
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
2carlos
(Carlos)
August 6, 2018, 7:49pm
2
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)
ciotlosm
(Marius)
August 6, 2018, 9:29pm
3
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.
Rumlak
(Nick)
November 27, 2018, 4:04pm
4
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?
_BaQs
(Pierre )
August 12, 2019, 3:52pm
6
I think, nowadays, it’s better to use Compact Custom Header (CCH)
Jokerigno
(Jokerigno)
May 24, 2020, 10:02pm
7
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
dubsix
(Rick)
October 18, 2020, 12:34pm
8
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?