Install your floorplan in Home Assistant
The zip from Bitlit contains everything: images, a dashboard.yaml and these instructions
(INSTALL.md). Nothing has to be installed in Home Assistant: it is a standard
picture-elements card.
1. Copy the images
In the zip you find a folder www/bitlit/<your-plan>/. Copy it to
/config/www/bitlit/<your-plan>/ on your Home Assistant. Ways to do that:
- Samba share add-on: open
\\homeassistant\config\wwwin Explorer/Finder and drop the folder in. - Studio Code Server or File editor add-on: create the folders and upload the files.
Did the www folder not exist yet? Restart Home Assistant once after creating it,
otherwise /local/ does not work.
2. Add the card
- Open your dashboard and click the pencil (Edit dashboard).
- Click + Add card and pick Manual at the bottom of the list.
- Paste the full contents of
dashboard.yamland click Save.
Tip: put the card in a view of type Panel to use the full width.
3. Use it
- Tap a glow to switch the light on/off, hold for the more-info dialog.
- Lamps with the same entity are one layer, so they switch together.
- With a "dark" entity (for example an
input_boolean, or a template binary sensor based onsun.sun), the night version is shown when that entity is on.
# example: a "dark outside" sensor (configuration.yaml)
template:
- binary_sensor:
- name: "Dark outside"
state: "{{ is_state('sun.sun', 'below_horizon') }}"
Troubleshooting
- I still see the old images.
- Hard-refresh (Ctrl+F5) or clear the cache of the companion app. Bitlit adds
?v=…to the image links, so new exports normally show up right away. - Broken image icon.
- The path is wrong: check that the PNG files are in
/config/www/bitlit/<your-plan>/(the folder name you chose in the export step). - Tapping does nothing.
- Check that the entity id is spelled correctly and exists. Full-size layers (the dark overlay) have
pointer-events: noneso they never block taps. - A light switches when I tap next to it.
- Each glow layer is cropped to its light, but the tap area is the rectangle around it. Overlapping lights: the one later in the YAML is on top.
Updating
Open the .bitlit.json from the zip in the editor, make changes, export again and overwrite the files
and the card YAML.