HA Home Assistant
Add JS card
You first need to add the js in the /config/www folder.
Then you need to reference it in the ressource (...) tab of the dashboard.
Then create an empty dashboad. Edit it and add a new card that must be automatically recognized.