You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/lovelace/index.markdown
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ excluded_entities:
84
84
views:
85
85
# View tab title.
86
86
- title: Example
87
-
# Unique id for direct access /lovelace/${id}. If you don't specify one, it is added automatically.
87
+
# Unique id for direct access /lovelace/${id} and editing it from the UI.
88
88
id: example
89
89
# Optional background (overwrites the global background).
90
90
background: radial-gradient(crimson, skyblue)
@@ -93,7 +93,7 @@ views:
93
93
# The cards to show on this view.
94
94
cards:
95
95
# The filter card will filter entities for their state
96
-
- id: peoplehome # Every card needs an ID, if you don't specify one, it is added automatically.
96
+
- id: peoplehome # Every card needs an ID, for it to be edited from the UI.
97
97
type: entity-filter
98
98
entities:
99
99
- device_tracker.paulus
@@ -137,7 +137,10 @@ views:
137
137
Now restart Home Assistant, navigate to `<YOUR HASS URL>/lovelace`. When you make changes to `ui-lovelace.yaml`, you don't have to restart Home Assistant or refresh the page. Just hit the refresh button at the top of the UI.
138
138
139
139
## {% linkable_title IDs for cards and views %}
140
-
Every card and view needs an ID, this is used to edit your config from the UI. If you don't specify an ID, Home Assistant will add one. If you don't want Home Assistant to write to your `ui-lovelace.yaml` file, make sure every view and card have an ID.
140
+
If you want to edit your views and cards from the UI, every card and view needs an ID. This ID is used to save your config from the UI.
141
+
142
+
## {% linkable_title Configuration splitting %}
143
+
`ui-lovelace.yaml`only supports basic configuration splitting. Only `!include` and `!secret` are supported, be aware that content that is included with `!include` and `!secret` can not be edited from the UI.
141
144
142
145
## {% linkable_title Setting Lovelace as the Default UI %}
143
146
Once you are ready to start using Lovelace UI as your main user interface, click on info, the "i" icon under 'Developer Tools" in the Home Assistant side-bar. Next, locate >>Set Lovelace as default page on this device<< under the Home Assistant version information and click it.
@@ -174,3 +177,7 @@ frontend:
174
177
Given examples refer to `/local/example_image.jpg`. That means you should have `www` directory next to your HA `configuration.yaml`. An image kept in `HA_configuration_dir/www/example_image.jpg` will be shown after refreshing Lovelace page.
175
178
176
179
Restart Home Assistant after creating the `www` directory. Otherwise, HA will not know that you created this directory.
180
+
181
+
### {% linkable_title My `ui-lovelace.yaml` file suddenly has ID's added to all cards and views! %}
182
+
183
+
In version 0.81.0 we started preparing for the ability to edit you Lovelace UI from the UI itself. To be able to do this every view and card should have a unique ID. If your cards or views didn't had an ID, Home Assistant would add a random one. This behaviour was changed in 0.81.1, Home Assistant will no longer change your configuration without asking first. You can edit the generated ID, the only restriction is that it is unique. You could even delete the IDs if you don't want to use the UI edit functionality.
Copy file name to clipboardExpand all lines: source/lovelace/tips.markdown
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,11 @@ you with the ability to split your Lovelace configuration into multiple files.
36
36
The [Lovelace Jinja2 Script][lovelace-jinja] by [@skalavala] is a simple Jinja2 script that you run in the template editor to generate lovelace configuration based on the entities that are already setup.
37
37
38
38
<pclass='note'>
39
-
Split configuration is no longer possible in Lovelace since version 0.81, due to the fact that Home Assistant
39
+
Lovelace only has limited file splitting functionality, due to the fact that Home Assistant
40
40
will be writing directly to the `ui-lovelace.yaml` file.
41
41
42
+
Only `!include` and `!secret` are supported at the moment.
43
+
42
44
If you want to split your configuration you can use one of the tools listed above, but edits done with the UI will
43
45
be overwritten by those tools, so you should not use both.
0 commit comments