Hello there, I am asking for the advice. I am currently developing the integration and I was wondering if there is any way to program the code of the integration so that it will create and add a custom dashboard/automation. Right now I have the option that it will create a custom yaml file for dashboard. And user can download this file and manually add a dashboard himself. But I was wondering if I can manage to add this dashboard for the user. So that he doesnt have to download yaml and pasting it in his dashboard himself. Same issue with the automation.
Not sure about automations, but I believe the core component knx has a dashboard, and the custom component Smart Irrigation also creates a dashboard.
Perhaps you could look at those for inspiration.
Note they are not dashboards in the normal sense where you just specify some card yaml, it’s 100% bespoke javascript, I think you have to write all the frontend code yourself.
Custom Dashboard Strategies may also be an option, but I haven’t researched that closely.
I have done exactly that in the View Assist integration by downloading a base dashboard and views from github to build a full yaml dashboard. I didnt want to use dashboard strategies or panels. Creating the dashboard is a bit.of a hack as you have to call the webservice function internally (prior to 2025.2 there was a function call but it was removed).
We also do the same thing with downloading blueprints to allow integrations to be easily created from these templates.
Repo is here.
Look in the assets folder and you will see the code that does this.