Is there any way to affect the lovelace configuration (currently set up to use the gui editor) from projects?
For example, I generally organzie my configuration by room, so each room has a yaml project file. It’d be nice if I could also control how entities from that room appear in Lovelace from the same file. Can this be done?
If i’m right, i think you mean packages for configuring a room in one yaml file?
It’s not possible to configure the components AND the LL config in one file, but how about some project folder?
With packages, HA reads every yaml files in the packages folder, also in sub folders.
Example:
.homeassistant/packages/kitchen/kitchen.yaml
for the components,
and
.homeassistant/packages/kitchen/ui_kitchen.yaml
for the LL config,
and in the main ui_lovelace.yaml
title: Home
views:
- !include packages/kitchen/ui_kitchen.yaml
You have to use Lovelace YAML mode, the room has to be in it’s own view,
AND THIS IS ABSOLUTLY NOT TESTED (but i think it could work ).
1 Like