Just starting to discover Lovelace (was using basic web interface till now) and is confused about how it works in Hassio. My config is Hass.io based and there is in it a plugin that automatically converts the basic Web interface to Lovelace.
So how to customise the lovelace interface without that plugin overwriting my config each time system reboots or there is an update in system that triggers the plugin ?
Or should I run it just one time and then delete the plugin to be sure there is no accidental overwrite ?
I tried too to add some cards in that ui-lovelace.yaml but they don’t show up in lovelace on front end (rebooted even hass.io system to be sure !).
Oki so I have disabled and removed it ! HA 0.84.3 but my cards are still not showing up in front-end ! I rebooted the system to be sure but still the same and no error in logs of HA ! Everything listed in file appears well in front-end out of the two type: glance cards I added at end of file !
Just in case here is my code:
title: Home
views:
title: Home
cards:
type: entities
title: all switches
show_header_toggle: true
entities:
I have setup my HA to use by default Lovelace and in fact my default URL gas changed since to include /lovelace/0 at the end
Thanks for your suggestions that made me do some searches about Lovelace syntax and everything and in fact discovered that HA was not using my ui-lovelace.yaml file (I had to add lovelace: mode: yaml in main config file) so now my cards appear well in HA for stats of my website
I’m just wanting to know now what is the best for lovelace management:
→ do everything in yaml file
→ delete it and remove the yaml mode parameter in config and do everything using the UI of HA ? and if so how to backup it correctly (will it create an extra file in the config directory of HA ?)
I’m new to HA and lovelace, two weeks into the journey .
The various lovelace modes were introduced just recently (0.84?). Before that no entry was required in configuration.yaml.
Personally I prefer to have full control over the appearance of lovelace as described in ui-lovelace.yaml. That file sits in the /config directory and is all that needs to be backed up (besides any custom icons, cards, images in the www folder). I have not tried the other lovelace configuration modes though.