Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

feupeu/lovelace-sparkles

Repository files navigation

✨ Sparkles

Fork of https://github.com/piitaya/lovelace-mushroom

Installation

HACS

  1. Open HACS
  2. Click the tripe dots in the top right corner
  3. Choose "Custom reposetories"
  4. Entry repository: https://github.com/feupeu/lovelace-sparkles
  5. Select category: lovelace
  6. Click "Add"
  7. Install Sparkles through HACS

Development server

Home assistant demo

You can run a demo instance of Home Assistant with docker by running:

npm run start:hass

Once it's done, go to home assitant instance http://localhost:8123 and start configuration.

Development

In another terminal, install dependencies and run development server:

npm install
npm start

Server will start on port 5000.

Home assistant configuration

Once both Home Assistant and mushroom are running, you have to add a resource to Home Assistant UI:

  • Go on your profile
  • Enable Advanced mode
  • Then go to Lovelace resources
  • Add the ressource http://localhost:5000/mushroom.js:

Build

You can build the mushroom.js file in dist folder by running the build command.

npm run build