first push

This commit is contained in:
jhartworks committed 2026-11-09 10:37:41 +01:00
commit 2a81b4a502
845 files changed
+356635

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
{
"pageTitle": "NextFloor documentation · NextFloor",
"desc": "Everything about NextFloor, the free 3D floor plan for Home Assistant: install, draw your home, connect devices, build cards, write plugins.",
"title": "Draw your home once. <em>Watch it live</em> in 3D.",
"sub": "NextFloor turns Home Assistant into a living 3D model of your house: lamps light their room, blinds move, doors open, the TV shows what plays. Free, local, no account.",
"cta": [["Start in 15 minutes", "quickstart"], ["Try the live demo", "https://therealmrbk.github.io/NextFloor/"]],
"shot": "view-house.jpg",
"shotAlt": "A house in NextFloor's 3D view with lit rooms and the floors apart",
"pathsTitle": "Start where you are",
"pathsLead": "The documentation follows the way you actually work. Pick the door that fits today.",
"paths": [
{ "title": "I am new here", "text": "Install NextFloor, draw the first room, place a lamp and switch it from the 3D view. About fifteen minutes, nothing to prepare.", "href": "quickstart", "go": "Start the quick start" },
{ "title": "I want my devices in it", "text": "Link lights, blinds, sensors, the TV, the car and the garden to the plan.", "href": "devices", "go": "Connect devices" },
{ "title": "I want to build on it", "text": "Dashboard card, automations, plugins and your own furniture.", "href": "cards", "go": "Connect and extend" }
],
"tourTitle": "What you get",
"tourLead": "Everything below is built in and free, and works with the devices you already have.",
"tour": [
{ "title": "A plan editor that feels like a game", "text": "Floors, rooms, curved walls, doors, windows, stairs, roofs and gardens, with the 3D model growing beside the plan while you draw. Import a scan, a CAD drawing or a Sweet Home 3D plan instead of starting from zero.", "links": [["Draw the house", "draw"], ["Import and backup", "plan-tools"]], "img": "editor.jpg", "alt": "The plan editor with the 3D view beside it" },
{ "title": "Furnish it with 800 models, or build your own", "text": "Forty basic models and forty-three free packs, from IKEA-style sofas to picture frames with your own photos. The furniture studio and the browser builder make anything that is missing.", "links": [["Furnish", "furnish"], ["Furniture packs", "packs"]], "img": "new-furniture.jpg", "alt": "Furniture from several packs in a room" },
{ "title": "Tap a lamp, watch the room answer", "text": "Lights glow in their real colour, blinds travel, windows and doors open, the TV shows what plays, rain falls outside. The room panel puts every device of a room in one place.", "links": [["The 3D view", "view3d"], ["Live features", "live"]], "img": "view-room.jpg", "alt": "A room in 3D with its lamps and the room panel" },
{ "title": "Climate, sun and energy, by room", "text": "Heat maps for temperature, humidity, CO₂ and mould risk, the hours of sun per room, and the power flow along the real cable routes of your house.", "links": [["Climate and energy", "climate-energy"], ["Outside and roof", "outside"]], "img": "view-energy.jpg", "alt": "The house with the energy flow from the solar field" },
{ "title": "Made for the wall tablet", "text": "A dashboard card with a visual editor, kiosk mode that dims at night, announcements on every screen, and quality that steps down by itself on slow hardware.", "links": [["The card", "cards"], ["Wall tablet", "tablet"]], "img": "tablet.jpg", "alt": "NextFloor on a wall tablet" }
],
"refsTitle": "Look something up",
"refs": [
{ "title": "Reference", "links": [["Card options", "cards"], ["Services and sensors", "automations"], ["Plan format (JSON)", "plan-format"], ["Keyboard and gestures", "shortcuts"]] },
{ "title": "Extend", "links": [["Write a plugin", "plugins"], ["Furniture pack format", "packs"], ["Own 3D models", "models"]] },
{ "title": "Get unstuck", "links": [["FAQ and troubleshooting", "faq"], ["Changelog", "changelog"], ["Contributing", "contributing"]] }
],
"promiseTitle": "Free forever, and the licence says so",
"promise": [
"Every feature, every furniture pack and every update is free for everyone. There is no Pro version, no paid add-on, no supporter pass and no licence key.",
"Your data stays in your Home Assistant. No account, no cloud, no usage data. NextFloor is MIT licensed, so nobody can take it away, not even its author."
],
"stats": [["43", "furniture packs"], ["~800", "models"], ["19", "languages"], ["0", "euros, ever"]]
}
+67
View File
@@ -0,0 +1,67 @@
---
title: Announcements
description: "Dinner is ready!" in the room that should hear it: through its speaker and on every open NextFloor screen.
---
*"Dinner is ready!"* – and the room that should hear it, hears it.
## From a room
When a room has a speaker, its panel has an **📢 Announcement** section. Tap a sentence or type your own, and the room's speaker says it. Your own sentences go into *Editor → Settings*, one per line.
## Which speaker is used
NextFloor picks, in this order:
1. the speaker chosen in the room's form
2. a speaker placed in the room
3. a voice assistant (Voice PE and other satellites), an Echo or a speaker of the room's area
A TV or a speaker that is off is never picked by itself.
| Speaker | How it announces |
|---|---|
| Voice assistants | with their chime |
| Echo | as a real announcement (Alexa Devices or Alexa Media Player) |
| Sonos and others that support it | lower their music and play on afterwards |
| Any other speaker | through Home Assistant's text-to-speech |
## Quiet time per room
In the room's form, for example 20:00–07:00 for a nursery. Announcements to several rooms then leave that room out; one meant only for it still gets through.
## On the screens
Every open NextFloor page (panel or card) shows the message big over the house, plays a soft chime and speaks it. **An old wall tablet becomes an announcement speaker.**
- Give a screen a name under ⚙ → 📢 (for example *Hallway*) to send announcements to it alone, or untick it there to keep it silent.
- Browsers play sound only after the page was tapped once. In Fully Kiosk, switch on *Autoplay Audio* (Web Content Settings).
## In automations
The action **NextFloor: Announcement**:
```yaml
action: nextfloor.announce
data:
message: "Someone is at the door!"
rooms: [Kitchen, Living room] # by name, room id or area id; leave out for every room with a speaker
on_screens: true # the open NextFloor screens show and speak it too
screens: [Hallway] # optional: only these screens
```
| Field | Meaning |
|---|---|
| `message` | the text (required) |
| `rooms` | room names, room ids or area ids; leave out for every room with a speaker |
| `floor` | limits it to one floor |
| `on_speakers` | `false` keeps the speakers silent |
| `on_screens` | `false` keeps the screens quiet |
| `screens` | only these named screens |
| `tts_entity` | picks the voice |
The action returns which speaker said it and which rooms were left out, and why.
## Next
[Wall tablet →](tablet.md)
+60
View File
@@ -0,0 +1,60 @@
---
title: Services and sensors
description: The sensors and actions NextFloor adds to Home Assistant, with examples for notifications and announcements.
---
NextFloor adds a small, stable surface to Home Assistant: two kinds of sensors and two actions.
## Sensors
On the device *NextFloor* you find:
| Sensor | Counts |
|---|---|
| *Open windows and doors* | the contacts, garage doors and device pins of the plan that are open |
| *Lights on* | the lamps of the plan that are on |
There is one of each **for the house** and one **for every floor**. The attribute `entities` lists what is open or on.
Example: a notification when the alarm is armed while something is open:
```yaml
action: notify.mobile_app_phone
data:
message: >
Still open: {{ state_attr('sensor.nextfloor_open_windows_and_doors', 'entities') | join(', ') }}
```
> [!TIP]
> Look up the exact entity ids under *Settings → Devices & services → NextFloor*. They follow the names of your floors.
## Actions
### `nextfloor.announce`
Speaks a message in the right rooms and on the open NextFloor screens. All fields are in [Announcements](announcements.md#in-automations).
```yaml
action: nextfloor.announce
data:
message: "Someone is at the door!"
rooms: [Hallway]
```
### `nextfloor.reload_screens`
Makes open NextFloor pages load again a few seconds apart, for example after an update. With `template` only the cards that use that [card template](cards.md#card-templates) reload.
```yaml
action: nextfloor.reload_screens
data:
template: kitchen_tablet
```
## Everything off
*⏻ Everything off* is a button in the room panel and on the floor bar, not an action. It switches off lights, switches, fans and media, and *↶ Undo* brings them back for ten seconds.
## Next
[Write a plugin →](plugins.md)
+62
View File
@@ -0,0 +1,62 @@
---
title: Bluetooth locating
description: Find out which room a Bluetooth tag, watch or phone is in, learned by walking through the rooms, from the Bluetooth scanners Home Assistant already has.
---
NextFloor can tell **which room a Bluetooth tag is in**: a key fob, a watch, a phone. You walk through the rooms with the tag once and record each room. Afterwards a sensor in Home Assistant shows the room name, and with *Presence* the person's avatar stands in that room.
> [!WARNING]
> **This feature is new and experimental.** It is built and tested with simulated signals, not yet with a long run in a real house. Radio signals bounce off walls and people, so expect a wrong room now and then, mostly next to a wall between two rooms. Tell us how it works for you in the [discussions](https://github.com/therealMRBK/NextFloor/discussions).
## What you need
The method needs **at least two Bluetooth scanners, three or more is much better**, in different rooms. A scanner is anything that Home Assistant uses to listen to Bluetooth:
- an **ESPHome Bluetooth proxy** (an ESP32 board, a few euros),
- a **Shelly device** (Gen2 and newer) with Bluetooth scanning switched on: in Home Assistant open the Shelly entry, press *Configure* and set the Bluetooth scanner mode to *passive*, *active* or *auto*. Shellys in the walls make good scanners, because they sit in many rooms,
- the **Bluetooth adapter of the server** itself.
With only one scanner, NextFloor can tell near from far, but not one room from the next.
The tag can be:
- a **Bluetooth tag with a fixed address** (key fobs, many fitness bands, an ESP32 beacon),
- a **phone or watch** through Home Assistant's [Private BLE Device](https://www.home-assistant.io/integrations/private_ble_device/) integration. Phones and watches change their Bluetooth address all the time; Private BLE Device follows them with their *identity resolving key*. NextFloor then asks that integration for the current address. Getting the key from an iPhone takes some effort, and the integration's page explains how.
## Set it up
1. In the editor, open **Settings → Bluetooth locating**.
2. Under *Add a tag or device*, pick your tag. Phones and watches from Private BLE Device are listed first. A tag only appears in the list once a scanner has heard it, so hold it near a scanner and press *Reload the list*.
3. Press **Add**, then **Learn rooms** on the new tag. The bars show how strongly every scanner hears the tag right now.
4. Pick a room, press **Record** and walk slowly through the whole room for 30 seconds with the tag in your hand, into the corners too.
5. Repeat for every room in which you want to locate the tag. **Now** shows the room NextFloor would answer at this moment, a good check after each room.
Recording a room again replaces it. Each room is kept as up to three recordings from different stretches of your walk.
## The sensor
Every tag gets a sensor on the device *NextFloor*. Its **state is the room name**, or `unknown` when no room fits well or no scanner has heard the tag for two minutes. The attributes carry the room id, the floor, how well the room matched (`distance_db`) and what each scanner hears.
```yaml
automation:
- alias: "Lights follow me"
triggers:
- trigger: state
entity_id: sensor.nextfloor_keys
to: "Kitchen"
actions:
- action: light.turn_on
target:
area_id: kitchen
```
The room only changes after three readings in a row (about six seconds), so the answer does not flicker. To show the person in 3D, choose the sensor as the room sensor of that person under **Presence**: its state is a room name, as Presence expects.
## How it works, and what it does not do
NextFloor reads the signal strength (RSSI) that each scanner reports for the tag, a few seconds apart, and takes the median of the last five readings. It compares that pattern with the recordings of every room and picks the nearest. A room is only answered when it is close enough; otherwise the answer is `unknown`.
- Nothing leaves Home Assistant. The recordings are stored with the plan, but **not** in shared plans and templates.
- The scanners must keep their place. If you move a proxy, record the rooms again.
- A person's body weakens the signal. Record with the tag where you normally carry it (pocket or hand).
- Different tags hear differently, so each tag needs its own recordings.
+119
View File
@@ -0,0 +1,119 @@
---
title: The dashboard card
description: Add the NextFloor card to any dashboard, with a visual editor, card templates and a complete list of every option.
---
![The NextFloor card on a dashboard](card.jpg)
Add **NextFloor** in the dashboard's card dialog, or write it in YAML:
```yaml
type: custom:nextfloor-card
floor: ground
theme: neon
room_buttons: true
```
The **visual editor** sets everything below without YAML. The YAML names are the ones in this reference. Every option is optional, and the defaults are shown in the tables.
## Card templates
Set a card up once and use it on many tablets. *Settings → Card templates* in the editor takes a name (say `kitchen_tablet`) and the card's own settings dialog. On a dashboard card, choose the template in its settings or write:
```yaml
type: custom:nextfloor-card
template: kitchen_tablet
```
The card's own options win. A change in the editor reaches every card that uses the template. *Reload screens with this template* and *Reload all screens* (also the action `nextfloor.reload_screens`, with an optional `template`) make the open tablets load their page again a few seconds apart, for example after an update.
## What the card shows
| Option | Default | Meaning |
|---|---|---|
| `floor` | | start floor |
| `room` | | start in this room (its id from the editor), for a display of one room |
| `rooms` | | only these rooms (a list of ids) with what stands in them; the card cannot leave them |
| `height` | | fixed height of the card |
| `fill` | `false` | fill the screen below the dashboard header instead of a fixed height |
| `plain` | `false` | floor plan only: no furniture (devices and their pins stay) |
| `floor_stack` | `dim` | an opened floor with the floors below dimmed (`dim`), stacked (`stacked`) or alone (`single`) |
| `explode` | `true` | pull the floors apart in the house view |
| `roof_fade` | `true` | the roof lifts and fades while you zoom in |
| `room_names` | `true` | room names in 3D |
| `energy` | `true` | energy values at the top |
| `sensor_bar` | `true` | the plan's own sensors at the top |
| `weather` | `true` | rain, snow, fog, clouds, sun and moon outside the house |
| `weather_entity` | first one | the weather entity to use |
| `weather_density` | `1` | how much rain, hail and snow falls, 0.1 … 1 |
| `today` | `true` | the *Today* card with appointments and bins |
## Look
| Option | Default | Meaning |
|---|---|---|
| `theme` | `auto` | `neon`, `blueprint`, `day` |
| `accent` | cyan | accent colour as `#rrggbb` |
| `furniture_colors` | the house's | this card's own furniture colours, e.g. `{body: "#3a2a1a", fabric: "#552233"}`; roles: `body`, `wood`, `fabric`, `white`, `metal`, `dark` |
| `walls` | | wall mode of the view |
| `solid_walls` | `false` | opaque walls in their paint instead of glass |
| `glass_walls` | `20` | how opaque the see-through walls are, 0 … 100 % |
| `quality` | auto | `auto`, `tablet`, `high` |
| `markers` | `important` | `none`, `important`, `all` |
| `markers_outside` | | outside the opened room only markers of these kinds show |
| `marker_names` | `false` | every device with an own name shows it under its marker |
| `heatmap` | `none` | `none`, `temperature`, `humidity`, `co2` |
| `clock` | `none` | `top_left`, `top_right`, `bottom_left`, `bottom_right` |
| `readable` | `false` | stronger contrast and larger text, for wall tablets |
| `zoom` | `1` | how much closer the fitted views come, 0.6 … 2.5 |
| `stats` | `false` | show frames per second and draw calls |
## Controls and behaviour
| Option | Default | Meaning |
|---|---|---|
| `controls` | | switches in the card: all (`true`) or a list of `walls`, `floors`, `temperature`, `humidity`, `co2` |
| `controls_hidden` | | start with every bar and overlay hidden (the eye button brings them back) |
| `controls_hide_after` | | hide every bar after this many seconds without a touch |
| `room_panel` | `true` | tapping a room opens its details |
| `room_buttons` | `false` | a row of buttons, one per room |
| `floor_thumbs` | on without a start floor | small pictures of the floors to switch between them |
| `central` | `true` | the star with the central menu |
| `central_open` | `false` | the star menu stands open from the start, a size larger |
| `buttons` | | own buttons in the central menu: `label`, `icon`, `action` (`navigate`, `more_info`, `service`, `fire_dom_event`), `target`, `data` |
| `scenes` | `true` | scene and script chips of the selected room |
| `tap_in_room` | `false` | devices are switched by a tap only in the opened room; elsewhere a tap opens the floor or room (a long press still acts) |
| `room_double_tap` | `auto` | what a double tap on a room switches: `auto`, `area`, `plan`, `off` |
| `keep_camera` | `false` | switching floors keeps the camera's side, height and distance |
| `right_back` | `false` | a short right click goes one step back |
| `start_view` | plan's | a start view of this card's own |
| `lock_button` | `true` | the 🔒 button that locks the camera |
| `walk_button` | `true` | the 🚶 button for walking through the house |
| `time_travel` | `true` | the ⏪ button for replaying the last day or week |
| `fullscreen_button` | `false` | a button for full screen |
| `dashboard`, `dashboard_label` | | a button to another dashboard or view |
| `flows` | switch | power flow lines always on or off |
| `holograms` | switch | the live cards (energy balance, car, media) always on or off |
## Warnings and announcements
| Option | Default | Meaning |
|---|---|---|
| `alerts` | `true` | smoke, water, alarm and window-in-the-rain warnings as pulsing rooms and a banner |
| `alert_jump` | `false` | jump to the room of a new warning |
| `announcements` | `true` | announcements show and speak on this card |
| `screen_name` | panel's name | the name of this screen, for announcements meant for some screens only |
## Kiosk
| Option | Meaning |
|---|---|
| `idle_return` | seconds without a touch before returning to the start view (0 = never) |
| `night` | dim at night: `off`, `sun` or a range such as `22:00-06:00` |
| `idle_orbit` | after the idle return, turn the view slowly until the next touch |
More in [Wall tablet](tablet.md).
## Next
[Services and sensors →](automations.md)
+5
View File
@@ -0,0 +1,5 @@
---
title: Changelog
description: Everything that changed in every NextFloor release, newest first.
generated: changelog
---
+46
View File
@@ -0,0 +1,46 @@
---
title: Climate and energy
description: Heat maps for temperature, humidity, CO₂ and mould risk, hours of sun and power per room, the Wi-Fi map, and the energy flow of your house.
---
![Heat map of the house by temperature](view-heat.jpg)
## Heat maps
The map selector in the 3D view colours every room by a value. Besides **Temperature**, **Humidity** and **CO₂** there are:
| Map | What it shows |
|---|---|
| **Mould** | the risk at each room's coldest wall, with a comfort score |
| **Values** | the numbers per room, with airing hints |
| **Wi-Fi** | each access point's reach on the floor, its devices, and which network devices are offline |
| **Sun** | the hours of sun each room gets today through its windows |
| **Power** | what each room draws right now |
The temperature scale is a summer scale from May to September and a winter scale otherwise.
> [!NOTE]
> The **sun hours** are worked out from the plan itself: its windows, the compass and the sun's path. Set the [compass](outside.md#compass-and-map) before you trust them.
## In the room panel
- The room's **temperature over the last 24 hours** and when to air it.
- Today's and this month's **kWh and cost** for the room.
- The **sun over the year**, a **shade hint** when the sun heats the room, and a hint when a window stands open while the heating runs.
- **Low batteries** and **lights left on in empty rooms** are collected as hints.
- **Underfloor heating** glows on the floor of rooms where you named its thermostat, valve or switch.
## Energy
The energy features need a **solar field**, a **meter** and an **inverter**. Battery and grid connection are optional. Setup is in [Outside, roof and energy](outside.md#energy).
- **Power flow:** particles run from the solar modules to the inverter, the house, the battery and the grid, along the real [cable routes](outside.md#energy) you drew. A glass card shows the balance and your self-sufficiency; the small button in its corner folds it down to the ring and the solar power (on phones and desktops alike, the browser remembers it).
- **Battery:** a home battery shows its charge on its front.
- **Meters:** gas and water meters add their readings to the balance.
- **Floor meter:** a power sensor per floor shows its value on the floor label and its share of the house.
- **House card:** the energy card over the roof shows the last 24 hours as a curve (solar as an area, consumption as a line) and the last **seven days** as bars. It also stays above an opened floor.
- **Standby eaters:** the plan check lists devices that draw power while idle, with their yearly cost.
## Next
[Household and pets →](household.md)
+53
View File
@@ -0,0 +1,53 @@
---
title: How NextFloor works
description: The ideas behind NextFloor in five minutes: plan, areas, entities, the 3D view and what is stored where.
---
NextFloor has a small number of ideas. Once you know them, every other page of this documentation is easy to place.
## The plan is the centre
You draw your home once, as a **plan**: floors, rooms, walls, doors, windows, stairs, roofs, outdoor areas and furniture. Everything else is made from the plan. The 3D view, the room panel, the heat maps, the dashboard card and the printed floor plan are different ways of looking at the same data.
## Areas link rooms to devices
A **room** in NextFloor points at an **area** of Home Assistant. That is how NextFloor knows which devices belong where. When you open a room's form, the *Devices* section lists the devices of that area, and you place the ones you want on the plan.
Devices without an area, or from another area, are still reachable through the *Other areas* and *No area* tabs.
## Placing a device never switches it
Placing a lamp, linking a blind or choosing an entity only tells NextFloor *what a picture stands for*. NextFloor never switches anything by assigning it. It reads the live state of the entity, and only a tap in the 3D view sends a command.
## Furniture is the face of a device
A piece of furniture is a 3D model. Some pieces are **electric** (a lamp, a TV, a washing machine) and can be linked to an entity; the model then shows the state: the lamp glows, the TV shows the running app, the washer shows the minutes left. Other pieces are decoration.
## One plan, several views
| View | What it is for |
|---|---|
| **3D view** | The house as a model. Tap, swipe and long-press to control things. |
| **Room panel** | Every device of one room in one list, with scenes and quick menus. |
| **Editor** | Where you draw and link. Administrators only. |
| **Dashboard card** | The 3D view as a card, for any dashboard or wall tablet. |
| **Plan on paper** | Each floor at 1:100 with measurements and a table of areas. |
## What is stored where
| Data | Where |
|---|---|
| The plan, its pictures, your furniture packs | Home Assistant's `.storage` folder, on your installation |
| Plugins and extra models | Your Home Assistant, `www` folder or the store |
| Map tiles (only if you switch the real map on) | Loaded by your browser straight from the map server |
| Anything else | Nowhere. There is no account, no cloud and no usage data |
## What NextFloor adds to Home Assistant
- A sidebar panel and the card `custom:nextfloor-card`.
- Sensors for open windows and doors and for lights on. See [Services and sensors](automations.md).
- Actions such as `nextfloor.announce`. See [Announcements](announcements.md).
## Next
[Draw the house →](draw.md)
+55
View File
@@ -0,0 +1,55 @@
---
title: Contributing
description: How to report a bug, add a translation, build furniture or send a pull request.
---
NextFloor is free and open source out of conviction. Whatever you add belongs to everyone, under the MIT licence.
## Ideas and bugs
- **Ideas and questions:** [Discussions](https://github.com/therealMRBK/NextFloor/discussions).
- **Bugs:** [Issues](https://github.com/therealMRBK/NextFloor/issues/new/choose). Include the version, what you did, what you expected and what you saw. A screenshot helps.
- **Security problems** go through [private reporting](https://github.com/therealMRBK/NextFloor/security/advisories/new), never a public issue.
## Translations
German and English are built in. Further languages are files in `frontend/lang/<code>.json`, with the keys of `frontend/src/i18n.ts`. They are fetched only when Home Assistant runs in that language, and a key a file lacks falls back to English. A pull request that completes a language is very welcome. This documentation also exists in German and English: the Markdown sources are in `docs/content/en` and `docs/content/de`.
## Furniture and plugins
- **Furniture:** build it in the [browser builder](https://therealmrbk.github.io/NextFloor/builder/) and share it in the community store. See [Furniture packs](packs.md). Please use only sizes and shapes you made yourself.
- **Plugins:** see [Write a plugin](plugins.md) and the [plugin store](https://github.com/therealMRBK/NextFloor-Plugins).
- **3D models you own** stay on your own Home Assistant and never go into the repository. See [Your own 3D models](models.md).
## Before a pull request
```bash
cd frontend
npm install
npm run typecheck
npm test
npm run build # the built bundles are committed; CI fails when they are stale
cd ..
ruff check . && ruff format --check .
pytest -q # the Home Assistant side
```
- Keep a change small and say what it is for.
- Commit messages follow Conventional Commits: `feat:`, `fix:`, `docs:`, `build:`, `test:`.
- Every change users notice goes into `CHANGELOG.md` under **Unreleased**, in the same commit.
- Work happens on `dev`; `main` is what HACS users receive and moves with releases.
The full guide is [CONTRIBUTING.md](https://github.com/therealMRBK/NextFloor/blob/main/CONTRIBUTING.md).
## Building this documentation
The site is built from `docs/content` by `tools/docs`:
```bash
cd tools/docs
npm install
npm run build # writes tools/docs/dist
npm run check # fails on broken links, missing images or a page that exists in only one language
```
Every page exists in English and German. Callouts use `> [!NOTE]`, `> [!TIP]`, `> [!WARNING]` and `> [!IMPORTANT]`. A numbered list with three or more items becomes a step list.
+78
View File
@@ -0,0 +1,78 @@
---
title: Connect devices
description: Link lights, blinds, TVs, printers, the car, pets and more to the plan. Favourites, own buttons and own warnings.
---
In a room's form, the **Devices** section lists the Home Assistant devices of that room's area. Tabs: *This area*, *Other areas* and *No area*; search by name.
Each row has an eye (hide it from the 3D room panel), *Aa* (an own name), a star (add it to the room panel without placing it) and *Place*.
> [!NOTE]
> Entity fields are searchable: type part of a name and pick. **NextFloor never switches anything by assigning it.**
## Lights
Placing a light turns it into a lamp. The lamp's form has these options:
| Option | What it does |
|---|---|
| *Light or switch* | names the light that belongs to the lamp |
| *Colour and brightness from* | for bulbs switched by a relay and dimmed elsewhere |
| *Glow in 3D* | scales the glow |
| *Ask before switching* | protects against accidental taps |
| *Marker in 3D* | decides about the pin above the lamp |
**Lamps with several bulbs:** *Bulb 2, 3 …* adds a night light or ambient ring of the same fixture. The lamp glows with them while its main light is off.
**Light programs:** under *Effect animations in 3D* you map every exact effect name Home Assistant reports to a look: *Static*, *Rainbow*, *Pulse* or *Flicker*. Unmapped effects stay static, because an effect name is only the name of a program. The mapping is stored with the plan and never writes to Home Assistant.
## Electric furniture
Furniture such as a TV, a fridge or a washer finds its entity in the same area by itself (*Automatic*). Technical devices (inverter, battery, PC …) also take a temperature sensor as *Device temperature*: its value shows on the pin, from 60 °C the pin is highlighted.
- **TVs** show the colour and title of the running app. *Glow behind the TV* sets or switches off the ambilight.
- A **power sensor** shows the watts. Every electric piece shows its draw beside its state, and its status lights glow while it runs.
- **Washer, dryer, dishwasher:** with a remaining-time sensor, the pin says "25 min left".
## Blinds
A window's *Kind of blind* is a roller shutter outside, a venetian blind whose slats follow the tilt, or a roller blind inside.
- *Second blind* covers the right half of a wide window.
- *Favourite position "My"* adds a **My** button to the blind's quick menu (for example Somfy).
- Roof windows take a blind and contacts too. See [Outside, roof and energy](outside.md).
## Doors, locks and gates
A door takes a **smart lock**: tap the door to lock or unlock, and it glows while unlocked. **Gates** in fences open in 3D after the state of an entity or contact you choose. See [Outside, roof and energy](outside.md#gates-in-fences).
## Printer, heat pump, car
- **3D printer and heat pump:** link the printer or heat pump from the packs to any entity of its device. A live card shows the print (picture, progress, time left, layer, temperatures, filaments, and the print grows on the bed) or the heat pump (mode, flow and return, power, heat, COP).
- **Car (parking spot):** from the library section *Parking*. *Vehicle* picks the model, *Sensor "car present"* decides when it shows, and through any entity of the car NextFloor finds charge, range, plug, lock and climate on the car's device. Without a sensor the vehicle is always shown.
## Garden and pets
- **Robot mower:** a mower or dock from *Garden 2* linked to a `lawn_mower` mows lanes over its lawn while it mows.
- **Robot vacuum:** a `robot_vacuum` on the plan can show its real position and track. See [Robot vacuum on the plan](live.md#robot-vacuum-on-the-plan).
- **Pets:** a pet's *Room sensor* (Bermuda, ESPresense) lets it roam the room it really is in.
- More: [Household and pets](household.md).
## Presence: people in their rooms
*House settings → Presence* lists every `person`. Pick a **room sensor** (ESPresense, Bermuda or similar, whose state is the room name) and, while the person is home, their avatar with the Home Assistant picture stands in that room. People are counted per floor in the house view.
- **Default room:** every person can have a default room. While they are home and no room sensor names a room, they stand there, so a room sensor is not required.
- **Another entity:** below the list, add an input helper, a device tracker or a binary sensor. It counts as home while its state is `on` or `home`.
## Favourites, buttons and warnings
**Favourites and own buttons** (Settings, *Favourites*): scenes, scripts, automations, switches and buttons for the central menu. Own buttons open a dashboard path, entity details, a service call or a browser_mod popup. *Station or playlist* adds speaker presets, and a preset can be kept to some speakers.
**Own warnings** turn any entity into a line in the warning bar. Match a state, several states separated by commas, or a number with `<20` or `>80`, and give a text, a room and a colour.
**Calendars for "Today"** fill the *Today* card.
## Next
[Outside, roof and energy →](outside.md)
+78
View File
@@ -0,0 +1,78 @@
---
title: Draw the house
description: Floors, rooms, walls, doors, windows, stairs and templates in the NextFloor plan editor.
---
Open the **Editor** tab (administrators only). The toolbar holds the tools, the side panel always shows what is selected, and the hint at the bottom names what the active tool does. **Undo** (Ctrl+Z) takes back almost everything.
![The plan editor with the 3D view beside it](editor.jpg)
## Floors
*Add floor* offers the floors of Home Assistant, which keeps plan and Home Assistant connected, or an *Empty floor*. The floor form sets the name, the elevation, the ceiling height and the Home Assistant floor.
- *Shift* and *Turn 90°* move or turn the whole floor; *Take all floors along* applies it to the whole house.
- *Create rooms from HA areas* places one room per area as a starting point.
- *Duplicate floor* puts a copy on top of the house, optionally with furniture, device pins and outdoor areas. The copy is detached from Home Assistant and set up for the new storey.
- *Close gaps* in the floor form joins hairline gaps between rooms.
## Rooms
- **Rectangle:** drag.
- **Free shape:** place the corners, close the shape by tapping the first corner or pressing Enter. Esc cancels.
- Corners snap to the grid and to existing walls. Hold **Alt** to switch snapping off for one move.
Describe each room in the side panel: name, **Area** (the link to your Home Assistant devices) and **Floor** material. Position and size can be typed. Drag a corner handle to reshape the room; the **+** on an edge adds a corner. A rectangular room shows its inside size from wall to wall.
> [!TIP]
> **+ Area within the room** adds Home Assistant areas that are part of the room but have no walls of their own, such as a reading corner or a kitchenette. Their devices then belong to the room.
*Underfloor heating* names the thermostat, valve or switch whose heating makes the floor glow.
## Walls
Walls come from the room edges. Each edge has a height, a thickness, a scissors button that splits it into parts, and *No wall* for open edges.
- A lower height makes a parapet or a counter.
- A split edge can have its own thickness on every part.
- **Free-standing walls** use the *Wall* tool. Hold Shift to keep them straight.
- **◠ Arc** on an edge, or on a free wall, opens the *Bulge* field: enter how far the middle bulges (negative bulges into the room), then press *Bend*. A neighbouring room along the whole wall bends with it, and doors and windows move along. A room that touches only part of the wall, or a free wall on it, stays straight. If a door or window is too wide for a deep arc, the wall does not bend and a note says why.
- **Sloping free walls** have a height at each end for gables, ramps and sloping parapets.
## Doors and windows
Choose *Doors & windows*, tap a wall and pick the kind: door, front door, double door, window, double window, terrace door, French doors, garage door or glass wall. Set the width, the position from the corner, the sill and the height, and swap the hinge side or opening direction. The style *Automatic* picks a front door outside and a room door inside.
More on doors and windows lives in [Outside, roof and energy](outside.md#doors-and-windows-more) (smart locks, light wells) and in [Connect devices](devices.md#blinds) (blinds).
## Stairs and openings
The *Stairs* tool draws a stair where you drag; it runs along the long side.
| Setting | Options |
|---|---|
| Shape | straight, quarter turn, L with landing, half turn, U with landing, spiral |
| Direction | turns left or right |
| Build | solid, stringers, spine, cantilever; with or without risers and railing |
The rise comes from the floor height, and the form shows rise, tread and step length and warns about uncomfortable measures. *Leads down* makes a descent to a cellar that does not need to be drawn.
A stair opens the ceiling only where less than 2.2 m of headroom remains above the steps. The stairs from the *Stairs & railings* pack cut out their whole footprint. **Floor opening** cuts any other hole, for a gallery or a shaft.
## Template: trace a floor plan image
*Template (floor plan image)* puts a picture behind the plan. Move, scale, turn and straighten it, set the scale from a length you know, then trace it. For a scan or CAD file you can also [import it directly](plan-tools.md#import-from-other-programs).
## Lock
The *Floor plan* lock stops rooms, walls, openings and outdoor areas from moving by accident. Single pieces can be fixed with *Fix*.
## Useful switches
- **3D beside** shows the 3D model next to the plan while you draw.
- *View as this floor's / room's start* remembers the current 3D camera for later.
- **Right-click** (or long-press) a spot to pin a [note](plan-tools.md#notes).
## Next
[Furnish →](furnish.md)
+78
View File
@@ -0,0 +1,78 @@
---
title: FAQ and troubleshooting
description: Answers to the questions people ask most, and fixes for the problems people run into.
---
## Questions
### Is NextFloor really free?
Yes, for good. Every feature, every furniture pack and every update is free. There is no Pro version, no paid add-on, no supporter pass and no licence key, and the MIT licence means nobody can take it away.
### Does it need a cloud or an account?
No. The plan, its pictures and the packs are stored on your Home Assistant. The only thing that can leave your installation is the map tiles, and only if you switch the real map on.
### Is it in the official Home Assistant integrations, without HACS?
No. NextFloor is in the **official HACS store**. The built-in integration list of Home Assistant is a separate process with its own rules (a published device library, a bundled frontend that fits Core's rules, a monthly release rhythm), and it does not suit a plan editor with its own frontend and fast fixes.
### Which Home Assistant version do I need?
2025.1 or newer.
### Can I switch things from NextFloor by accident while drawing?
No. In the editor, placing or linking a device never switches it. In the 3D view, a tap switches; *Ask before switching* on a lamp protects against accidental taps, and the 🔒 button locks the camera.
### Can several people use it?
Everyone with access to Home Assistant can use the 3D view and the card. Only administrators see the editor and save changes.
### Can I have several floor plans in one installation?
Not yet. One plan per installation is how NextFloor works today; the idea is being discussed in the [discussions](https://github.com/therealMRBK/NextFloor/discussions).
### I do not have the furniture I need.
Build it in the [furniture studio](furnish.md#the-furniture-studio) or the [browser builder](https://therealmrbk.github.io/NextFloor/builder/), or look in **Extensions → Community furniture**.
## Troubleshooting
### A device is missing from the room
The room needs an **area**, and the device must belong to it (device or entity). Otherwise use the *Other areas* or *No area* tabs.
### The panel looks old after an update
Reload the browser tab. On the companion app, reset the frontend cache and close the app completely. **A restart of Home Assistant does not help for this.**
### Furniture shows as grey boxes
Its pack is not installed. Import it again under *Extensions → Furniture packs*, and everything is back.
### The car does not appear
Check the *Sensor "car present"*. Without a sensor the vehicle is always shown.
### The solar field lands on the wrong roof side
Check the [compass](outside.md#compass-and-map) in Settings. If north and south are swapped, use *Swap north ↔ south*.
### It is slow on a tablet
Set the quality to *Tablet* and switch weather and power flow off. See [Wall tablet](tablet.md).
### Saving fails
Only administrators can save. The message names the field Home Assistant rejected, and your changes stay in the browser until you can save. After an update, Home Assistant may need a restart before saving works again.
### Announcements make no sound on the tablet
Browsers play sound only after the page was tapped once. In Fully Kiosk, switch on *Autoplay Audio*.
## Still stuck?
- Ideas and questions: [Discussions](https://github.com/therealMRBK/NextFloor/discussions)
- Bugs: [Issues](https://github.com/therealMRBK/NextFloor/issues/new/choose), with the version, what you did and what you saw
- Security: [private report](https://github.com/therealMRBK/NextFloor/security/advisories/new), never a public issue
+85
View File
@@ -0,0 +1,85 @@
---
title: Furnish
description: The furniture library, packs, the furniture studio, resizing, tilting and special pieces such as sofas, picture frames and light switches.
---
Choose the *Furniture* tool, tap a room, and pick from the library on the right. New pieces appear in the middle of the room.
![Furniture from several packs in a room](new-furniture.jpg)
## The library
- It has sections (lights, living, dining, kitchen, sleeping, bath, work, parking) followed by the **furniture packs**. NextFloor ships 40 basic models and 43 packs with about 800 more.
- The **search** finds German and English names, pack names and several words in any order.
- Furniture is sorted by kind (seating, beds, kitchen …) with a picture and its size. A model that comes in several sizes is one card with size chips.
- With a room selected, what fits it comes first (*Fits …*). *Show all rooms* lifts that.
- Filters: ⚡ can be linked to a device, 💡 glows, 🌳 outdoors. ★ Favourites and *Recently used* sit on top.
## Move, resize, copy
- Drag to move, drag the corners to resize, use the turn handle, or type position, size and rotation.
- **Mirror** flips left and right. **Duplicate** copies. **Fix** locks a piece. **Move to floor** takes it to the same spot on another floor.
- **Resizing** keeps legs, arms, plates and handles at their real size; only the middle grows.
- **Tilt:** *Tilt front/back* and *Tilt sideways* (degrees) lean a ladder, tilt a picture or follow a sloped shelf. Owned 3D models are not tilted.
- **Place spots:** a room's *Place spots* lays out a grid of lamps (columns × rows) that all follow one light, undoable in one step.
- **Wall view (▣):** in a room's wall list, *Wall view* shows a wall from the front with its doors, windows and the furniture against it. Drag, or type the distance and height.
## The furniture studio
*🛠️ Build your own piece* sits at the top of the library.
1. Pick a template: cabinet, shelf, lamp or device.
2. Type the measurements in centimetres and set doors, drawers, boards, handles, base and colours. The front view follows every change.
3. *Put in the plan* stores it in the pack *Own furniture*, so it also shows in the library.
To change it later, select the piece and press *Change in the studio*. Every copy in the plan takes the new size.
> [!TIP]
> Need something the studio cannot make? The browser-based [furniture builder](https://therealmrbk.github.io/NextFloor/builder/) builds a model exactly as NextFloor draws it, and you can share it. See [Furniture packs](packs.md).
## Special pieces
### Lamps
Lamps are furniture with a light behind them; the lights section has twelve kinds. Link them as described in [Connect devices](devices.md).
### Light switches and sockets
In the smart home pack, 1- to 4-gang. Each button has its own entity and glows while what it switches is on.
### Awnings, curtains, blinds, screens and gates
*Moves with* picks the cover entity the piece follows. *Reverse the direction* turns it round for things that move the opposite way in the plan than in reality.
### Sofas
The built-in sofa has a *Shape*: straight, L (mirror it for the other side) or U.
### Picture frames
From the pack *Pictures & frames*: upload a photo in the form, type a picture address (`/local/…`) or pick an image or camera entity. The mat and whether the photo fills the frame are adjustable.
### Show only while …
Any piece can wait for an entity: the Christmas tree only while a helper is on. Use several states separated by commas, or the other way round. The editor always shows the piece.
### Under the roof slope
Ceiling lamps and hanging pieces in an attic room have *📐 Up to the roof slope*.
### Seasonal decoration
The packs *Winter & Christmas* and *Halloween* come with glowing parts that follow a light or switch you link. Combine them with *Show only while …* to show a decoration only in its season.
## Layers and floor meters
- **Layers:** a floor marked *Layer* in its form (the trees, the decoration) gets an eye at the top of the 3D view that shows or hides it.
- **Floor meter:** *Floor meter (power)* in the floor form takes a power sensor for that floor alone. Its value shows on the floor label, and the house card in that floor's view shows it with its share of the house.
## Move the pin
Pins of devices that stand close together can be pushed aside or up in the form; the device itself stays where it is.
## Next
[Connect devices →](devices.md)
+46
View File
@@ -0,0 +1,46 @@
---
title: Household and pets
description: Waste bins, the mailbox, thirsty plants, washing machines, pets, robot mowers, sprinklers and pools in the 3D view.
---
Furniture from the garden and household packs turns everyday things into small live signals.
## Waste bins
Waste bins (garden pack, four colours, 120 and 240 l) take a *Pickup date (sensor)*, for example from Waste Collection Schedule or any sensor with days or a date. The day before and on the day, the bin glows and shows its pin. The *Today* card lists the bins due today or tomorrow.
## Mailbox
Pick the *Post sensor* (for example a contact on the flap). While there is post, the mailbox glows.
## Plants
Set *Soil moisture (sensor)* and *Thirsty below (%)*. Below that value the plant glows.
## Washer, dryer, dishwasher
When the device has a remaining-time sensor in Home Assistant, its pin says "25 min left".
## Pets
Pets (the pets pack: cat, dog, rabbit) walk around their room, round the furniture, with breaks in between. With a **Room sensor** (Bermuda, ESPresense) a pet roams the room it really is in.
## Garden
- **Robot mowers:** a mower or dock from *Garden 2* linked to a `lawn_mower` mows lanes over its lawn while it mows.
- **Sprinklers, pools and ponds:** pools, ponds and beds show water temperature and pump on their pin.
- **Gardens linked to their area:** an outdoor area linked to a Home Assistant area brings its devices into the [Outside panel](outside.md#the-outside-panel).
## Cleaning and the fuse box
- *🧹 Clean* per room.
- The fuse box's circuits per room.
- Robot vacuums are covered under [Live features](live.md#robot-vacuum-on-the-plan).
## People
People are shown in their rooms through [Presence](devices.md#presence-people-in-their-rooms).
## Next
[Announcements →](announcements.md)
+47
View File
@@ -0,0 +1,47 @@
---
title: Install NextFloor
description: Install NextFloor through HACS or by hand, add the integration and update it safely.
---
NextFloor needs **Home Assistant 2025.1 or newer**. It installs like any custom integration and adds a *NextFloor* entry to the sidebar.
## With HACS (recommended)
NextFloor is in the **official HACS store**, so there is no custom repository to add.
1. Open **HACS**, search for *NextFloor* and press **Download**.
2. **Restart Home Assistant.**
3. Go to **Settings → Devices & services → Add integration** and pick *NextFloor*.
4. A *NextFloor* entry appears in the sidebar. Open it, and you are in.
[![Open in HACS](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=therealMRBK&repository=NextFloor&category=integration)
> [!NOTE]
> Installed NextFloor earlier as a custom repository? You do not have to change anything. HACS keeps it as a normal repository by itself, and updates keep coming.
## By hand
1. Download `nextfloor.zip` from the [latest release](https://github.com/therealMRBK/NextFloor/releases/latest).
2. Copy the `custom_components/nextfloor` folder into your Home Assistant configuration folder.
3. Restart Home Assistant and add the integration as in step 3 above.
## Update
1. Update through HACS.
2. Restart Home Assistant.
3. **Reload the browser tab.** On the companion app, use *Settings → Companion app → Reset frontend cache* and close the app completely.
> [!WARNING]
> If a panel looks old after an update, it is the browser cache, not Home Assistant. A restart of Home Assistant does not help for this, but reloading the tab does.
## Where your data lives
The plan, its pictures and the furniture packs are stored in Home Assistant's `.storage` folder. Nothing leaves your installation: there is no account, no cloud and no usage data. See [Backup and import](plan-tools.md#backup-and-import) for how to keep a copy.
## Who can do what
Everyone with access to Home Assistant can open NextFloor and use the 3D view. Only **administrators** see the **Editor** tab and can save changes to the plan.
## Next
[Quick start →](quickstart.md): draw your first room and switch a lamp in 3D.
+76
View File
@@ -0,0 +1,76 @@
---
title: Live features
description: Weather, sun and shadows, power flow, TV screens, sound, the car, the robot vacuum and Everything off. Built in, free, and made from the devices you already have.
---
These features are built in and free. They only need the devices you already have.
![Rain falling on the house](view-weather-rain.jpg)
## Weather at the house
Rain, snow, hail, sleet, fog, clouds with shadows, lightning, sun and moon, driven by a weather entity and the compass. Stars come out on a clear night. Snow lies white on the ground while it snows, and the ground turns wet in the rain.
## Sun and shadows
The house throws its shadow from the real sun (setting *Sunlight and shadows*, off on *Tablet*).
With *☀ Time of day* switched on in the view options (⚙), the **☀** switch under the 3D view opens a slider over the hours of today. Sun patches, shadow, sky and the *Auto* look follow the chosen hour; tap again to go back to now.
*Sun arc and compass* (Settings) draws today's path of the sun as an arc over the property.
## Power flow
Particles run from the solar modules to the inverter, the house, the battery and the grid, along the real cable routes. A glass card shows the balance and your self-sufficiency. More in [Climate and energy](climate-energy.md).
## TV screens
What plays, in the app's colour, plus an ambilight glow behind the TV.
## Sound
A card hovers over every playing speaker or TV with cover and controls. Sound rings in the app's colour grow with the volume. *Sound rings (%)* on a speaker scales them from 0 (off) to 100 (full size). Multiroom groups are joined by a thread.
## Car
A card over the parking spot shows the charge ring, range, charging power, plug, inside temperature and buttons for lock, climate and charging.
- Away from home, it tells how far the car is.
- It shows the departure time and warns about open doors and hatches.
- Plugged in at a wallbox, it hangs on its cable.
## Robot vacuum on the plan {#robot-vacuum-on-the-plan}
A `robot_vacuum` on the plan used to drive lanes that the view invented inside the room it reports. When the robot's integration puts its map on a camera (`vacuum_position`, `charger`, `path`, as NarwalIntegration's map card does), NextFloor shows the truth instead: the robot stands where it says it is, facing where it faces, and the floor keeps the pad it has really driven. The dock is drawn where the robot reports it.
The camera is found by itself: any `camera` whose attributes carry `vacuum_position` will do, so nothing has to be chosen. What the view cannot know is how the robot's grid lies on your plan, because the robot counts in its own cells and the plan counts in metres.
### Calibrate
**From the rooms (easiest):** when the robot's map names its rooms (the Dreame integration does, as `rooms`), the dock shows the button *Calibrate from the rooms*. It lays the map's rooms onto the rooms with the same names on the dock's floor. Case, spaces and hyphens do not count. At least two rooms must share a name; from three on, NextFloor also spots a mirrored map by itself. The robot does not have to move.
**Fine-tune by hand:** if the map sits a little off afterwards, the arrows under the calibration move it by 10 cm, ⟲ ⟳ turn it by 1°, − + change its size by 1 %. Each click is saved at once.
**From the robot's position:**
1. Select the robot's **dock** in the plan.
2. Let the robot drive at least 1.5 m away.
3. Press *Calibrate from where the robot is now* and tap the robot where it stands on the plan.
The dock is the anchor: the plan knows where it stands, and the camera knows where it and the robot lie in the robot's grid. One tap is enough, and everything else (position, heading, track, dock) follows.
> [!NOTE]
> Two places cannot tell a mirror from a turn. A map whose y axis runs along plan −z needs the *mirrored* tick; without it the rooms come out flipped. The calibration is stored as `settings.vacuum_map` (`a`/`ga` and `b`/`gb`, plus `mirror`). A plan without it keeps drawing the lanes the view invents.
- The track is as detailed as the robot's integration sends it. A map card that trims its `path` to a few hundred points gives a coarse track, one that sends more gives a finer one.
- Ten minutes after the robot docks, the pad fades out, so the floor does not keep last night's clean. The timeline (⏪) is where a finished clean stays, and it holds the whole day.
- The attribute names are the vacuum map card's, not one brand's: the Xiaomi map extractors (Roborock, Viomi, Roidmi, Dreame, Ijai), the Roborock integration and NarwalIntegration all publish them. A unit that reports in millimetres rather than map cells works just as well, because the two places set the scale.
- The integration has to expose them as attributes. Some do so only when asked: the map extractors want `vacuum_position` and `path` in their `attributes:` list.
## Everything off
*⏻ Everything off* in the room panel, or *⏻* in the bar on top for the open floor, switches off lights, switches, fans and media. *↶ Undo* brings it all back for ten seconds.
## Next
[Climate and energy →](climate-energy.md)
+75
View File
@@ -0,0 +1,75 @@
---
title: Your own 3D models
description: Upload your own GLB model for a vehicle slot: how NextFloor prepares it and how to prepare one by hand.
---
NextFloor draws furniture and vehicles from simple shapes. For a few items (the Tesla models so far) it can show a
real 3D model instead, **if you own one and put it on your own Home Assistant**. NextFloor ships none of these
files: without yours, the item looks as it always did.
## How it works
- A pack item can name a model (`"mesh": "tesla_model_y"`). When the file `tesla_model_y.glb` exists in the folder
`nextfloor_meshes` of your Home Assistant configuration, the 3D view draws it, stretched to the size of the item.
Everyone who is logged in to Home Assistant can read it, nobody else.
- The model's body paint follows the colour you pick in the editor (the round colour dots under the item's
settings). That works for parts whose material is marked as paint (see below).
- Parts of the model that are not paint (glass, tyres, trim) stay as they are.
## Putting a model on your Home Assistant
**The easy way:** open the Extensions page of NextFloor (as administrator). Every item that takes a model is listed
with an "Add a model" button. Choose your `.glb`, turn its front towards the viewer, check which material is the body
paint (NextFloor guesses it), pick a level of detail and look at the preview. "Store on Home Assistant" does the rest;
reload the panel afterwards. Compressed files (Draco, Meshopt, KTX) are refused: export the model without compression.
**By hand:**
1. Get a model you may use, as a binary glTF (`.glb`), for example a purchased one. Check its licence: it must
allow you to use it in your own installation.
2. Prepare it (lighter, front to +z, paint marked), see below.
3. Copy the result to `<config>/nextfloor_meshes/<id>.glb`, with the id from the table, **or** upload it as an
administrator:
```
curl -X POST -H "Authorization: Bearer <long-lived access token>" \
--data-binary @tesla_model_y.glb http://homeassistant.local:8123/api/nextfloor/mesh/tesla_model_y
```
4. Reload the NextFloor panel.
| Item | Model id |
| --- | --- |
| Tesla Model 3 | `tesla_model_3` |
| Tesla Model 3 (2024) | `tesla_model_3_2024` |
| Tesla Model 3 Performance (2024) | `tesla_model_3_2024_performance` |
| Tesla Model S | `tesla_model_s` |
| Tesla Model S Plaid | `tesla_model_s_plaid` |
| Tesla Model X | `tesla_model_x` |
| Tesla Model Y | `tesla_model_y` |
| Tesla Model Y Standard (2025) | `tesla_model_y_2025` |
| Tesla Model Y Premium (2025) | `tesla_model_y_2025_premium` |
| Tesla Model Y Performance (2025) | `tesla_model_y_2025_performance` |
| Tesla Model Y L | `tesla_model_y_l` |
| Tesla Cybertruck | `tesla_cybertruck` |
## Preparing a model by hand
The Extensions page does this in the browser. If you prefer the command line:
The 3D view reads plain binary glTF without Draco compression and without textures, and a model with 200,000
triangles would be too heavy for a tablet. `tools/prepare-model.mjs` does the work:
```
npm install @gltf-transform/core @gltf-transform/extensions @gltf-transform/functions draco3dgltf meshoptimizer
node tools/prepare-model.mjs original.glb tesla_model_y.glb --ratio=0.35 --rear=^Charge --paint=^Paint --drop-materials="Fade|^Light$" --drop="^(Fade|Underhood_Piece)"
```
`--front` (or `--rear`, for a part at the back such as the charge port) is a pattern for the name of a part that tells which end is which, so the car points to +z; `--drop-materials` leaves out see-through fade layers and light beams that would float around the car; `--paint` is a pattern for the material
names of the body paint. Both depend on how your model's author named things; open the file in a glTF viewer to look.
With a ratio of 0.35, a Model Y has about 70,000 triangles and 1 MB.
## Licence note
The model files are yours and stay on your Home Assistant. Do not put them in a public repository, and do not share
them in a pack. Vehicle names are trademarks of their owners; NextFloor uses them only to say which model is meant.
+81
View File
@@ -0,0 +1,81 @@
---
title: Outside, roof and energy
description: Outdoor areas, fences and gates, the roof tool, solar fields, cable routes, the compass, the real map and the sun arc.
---
![The house with its garden, roof and a solar field](view-energy.jpg)
## Outdoor areas
Drag out a lawn, terrace, path, driveway, pool, flower bed, wild patch, hedge, fence or pergola.
| Setting | What it does |
|---|---|
| *Height offset* | lowers or raises the area |
| *Slope* | tilts it |
| *Show the outline* | toggles the glowing edge |
| *Cut out of the areas beneath* | makes a hole, for a pond |
An area can be linked to a Home Assistant **Area**: its devices join Outside, and a pin opens it. Pools, ponds and beds can show a water temperature and a pump on that pin. Hedges and fences take a height. Garden and path lights come from the library and light the areas.
### Gates in fences
A fence can have **gates**: garden gate, double gate or sliding gate. Each gate sits at a position along the fence and takes an entity or contact; in 3D it opens when that entity is open or on.
### Opacity
*Opacity (%)* in an area's form makes it see-through, from 100 (solid) down to 10. That way a driveway or a lawn no longer hides the cellar in the stacked view, and the outline keeps it recognisable. The value is saved with the plan.
## The Outside panel
As soon as a device stands outside the rooms, the bar above the 3D view gets a **🌳 Outside** chip next to the floors. It opens the house view with a panel like a room's that lists the garden's devices.
A device that stands on the roof or over a room but belongs outside (a weather station) gets *Belongs to Outside* in its form. It then no longer counts for the room below and shows in the Outside panel. The dashboard card shows the chip with its room buttons.
In the editor, Outside has a section of its own, *🌳 Outside* (below *Start view*). There *Outside: hide devices* keeps devices out of the Outside panel, and *Use this view for Outside* stores the camera of the editor's 3D preview: turn it to the garden first, and opening Outside flies there.
## Roof
The *Roof* tool builds roof sections from the rooms: shape, ridge direction, eaves, pitch. Drag to move, drag corners to resize. The simple roof shape lives in Settings.
- **Roof windows** sit on a section and take a blind and contacts.
- **Chimneys** (*+ Chimney* in the roof tool) come in brick, round, wide with two flues, or as a steel flue pipe with a rain cap. Width, depth (or diameter) and the height above the roof can be set; drag one in the plan or in the 3D view, also onto another roof face.
- **Gable, hip and half-hip** sections can end differently at each end of the ridge. A wing that butts against a bigger roof runs into it with valleys.
- A section turns about its middle with *Turn (°)*, for a wing at an angle.
- A half-hip end has a slider for how high its hip starts.
- **Overhang per side:** *Overhang per side* sets the eaves overhang on every side separately. Without own values the overhang is automatic: the same everywhere, except where the roof part meets the house (none there).
- **Solar fields** on flat roofs can stand on east-west racks, and on pitched roofs on a rack with its own tilt.
## Doors and windows (more)
- A door takes a **smart lock**: tap the door to lock or unlock, it glows while unlocked.
- A window chooses its sill and board, can be left out of the rain warning, and below the ground gets a light well.
## Energy
The checklist asks for a **solar field**, a **meter** and an **inverter**. Battery and grid connection are optional.
1. Place the **solar field** on the best south-facing roof section (it uses the compass), in the garden or on a wall. Set rows, columns and portrait or landscape.
2. Place the meter, inverter, battery and wallbox as devices.
3. The energy balance fields default to *Automatic*. *Take over from the energy dashboard* reads your existing setup.
**Cable routes** draw where a cable really runs: solar field to inverter, battery, inverter and grid to the house, sub-meters. Press *Draw route*, tap the points on the plan, switch floors where the cable goes through a ceiling, then *Done*. The flow follows the route instead of an arc, and *Show as cable* draws it as a visible cable. A battery's route is walked either way as it charges or discharges.
*Gas meter* and *Water meter* add their readings to the balance. For what you see in 3D, see [Climate and energy](climate-energy.md).
## Compass and map
Under **Settings**:
- **Compass.** A dial shows where north lies, in degrees clockwise from up. Sunlight, wind and the compass direction of roof faces follow it. If north and south are the wrong way round, press **Swap north ↔ south**; drawing, roof sections and solar fields stay as they are, only the directions change. Quarter turns and any angle are available too.
- **Real map.** Off by default. When on, a dimmed map (OpenStreetMap, or your own `https://…/{z}/{x}/{y}` tile address) lies under the plan in the editor and under the house in 3D. It starts at Home Assistant's location. Set visibility and detail, and move it with the arrows until the house sits on its plot.
> [!NOTE]
> Your browser loads the map tiles directly from the map server, and only while the map is on. Nothing else about your home leaves your installation.
- **Sun arc and compass ring:** *Sun arc and compass* draws today's path of the sun as an arc over the property, with a ring and the compass directions on the ground (north in red). It needs your home's position in Home Assistant.
- Also here: wall thickness, grid, lengths in metres or feet and inches, roof shape, weather entity and effects, rain warning (optionally from your own rain sensor), a power outage sensor, sunlight patches, and an own background (a colour or a picture) behind the house.
## Next
[Plan tools →](plan-tools.md)
+83
View File
@@ -0,0 +1,83 @@
---
title: Furniture packs
description: Import, build and share furniture packs. The JSON format of a pack with every field.
---
Furniture packs bring extra furniture to NextFloor. They are built from boxes, cylinders and lofts just like the built-in furniture, so they run as smoothly on weak tablets.
A pack is a plain JSON file. Anyone can build, share and import their own.
## Furniture builder and community furniture
The easiest way to build furniture is the **[furniture builder](https://therealmrbk.github.io/NextFloor/builder/)** in your browser: add parts, type the measurements in centimetres, choose colours. The 3D preview draws the piece exactly as NextFloor does. The builder checks the pack like the import does, saves it as a file and shares it with one button in the **community store** ([NextFloor-Plugins](https://github.com/therealMRBK/NextFloor-Plugins#community-furniture)). Shared packs then wait in NextFloor under **Extensions → Community furniture**, ready to install.
## Packs that come with it
43 packs with about 800 models come with the integration (`custom_components/nextfloor/packs/nextfloor.*.json`) and are always there; see the overview in [the library](furnish.md#the-library). They are generated with `python3 tools/build_packs.py` from the definitions in `tools/` (`build_packs.py` and the `area_*.py` modules). After a change there, run the script, check with `python3 tools/check_packs.py` and commit the JSON files too. Built-in packs cannot be removed, and an imported pack must not use the same ID.
## Your own pack
1. Write the pack (JSON, format below). The `id` should start with your name (`myname.kitchen`) so it collides with nobody; `nextfloor.*` is reserved for the built-in packs.
2. Import it in Home Assistant under **Extensions → Furniture packs**: with **Import pack files …** (several files at once work) or paste the JSON into the text field and press **Import JSON**. Your own packs can also be removed there.
3. A newer version with the same `id` replaces the old one; furniture in the plan stays. If a pack is removed, its furniture stays in the plan as plain boxes and comes back when you import it again.
## Format
```json
{
"format": "nfpack",
"version": 1,
"id": "myname.kitchen",
"name": "Kitchen pack",
"publisher": "My name",
"description": "optional",
"items": [
{
"id": "retro_fridge",
"name": { "de": "Retro-Kühlschrank", "en": "Retro fridge" },
"size": [0.6, 0.65, 1.5],
"electric": true,
"parts": [{ "shape": "box", "x": 0, "z": 0, "w": 1, "d": 1, "y": 0, "h": 1, "color": "white", "edges": true }],
"symbol": [{ "shape": "rect", "x": 0, "z": 0, "w": 1, "d": 1 }]
}
]
}
```
### Size and resizing
`size` is the default size in metres (width, depth, height). In the plan every piece can be scaled freely afterwards. Parts within 22 cm of either end keep their real size and their distance from the edge (arms, legs, plates, handles); only the middle is stretched. `"stretch": true` on the item lets all parts grow evenly instead. Vehicles always grow evenly.
### Parts
`parts` (at most 60) are `box`, `cyl`, `loft` or `sweep`. All measures are **fractions of the furniture's size**.
| Field | Meaning |
|---|---|
| `x`, `z` | centre, −0.5 … 0.5 (the front is +z) |
| `w`, `d` | width and depth, 0 … 1 |
| `y`, `h` | bottom edge and height, 0 … 1 of the height |
| `rot` | degrees about the part's own centre on the vertical axis, for spiral stairs or diagonal struts |
| `color` | `#rrggbb` or a role of the built-in palette: `body`, `fabric`, `cushion`, `wood`, `white`, `metal`, `dark`, `glass`, `plant`, `pot`, `accent`. Roles fit the look |
| `top` | an own colour for the top face |
| `edges` | glowing edges: `true` subtle blue, `"glow"` cyan like the walls, `"faint"` very delicate |
- A **cylinder** takes the smaller of `w` and `d` as its diameter. With `axis: "x"` or `"z"` it lies down (wheels, rollers); the length is the extent along the axis, the diameter the smaller of the cross extent and `h`.
- A **loft** is a box whose top face is another rectangle (`tx`/`tz` centre, `tw`/`td` size) for sloping surfaces such as bonnets, windscreens or lampshades. A narrow loft with an offset top makes a slanted rod (handrail).
- A **sweep** is a smooth body: cross-sections along the depth (z) with skin stretched between them, for anything round such as cars, boats or mudguards. `stations` is a list of `[z, bottom, top, width]`: `z` the centre of the cross-section (−0.5 … 0.5), `bottom` and `top` as a fraction of the height, `width` as a fraction of the width. `x` shifts the body sideways. `exp` shapes the cross-section (2 = ellipse, higher is boxier, default 2.6) and `n` is the number of points around (6 … 32, default 16). The vehicles of the pack *Vehicles* are built this way, see `tools/build_packs.py`.
### Plan symbol
`symbol` (optional, at most 40) is the top view in the plan, made of `rect` (`fill` for filled), `circle` (`r` as a fraction of the smaller side) and `line` (`x1`, `z1`, `x2`, `z2`). Without a symbol the plan draws the parts from above.
### Behaviour flags
| Flag | What it does |
|---|---|
| `electric` | the piece can be linked to a switch and a power sensor |
| `climate` | marks an air conditioner or heat pump; links to a `climate` entity and optionally a power sensor. Automatic matching looks for `climate` entities in the room's area. Adds no 3D animation yet |
| `mount` | where the piece sits: `floor` (default), `surface` (on the piece below, such as a coffee machine on a worktop), `wall` (bottom edge at `wall_y` metres, such as a wallbox) or `ceiling` (hangs from the ceiling, such as an extractor hood or pendant lamps) |
| `surface` | the top carries other furniture (table, kitchen island, workbench) |
| `hole` | a stair: if it reaches the floor above, it cuts the stairwell opening into that floor like the built-in stair; the steps rise from the front edge (+z) to the back |
| `light` | the piece is a lamp and is linked to a light (or switch). The value says how the light fills the room (`ceiling`, `pendant`, `floor`, `table`, `wall`, `spot`, `garden` …). Parts with `"glow": true` glow in the light's colour and brightness |
| `screen` | a part with `"screen": true` is a display (TV, monitor); the piece can then be linked to a media player, and the front (+z) shows the running app's colour and picture like the built-in TVs |
+106
View File
@@ -0,0 +1,106 @@
---
title: Plan format
description: The JSON format of a NextFloor plan, and how to let an AI draw your plan from a picture of your floor plan.
---
NextFloor stores the house as one JSON document. *Editor → Backup → Import* reads it, so you can write a plan by hand, convert one from another program, or let an AI turn a picture of your floor plan into one. This page lists what a plan needs; everything left out gets a sensible default when it is imported.
## The smallest plan
```json
{
"floors": [
{
"name": "Ground floor",
"elevation": 0,
"height": 2.5,
"rooms": [
{ "id": "living", "name": "Living room", "points": [[0, 0], [5, 0], [5, 4], [0, 4]] },
{ "id": "garage", "name": "Garage", "points": [[5, 0], [11, 0], [11, 4], [5, 4]] }
],
"openings": [
{ "room_id": "living", "edge": 0, "offset": 2.5, "type": "door", "style": "front" },
{ "room_id": "living", "edge": 2, "offset": 2.0, "type": "window", "width": 1.6, "leaves": 2 },
{ "room_id": "garage", "edge": 2, "offset": 3.0, "type": "garage" }
]
}
]
}
```
- **Units are metres.** `points` are the corners of a room as `[x, z]`, seen from above: x grows to the right, z grows downwards in the plan. Go round the room in either direction; do not repeat the first corner at the end.
- **Rooms that touch share their walls.** Draw neighbouring rooms with the same corner coordinates on the shared side and NextFloor builds one wall between them.
- **ids** are optional. Missing or repeated ids are replaced on import, but an opening needs the `id` of its room in `room_id`, so give rooms an id when they have openings.
## Floors
| Field | Meaning | Default |
|---|---|---|
| `name` | Shown in the floor bar | "Floor 1", "Floor 2" … |
| `elevation` | Height of the floor above the ground floor, in m (cellar: negative) | 2.8 m per floor |
| `height` | Floor-to-ceiling height in m | 2.5 |
| `rooms`, `openings`, `furniture`, `outdoor`, `walls` | Lists, see below | empty |
## Rooms
| Field | Meaning | Default |
|---|---|---|
| `id` | Any short text, unique on the floor | made up |
| `name` | Room name | empty |
| `points` | Corners `[x, z]` in m | required |
| `area_id` | The Home Assistant area (its id, e.g. `living_room`), so the room finds its devices | none |
| `floor_material` | `wood`, `oak`, `tiles`, `carpet`, `stone` or `concrete` | `wood` |
| `ceiling` | Own ceiling height in m | the floor's height |
## Doors and windows (`openings`)
An opening sits on one edge of a room: edge `0` runs from the first corner to the second, edge `1` from the second to the third, and so on; the last edge runs back to the first corner.
| Field | Meaning | Default |
|---|---|---|
| `room_id` | The room whose edge it sits on | required |
| `edge` | Index of that edge | 0 |
| `offset` | Distance of the opening's **middle** from the edge's first corner, in m | 0.5 |
| `type` | `door`, `window` or `garage` | `door` |
| `width`, `height` | In m | door 0.9 × 2.05, window 1.2 × 1.3, garage 2.5 × 2.1 |
| `sill` | Bottom of a window above the floor, in m (0 = terrace door) | window 0.9, else 0 |
| `leaves` | `1` or `2` (double door, French window) | 1 |
| `style` | Doors: `front`, `interior`; windows: `glass_wall` | automatic |
Everything else (hinge side, swing, contacts, blinds) is easiest to set afterwards in the editor: select the door or window and pick its kind at the top of its form.
## Furniture, free walls, outdoor areas and devices
All of these are optional lists on a floor.
**`furniture`**: a piece of the library or a pack.
| Field | Meaning |
|---|---|
| `id` | Short unique id |
| `type` | A built-in type such as `sofa`, `bed`, `table`, `chair`, `desk`, `wardrobe`, `kitchen`, `fridge`, `bathtub`, `wc`, `washbasin`, `plant`, `rug`, `tv_board`, or `pack:<pack id>:<item id>` |
| `x`, `z` | Centre in m, in the same plan coordinates as the rooms |
| `w`, `d`, `h` | Width, depth and height in m |
| `rotation` | Degrees around the vertical axis (0 = the front looks along +z) |
| `variant` | `null` |
| `entity` | Linked Home Assistant entity, or `null` (automatic) |
**`walls`** (free-standing walls, for a partition inside a room): `{ "id": "w1", "a": [x, z], "b": [x, z], "thickness": 0.1, "height": null }`. Room walls come from the room edges, so do not draw those again.
**`outdoor`** (lawn, terrace, path, driveway, pool, bed, hedge, fence, pergola): `{ "id": "o1", "type": "terrace", "points": [[x, z], …] }`, outside the rooms.
**`placements`** (a Home Assistant device on the plan): `{ "entity_id": "light.kitchen", "x": 2.0, "z": 3.0, "y": null }`.
Coordinates are metres, x to the right and z **down** the plan (the top left corner of the house is about `[0, 0]`). Anything the AI leaves out can be added in the editor; anything unknown is ignored when the plan is read.
## Other ways in
Besides a NextFloor plan, the import takes Sweet Home 3D (`.sh3d`), DXF, IFC and the JSON of an Apple **RoomPlan** scan (an iPhone or iPad with LiDAR, scanned with an app that exports the RoomPlan JSON): walls, doors and windows come over, a few objects become furniture.
## Let an AI draw it
Give the AI a picture of your floor plan and this prompt:
> Turn this floor plan into a NextFloor plan, as JSON following https://github.com/therealMRBK/NextFloor/blob/main/docs/plan-format.md. Use metres; read the scale from the dimensions in the picture. One floor object per storey. Rooms as polygons of their inner corners, touching rooms must share exact coordinates. Give every room a short id. Put every door, window and garage door into `openings` with its room, edge index and the distance of its middle from the edge's first corner. Output only the JSON.
Then *Editor → Backup → Import*, check the result in the editor, and fix what the AI got wrong. Drawing the plan over the picture (*Template*) is often just as fast for small houses.
+69
View File
@@ -0,0 +1,69 @@
---
title: Plan tools
description: Check the plan, areas and the plan on paper, notes, versions, backup, sharing and imports from other programs.
---
## Check the plan
*✓ Check the plan* at the top of the editor's side panel lists what is missing or off, floor by floor:
- rooms without an area, and areas without a room
- devices of a room that are not placed yet
- overlapping rooms
- doors and windows off their wall
- links to entities Home Assistant no longer knows
- standby eaters, with their yearly cost
Blue buttons fix a finding with one tap (Undo works as always); *Show* opens the spot. A short tour guides you through a new plan, and the sheet of keys opens with `?`.
## Areas and the plan on paper
The room form shows the room's **Living area**, counted like the German *Wohnflächenverordnung*:
- in full from 2 m clear height
- half between 1 m and 2 m
- nothing below 1 m
Garages, cellars and utility rooms are left out by their name; *Counts as living area* decides by hand. The floor form adds the areas up for the floor and the house.
*🖨️ Print plan / PDF* opens every floor at **1:100** with measurements and a table of areas. Print it, or save it as PDF from the print dialog.
## Notes
Right-click (or long-press) a spot in the plan and choose *✎ Note here*. Type the text and, if you like, the day it is due. Notes stand as yellow pins in their floor's 3D view (orange once due). A tap shows the whole text, and the search finds them.
A note can also show *exactly where* something is: its **height above the floor** puts the pin, say, under the basement ceiling at the shutoff valve. A **photo** (uploaded or as a URL) shows when the note is tapped, so someone who has never done it sees what the valve looks like.
## Versions
*📌 Save this state …* keeps the plan under a name, for example "before the renovation". It stays when the automatic restore points go. *Compare* on a version lists, floor by floor, what differs from the plan now.
## Backup and import
Under *Backup* in the editor:
| Action | What it does |
|---|---|
| **Export** / **Import** | the plan as a file |
| **Share as template** | the plan without your personal device data |
| **Back up everything** | plan, pictures and packs in one file |
| **Restore a full backup** | brings that file back |
| *🔗 Share a view* | saves the house as a small HTML file that opens in any browser without Home Assistant (through the online demo, without devices), to show it to someone |
> [!TIP]
> Back up before big changes.
### Import from other programs
Under *Backup → Import*:
- **iPhone room scan:** a scan made with Apple's RoomPlan loads as rooms, walls, doors and windows.
- **Sweet Home 3D** (`.sh3d`, version 5.3 and newer): levels become floors, rooms become rooms, doors and windows sit in their walls, free walls stay free. Furniture is not taken over.
- **DXF** (`.dxf`, from a CAD program): closed polylines become rooms, lines become free walls.
- **IFC** (`.ifc`, from Revit, ArchiCAD, Allplan …): its storeys become floors and its spaces become rooms; NextFloor draws the walls from the rooms.
A plan can also be written by hand, converted from another program, or drawn by an AI from a picture of your floor plan. The format and a ready prompt are in [Plan format](plan-format.md).
## 3D print export
*3D print (STL)* in the 3D view's settings saves the house as an STL file at 1:100, one metre becoming 10 mm. It holds walls, floors, furniture and outdoor areas of every floor; windows, lights and the roof are not in it.
+143
View File
@@ -0,0 +1,143 @@
---
title: Write a plugin
description: Install plugins from the store or write your own: light animations, new device kinds and room sections.
---
Plugins add things to NextFloor without changing its code: your own light animations, support for
entities NextFloor does not know, and small cards in a room's panel. A plugin is one JavaScript
file (an ES module) that calls `window.NextFloor.register({...})`.
> [!WARNING]
> **Trust:** a plugin runs in your browser with the same rights as NextFloor and Home Assistant's
> frontend. Only install plugins whose source you trust.
## Installing a plugin
**From the store:** open **Extensions → Plugins → Open plugin store** and press **Install**. The store
lists plugins that were reviewed and added through a pull request to
[NextFloor-Plugins](https://github.com/therealMRBK/NextFloor-Plugins), where you also find how to submit your own.
Each entry is pinned to one commit and carries the file's SHA-256, which NextFloor checks before the
plugin runs. A newer version of a plugin shows up as **Update** in the store. Store plugins must be a
single self-contained file, because they are run from memory after the check.
**Your own file:**
1. Put the file into Home Assistant's `www` folder, e.g. `/config/www/nextfloor/my-plugin.js`.
2. In NextFloor open **Extensions → Plugins**, enter `/local/nextfloor/my-plugin.js` and press **Add**.
3. The plugin loads right away. Turning a plugin off or removing it takes effect after reloading the page.
Allowed addresses: `/local/…` (the `www` folder), `/hacsfiles/…` (installed by HACS) and `https://…`,
each ending in `.js` or `.mjs`. At most 20 plugins.
A plugin can also be loaded as a **dashboard resource** (Settings → Dashboards → Resources, type
JavaScript module), which is how HACS installs frontend plugins. It then shows up on the Extensions
page as "registered by a dashboard resource". Resources only load with dashboards, so for the
sidebar panel add the plugin on the Extensions page as well.
## The API (version 1)
```js
const plugin = {
id: "my-plugin", // required: letters, digits, '.', '_', '-'; the same id again replaces the plugin
name: "My plugin", // shown on the Extensions page and as the room-section title
version: "1.0.0",
apiVersion: 1, // required: must be 1
lightAnimations: { … },
devices: [ … ],
roomSections: [ … ],
};
// works whether NextFloor loaded before or after your script
if (window.NextFloor) window.NextFloor.register(plugin);
else (window.__nextfloorPlugins ??= []).push(plugin);
```
`register` throws when the plugin is not valid (wrong `apiVersion`, a missing function, a built-in
animation name). Errors your functions throw later are caught; NextFloor keeps working and shows
the error next to the plugin on the Extensions page.
### `lightAnimations`
A map from an animation name to a function `(glow, seconds) => glow`. `glow` is
`{ color: [r, g, b], level }` with every value between 0 and 1, after the light's brightness was
applied; `seconds` counts up while the page is open. Return a new glow; values are clamped to 0–1.
The names appear in a light's **Effects** settings next to the built-in Rainbow, Pulse and Flicker,
so you can map e.g. the WLED effect "Fireworks" to your `"strobe"`. The names `none`, `rainbow`,
`pulse` and `flicker` are taken. Keep the function cheap: it runs every frame for every lit lamp.
```js
lightAnimations: {
strobe: (glow, seconds) => ({ ...glow, level: seconds % 0.5 < 0.25 ? glow.level : 0 }),
},
```
### `devices`
Each entry handles the entities its `match(entityId, state)` returns `true` for:
| Field | What it does |
|---|---|
| `match(entityId, state)` | Required. Runs for every placed entity, so keep it cheap. |
| `kind` | For entities of domains NextFloor does not know (`vacuum`, `lawn_mower`, `todo`, …): NextFloor then shows them like this kind (`light`, `switch`, `fan`, `cover`, `climate`, `media`, `lock`, `sensor`, `binary`, `scene`, `script`; default `sensor`). |
| `marker({ hass, entityId, state })` | Returns what to change on the device's marker: `icon` (`"mdi:name"` or inline SVG), `text` (max. 60 characters), `active` (highlighted like an "on" device). Leave a field out to keep NextFloor's value. An icon picked in the plan wins over the plugin's. |
| `watch({ hass, entityId, state })` | Further entity ids whose changes redraw this device (e.g. a camera's motion sensor that colours its wedge). The 3D view only redraws for entities it watches. |
| `settings` | Extra fields in the device's form in the editor (see below). The values are stored with the placement and handed to `floorWedge` and `tap`. |
| `floorWedge({ hass, entityId, state, placement, settings })` | A field of view or range drawn flat on the floor from the device, stopping at walls. Return `{ angle, reach, near?, color?, opacity?, tapThrough? }` or `null`: `angle` in degrees (360 all around), `reach` and `near` in metres, `color` as `"#rrggbb"`, `opacity` 0–1. It points the way the device is turned (the handle in front of it in the editor). A tap on the wedge taps the device, unless `tapThrough`. |
| `tap({ hass, entityId, state, placement, settings, showWindow, moreInfo })` | A tap on the device's marker or wedge. Return `true` when you handled it; otherwise NextFloor does its usual thing. `showWindow(node, { title })` shows a node in a small window in the lower right corner of the 3D view (`null` closes it; a node with a `hass` property gets every new hass object). `moreInfo(entityId?)` opens Home Assistant's dialog. |
`placement` is where the device stands: `floorId`, `roomId`, `x`, `z`, `y` (height above the floor) and `rotation` (degrees).
```js
devices: [{
match: (id) => id.startsWith("vacuum."),
kind: "switch",
marker: ({ state }) => ({ icon: "mdi:robot-vacuum", text: state.state, active: state.state === "cleaning" }),
}],
```
#### Device settings
Each entry of `settings` adds a field to the device's form, under the plugin's name:
```js
settings: [
{ key: "fov", label: { en: "Field of view (°)", de: "Blickwinkel (°)" }, type: "number", default: 90, min: 20, max: 180, step: 5 },
{ key: "mount", label: "Mount", type: "select", default: "wall", options: [["wall", "Wall"], ["dome", "Ceiling"]] },
{ key: "wedge", label: "Show the wedge", type: "boolean", default: true, hint: "Shown when hovering" },
],
```
`key` is 1–32 letters, digits or `_`; `type` is `number`, `select` or `boolean`. Labels, hints and option labels are
plain text or texts by language code (English is the fallback). Your functions get `settings` with every key filled
in: the stored value when it fits the field, the default otherwise.
A complete plugin with all of this: [NextFloor Cameras](https://github.com/therealMRBK/NextFloor-Plugins/blob/main/plugins/cameras/nextfloor-cameras.js)
(field-of-view wedges, red on detection, live picture in the corner, alarm panels).
### `roomSections`
Extra blocks at the end of a room's panel, titled with the plugin's name. `render({ hass, room, entities })`
gets the room (`id`, `name`, `area_id`) and the entities the panel lists; return a DOM node, a string,
or `null` to show nothing in this room. It runs again whenever Home Assistant's state changes, so
build the content fresh each time and keep it small.
```js
roomSections: [{
id: "open-windows",
render: ({ hass, entities }) => {
const open = entities.filter((id) => hass.states[id]?.attributes.device_class === "window" && hass.states[id]?.state === "on");
return open.length ? `🪟 ${open.length} window(s) open` : null;
},
}],
```
A complete example with all three: [`docs/examples/nextfloor-plugin-example.js`](https://github.com/therealMRBK/NextFloor/blob/main/docs/examples/nextfloor-plugin-example.js).
## Compatibility
The API version only changes when something breaks existing plugins; new optional fields can come
in any release. A plugin written for another API version is refused with a message on the
Extensions page instead of half-working.
+39
View File
@@ -0,0 +1,39 @@
---
title: Quick start
description: Draw your first room, place a lamp, and switch it from the 3D view. About fifteen minutes.
---
By the end of this page you will have a floor with one room, a lamp that belongs to a real light in Home Assistant, and a 3D view you can tap. Nothing needs preparing except an **area** in Home Assistant with at least one light in it.
> [!TIP]
> Prefer to watch first? The [setup video](https://therealmrbk.github.io/NextFloor/tutorial/) draws a whole house from the empty page (45 minutes, English voice, subtitles in English and German). Or try the [live demo](https://therealmrbk.github.io/NextFloor/) with invented data.
## Before you start
- [NextFloor is installed](install.md) and you are logged in as an administrator.
- In Home Assistant, the room already exists as an **area** (Settings → Areas) and a light belongs to it.
## Draw and light your first room
1. **Open the Editor.** In the NextFloor sidebar entry, switch to the **Editor** tab. The toolbar holds the tools, the side panel shows what is selected, and a hint at the bottom names what the active tool does.
2. **Add a floor.** Press *Add floor*. It offers the floors of Home Assistant (this keeps plan and Home Assistant connected) or an *Empty floor*. Pick one.
3. **Draw a room.** Choose the *Rectangle* tool and drag on the plan. Corners snap to the grid.
4. **Describe it.** In the side panel give the room a name, pick its **Area** (this is the link to your devices), and choose a floor material.
5. **Add a door and a window.** Choose *Doors & windows*, tap a wall, and pick the kind. Set width and position if the defaults do not fit.
6. **Furnish.** Choose the *Furniture* tool, tap the room and pick a sofa, a bed or a lamp from the library on the right. New pieces appear in the middle of the room; drag them into place.
7. **Place your light.** Open the room and scroll to **Devices**. Your area's devices are listed. Press **Place** on a light: it becomes a lamp in the room.
8. **Look at it in 3D.** Switch on *3D beside*, or leave the editor and open the **3D** tab.
Tap the lamp: the real light switches. Swipe on it to dim, and long-press for colours.
![The editor with the room on the left and the 3D model growing on the right](editor.jpg)
> [!NOTE]
> **Undo** (Ctrl+Z) takes back almost everything. If saving ever fails, your changes stay in this browser and the editor tells you why.
## Where to go from here
- Draw the rest of the house: [Draw the house](draw.md).
- Make it look like home: [Furnish](furnish.md).
- Bring in the rest of your devices: [Connect devices](devices.md).
- Put it on a dashboard or a wall tablet: [The dashboard card](cards.md).
+48
View File
@@ -0,0 +1,48 @@
---
title: Keyboard and gestures
description: Every key and gesture of the editor and the 3D view in one place.
---
Press `?` in the editor for the sheet of keys. This page lists what the documentation knows about.
## 3D view
| Action | Mouse | Touch |
|---|---|---|
| Turn | drag | drag |
| Zoom | wheel | pinch |
| Pan | right button, drag | two fingers |
| Switch a lamp | click the pin | tap the pin |
| Dim | | swipe on the pin |
| Quick menu with colours | long press | long press |
| Go one step back | double click on empty space; optionally a short right click | double tap on empty space |
| Leave a room or walk mode | `Esc` | ✕ |
## Walk through the house
| Key | Action |
|---|---|
| `W` `A` `S` `D` or arrows | walk |
| `Q` / `E` | turn |
| mouse wheel | one step |
| stick (tablets) | steer |
## Editor
| Key | Action |
|---|---|
| `Ctrl` + `Z` | undo |
| `Enter` | close a free shape |
| `Esc` | cancel the current action |
| `Alt` | switch snapping off for one move |
| `Shift` | keep a free wall straight |
| `?` | open the sheet of keys |
| right-click or long-press | pin a [note](plan-tools.md#notes) |
## This documentation
| Key | Action |
|---|---|
| `Ctrl` + `K` or `/` | search |
| `↑` `↓` `Enter` | choose and open a result |
| `Esc` | close the search |
+43
View File
@@ -0,0 +1,43 @@
---
title: Wall tablet
description: Kiosk mode, night dimming, screensaver, readable mode and quality settings for tablets on the wall.
---
![NextFloor on a wall tablet](tablet.jpg)
NextFloor is made for the tablet on your wall. These options live in the card's **kiosk** section (see [The dashboard card](cards.md)).
## Kiosk
| Option | What it does |
|---|---|
| `idle_return` | seconds without a touch after which the card returns to its start view (0 = never) |
| `night` | dim at night: `off`, `sun` (the sun is below the horizon) or a time range such as `22:00-06:00`. Colour effects rest while dimmed |
| `idle_orbit` | after the idle return, turn the view slowly by itself until the next touch: a screensaver |
| `dashboard` and `dashboard_label` | a button to another dashboard or view |
| `controls_hidden` / `controls_hide_after` | hide every bar and overlay at start, or after some seconds without a touch |
| `fullscreen_button` | a button for full screen |
| `central_open` | the star menu stands open from the start, a size larger |
| `keep_camera` | switching floors keeps the camera's side, height and distance |
| `room` | start in one room, for a display in the kids' room |
## Readable mode
`readable: true` gives stronger contrast and larger text, for tablets seen from a distance.
## Quality
Quality **steps down by itself** on slow tablets. You can also set it: use *Tablet* on Fire tablets and similar. If the view is slow, also switch off weather and power flow.
## Small screens
- `zoom` (0.6–2.5) brings the fitted views closer.
- *🎥 Keep camera* avoids re-aiming at every floor change.
## Announcements on the tablet
Every open page speaks announcements. Name the tablet with `screen_name` to address it alone. See [Announcements](announcements.md).
## Next
[The dashboard card →](cards.md)
+73
View File
@@ -0,0 +1,73 @@
---
title: The 3D view
description: Move around, switch devices, use the room panel and the central menu, and set up the look: themes, walls, markers, maps and warnings.
---
![A room in 3D with its lamps and the room panel](view-room.jpg)
## Move
- **Drag** to turn, **wheel** to zoom, **right button** or **two fingers** to pan.
- The floor and room buttons at the top fly the camera there. *Back* or Esc goes up one level. Optionally, a short right click goes back too (the view's setting, or the card option `right_back`).
- **Floor plan only** hides the furniture for a clean plan view.
## Control things
- **Tap** a lamp pin to switch it, **swipe** to dim, **long-press** for the quick menu with colours. A blind opens its menu.
- Speakers and TVs open a quick menu with play and pause, skip, volume, sources and presets.
- Tap a door with a smart lock to lock or unlock it.
## The room panel
Open a room to get its panel:
- lights (switch, brightness, colour temperature, colour dots, *All off*)
- blinds, media, sensors
- **scenes** stand at the top; *+ Save mood* keeps the room's lights as a mood to set again or carry over to another room (→)
- the room's temperature over the last 24 hours and when to air it
## Central menu and search
- **Central menu (star):** all lights and blinds of the floor or house plus your favourites. *★ Menu open* in ⚙ keeps it open and larger on this device. Own buttons light up while their entity is on.
- **Search (magnifier):** type a device or a room, and the camera flies there.
## Look and feel
| Setting | Options |
|---|---|
| Quality | *Auto*, *Tablet*, *High* |
| Theme | *Neon*, *Blueprint*, *Day*, with an accent colour |
| Furniture colours | in the editor under *Settings*: one colour per material (body, wood, fabric, white, metal, dark) for the whole house, pieces from the furniture builder and the packs included. Shows most in the Neon look |
| Markers | *None*, *Important*, *All* |
| Look *Auto* | the day look while the sun is up, neon after sunset |
**Switches at the bottom:** *Tall walls / Cut / Sloped*, *Solid*, *Apart / Stacked*, *Roof stays*, heat map, *Room names*, *Weather*, *Power flow*, *Cards*.
### Walls
- **Sloped** cuts the walls on a slope, half height in front and full height at the back, like a doll's house. The slope turns with the camera.
- **Solid** shows opaque walls in their colours instead of glass. In an open room the walls in front of the camera are lowered.
- *Solid* and *Sloped* can be combined.
- Set the colours in the editor: *Settings → Wall colour outside / inside*, per floor *Wall colour outside (this floor)* (a plinth, a garage) and per room *Wall colour inside (this room)*.
## Maps
Besides temperature, humidity and CO₂ the map selector has **Mould**, **Values** and **Wi-Fi**. See [Climate and energy](climate-energy.md).
## Warnings
Smoke, gas, CO, water, the alarm panel and windows left open in the rain appear as banners. A tap jumps into the room. A triggered alarm names the sensor that set it off and pulses its room. You can add [your own warnings](devices.md#favourites-buttons-and-warnings).
## Getting around
- **Walk through the house (🚶):** on the open floor at eye height. Drag to look around, `W A S D` or the arrow keys walk (`Q`/`E` turn), the mouse wheel takes a step, and on tablets the stick at the bottom right steers. ✕ ends it.
- **Time travel (⏪):** replays the last 24 hours or 7 days from Home Assistant's history: lamps, blinds, doors and windows, locks, media and robots. The bar marks every change. Play at 1 min, 10 min or 1 h per second, or drag to a moment. *Live* comes back. **Nothing is switched while you are in the past.**
- **3D lock (🔒):** turning, zooming and panning are off on this device; taps on devices still work.
- **Clock:** 🕒 in the header puts a large clock in a corner of the view.
- **Small screens:** 🔍 in ⚙ brings the fitted views closer. *🎥 Keep camera* keeps side, height and distance when switching floors.
- **Today:** with calendars chosen, a card top right lists today's appointments and the bins due today or tomorrow. *Days on the "Today" card* (house settings, with the calendars) shows up to seven days, each later day under its own heading.
- **Weather forecast:** in the house settings under *Weather forecast*, pick 3, 5 or 7 days and a corner (top left, or top right below *Today*). The card shows the weather of each day, its high and low and the rain (amount or chance). It reads the weather entity of the settings through `weather.get_forecasts`; an entity without a daily forecast shows no card.
## Next
[Live features →](live.md)