Quick Start
Important notice before you begin the ha-floorplan journey
Please be aware that ha-floorplan
will require a good amount of your time. Take a look at our examples, if you’re getting stuck. Our Discussion area a also a good place to find help, but we’re expecting you to read the docs and give it a try, before you’re asking for help. Thanks you, for your understanding.
If you’re decided to go all in, we’ll recommend you to draw your floorplan in Floorplanner or simular tool. After that’s done, export is as an image. Sadly Floorplanner doesn’t support export as a SVG-file.
In Inkscape you’ll draw on top of the exported image from Floorplan. In other words, doing the drawings (almost) yet another time. If you find that to be a waste of time, it’s totally possible to just draw the floorplan in Inkscape without any cool-looking background. That’s your choice. In all cases remember to add ID’s to all elements in Inkscape, if you’re planning to interact with them.
After the SVG-file are done, you’re ready to create configs for each room, to match up with each element in Home Assistant. That’s another journey - but opens up for a lot of new fancy things for you to do, both with the graphics, but also how you’re interacting with the floor plan itself.
We’re improving ha-floorplan
over time, so feel free to add suggestions whenever it’s relevant. With that said, we’ve limited time to spend. For that reason you’re very welcome to improve the docs by your own, creating pull-requests and joining the discussion on GitHub.
Head over to the Discussion area whenever you’re ready to join the community.
With that said…. Good luck, and let’s get started! 🥳
Videos
Things required for you to get started
- A running installation of Home Assistant. HACS on top are recommended.
- Inkscape or similar tool
- A good amount of time to spend, for this to play out nice
Adding ha-floorplan to Home Assistant
Here you’ll learn how to add ha-floorplan to Home Assistant. You could go manual, but we’ll recommend you to stick to HACS.
HACS
The Home Assistant Community Store (HACS) is a great addition to Home Assistant and ha-floorplan is part of the its ecosystem. Therefore, we recommend installing our integration via HACS. And, why wouldn’t you use HACS? It’s one of the best things out there!
- Ensure that HACS is installed.
- Go to HACS > Integrations > Frontend.
- Select ‘Explore & Add Repositories’.
- Find ‘ha-floorplan’ and install it.
- Remember to add the
/hacsfiles/ha-floorplan/floorplan.js
as a module to your resource file - like you do with other modules. - Follow this step by step guide, to add your first Floorplan. There’s plenty of ways of doing this, but this is the best way for beginners. If you generally use YAML in HA, you may want to move on to the ‘Examples’ pages. You’ll also find useful links by looking at the What’s next-section on this page.
Manual
To avoid any frustration, installation via HACS is the recommended method.
Nevertheless, if you still prefer to do it manually, feel free to grab the latest version from the /dist directory. (Almost) stable releases can be found here.
- Download the required resources.
- Add references to the new module you just added.
- Use ha-lovelace in a card. Move ahead to our examples if you need inspiration.
What’s next?
You’ll now need to create your SVG file. It’s up to you, if you would like to have a fancy image in the background, of whether you’d like to draw everything in Inkscape.
After that’s done, it’s time to add the SVG-file to your Home Assistant instance. The CSS-file are almost a must-have for better visuals, too.
We don’t have a proper “step-by-step” guide for this part. That’s mainly due to limited amount of time, but the process are also changing a bit over time, now that Home Assistant are always under active development.
With that said, here’s a few helpful links for you to continue your journey, if you’re unsure how to progress.
How to add ha-floorplan to Home Assistant
If you’re unsure on how to get started, we’ll recommend you to look at the following post:
How to setup ha-floorplan in Hass.io
If you’re more a video-person, check this video:
Getting Started (1) | Add HACS & SVG-files and YAML entity mapping in Home Assistant
If you’re ready to create your first floorplan, check this video:
Create your first floorplan in Inkscape (1/2) | Including CSS and YAML configuration
How to start using Inkscape with a background image
If you’re unsure on how to prepare the SVG-file with your own Floorplanner image, kindly check the following answer:
First steps in Inkscape, after you’ve created your Floorplanner image
How to get started from scratch, but as a video
I’ll recommend you to take a look at this video:
Getting Started (1) Add HACS & SVG-files and YAML entity mapping in Home Assistant
Here’s another (very) long video, where there’s plenty of good tips and tricks: Home Assistant Floorplan SVG Inkscape
How to bind your Home Assistant elements with SVG elements
If you’re still facing problems on how to use your SVG-file, try visiting our live examples, and take a closer look at the YAML and CSS-tabs, to see the actual config for each solution:
How to get started with CSS
There’s plenty of tutorials related to CSS online. We’ll recommend you to give one of them a chance, and maybe even take a look at our examples in the docs.
With that said, here’s one very simple video about how to get started with CSS in ha-floorplan:
Using CSS-selectors | How CSS-styling works in ha-floorplan and in general