A powerful, interactive floorplan visualization for Home Assistant. Features a built-in visual editor to define light zones and entity placements, exporting a ready-to-use YAML configuration.
- Advanced Light Control:
- Dynamically updates Color (RGB), Brightness (Opacity), and Color Temperature.
- Visual feedback for on/off states with customizable colors.
- Simply Click to Toggle lights directly from the floorplan.
- Media Player Integration:
- Active states are visually highlighted.
- Visual Editor:
- Drag & Drop interface to draw polygon zones.
- Instant YAML export for Lovelace dashboard.
Use the online editor to:
- Upload your floorplan image.
- Define zones and entities.
- Export the YAML configuration.
You can directly link to the JS file from the master branch using JSDelivr:
- Go to Settings > Dashboards > Three dots > Resources.
- Add Resource: (replace
<version>with the version you want to use)- URL:
https://cdn.jsdelivr.net/gh/kishorviswanathan/ha-floorplan@v<version>/release/ha-floorplan-card.js - Type:
JavaScript Module
- URL:
- Click Create.
If you prefer to host it locally:
- Download
ha-floorplan-card.jsfrom thereleasefolder in the source (after runningnpm run build:card). - Upload to
/config/www/in Home Assistant. - Add Resource with URL:
/local/ha-floorplan-card.js.
Once the resource is added (via Installation steps above):
- Go to your Home Assistant Dashboard.
- Click the Pencil icon (Edit Dashboard) > Add Card.
- Scroll down and select Manual.
- Copy the YAML exported from the Visual Editor.
- Paste it into the Manual Card configuration.
- Click Save.
-
Install Dependencies:
npm install
-
Run Editor:
npm run dev
-
Build All:
npm run build # Builds Editor (dist/index.html) npm run build:card # Builds Card (dist/ha-floorplan-card.js)