Lovelace and packages

Sure! I made a thing called the HASwitchPlate. Using it requires a bunch of things from Hass. It needs MQTT enabled and configured, it needs recorder to be turned on, it needs a handful of input_number, input_text, several groups, a custom view, an iframe for device management, and it also needs 60+ automations. All of these are required for every HASP deployed, so asking the user to create 80-some odd configuration changes for every device they install is a bit much.

So, we use packages. This way I can bundle the 80-ish configurations into a set of files all in a single folder. The script is checking to see if your configuration.yaml contains a packages: statement, and if it’s missing, it adds it. The end result is that the user can run a shell script, type in the name of their device, and all the changes are made for them through packages.

What I’d like is some means to make the same thing happen for Lovelace. I have hundreds of users, each with their own unique configuration. I’m trying to come up with a way that allows me to add items to their configuration in a generic manner, while requiring little (preferably, zero) manual intervention on their side.

Packages make this simple, and all the UI elements I need are included with those packages. The user runs a script, then they have a view with everything they need to use and interact with the device.

Any thoughts on how one might make the same thing happen w/ Lovelace?