first push
No files matched your search
@@ -0,0 +1,263 @@
|
||||
# NextFloor-Anleitung
|
||||
|
||||
Diese Anleitung folgt dem Weg, den du wirklich gehst: installieren, zeichnen, einrichten, verbinden, benutzen. Ein Video, das die ganze Einrichtung von der leeren Seite an zeigt, ist in der [README](../README.md) verlinkt. Englische Fassung: [manual.md](manual.md).
|
||||
|
||||
**NextFloor ist für immer kostenlos** – jede Funktion, jedes Möbel-Pack, jedes Update, ohne Pro-Version, ohne bezahlte Erweiterungen und ohne Shop. Neue Möbel-Packs kommen immer wieder dazu, eigene baust du im [Möbel-Baukasten](https://therealmrbk.github.io/NextFloor/builder/) und teilst sie, und Plugins erweitern NextFloor weiter. Aus dieser Überzeugung ist das Projekt entstanden: Ein lebendiges 3D-Zuhause in Home Assistant soll allen gehören.
|
||||
|
||||
**Springe zu:** [Installation](#installation) · [Haus zeichnen](#haus-zeichnen) · [Einrichten](#einrichten) · [Geräte verbinden](#geräte-verbinden) · [Außen, Dach, Energie](#außen-dach-und-energie) · [Kompass und Karte](#kompass-und-karte) · [3D-Ansicht](#die-3d-ansicht-benutzen) · [Live-Funktionen](#live-funktionen) · [Dashboard-Karte](#dashboard-karte) · [Wandtablet](#wandtablet) · [Eigene Modelle und Packs](#eigene-modelle-und-packs) · [Sicherung](#sicherung) · [Probleme](#probleme-und-lösungen)
|
||||
|
||||
---
|
||||
|
||||
## Installation
|
||||
|
||||
Voraussetzung: Home Assistant 2025.1 oder neuer.
|
||||
|
||||
- **HACS:** NextFloor ist im offiziellen HACS-Store: in HACS nach *NextFloor* suchen, herunterladen, Home Assistant neu starten, die Integration unter Einstellungen → Geräte & Dienste hinzufügen. In der Seitenleiste erscheint *NextFloor*. (Früher als eigenes Repository installiert? Du musst nichts ändern: Updates kommen weiter über HACS, das es von selbst als normales Repository führt.)
|
||||
- **Von Hand:** `custom_components/nextfloor` in den Konfigurationsordner kopieren, neu starten, Integration hinzufügen.
|
||||
- **Updates:** über HACS, dann Home Assistant neu starten und den Browser-Tab neu laden (Companion-App: Einstellungen → Companion-App → Frontend-Cache zurücksetzen).
|
||||
|
||||
Plan, Bilder und Packs liegen in Home Assistants `.storage`. Nichts davon verlässt deine Installation.
|
||||
|
||||
## Haus zeichnen
|
||||
|
||||
Öffne den Reiter **Editor** (nur Administratoren). Die Werkzeugleiste enthält die Werkzeuge, die Seitenleiste zeigt immer die Auswahl, und der Hinweis unten sagt, was das aktive Werkzeug tut. **Rückgängig** (Strg+Z) nimmt fast alles zurück.
|
||||
|
||||
1. **Etage anlegen.** *Etage hinzufügen* bietet die Etagen aus Home Assistant an (Plan und Home Assistant bleiben verbunden) oder *Leere Etage*. Das Etagen-Formular setzt Name, Höhe über dem Boden, Raumhöhe und die Etage in Home Assistant. *Verschieben* und *90° drehen* wirken auf die ganze Etage, *Alle Etagen mitnehmen* aufs ganze Haus. *Räume aus HA-Bereichen anlegen* setzt zum Start einen Raum je Bereich. *Etage duplizieren* legt eine Kopie oben aufs Haus, wahlweise mit Möbeln, Geräte-Pins und Außenflächen; die Kopie ist von Home Assistant gelöst und wird für das neue Geschoss eingerichtet.
|
||||
2. **Räume zeichnen.** *Rechteck*: ziehen. *Freie Form*: Ecken setzen, mit Tippen auf die erste Ecke oder Enter schließen, Esc bricht ab. Ecken rasten am Raster und an vorhandenen Wänden ein; Alt schaltet das Einrasten für einen Zug aus.
|
||||
3. **Raum beschreiben.** Name, *Bereich* (die Verbindung zu den Geräten in Home Assistant) und *Boden*-Material. Position und Größe lassen sich eintippen. An den Eckgriffen formst du um, das **+** auf einer Kante fügt eine Ecke ein.
|
||||
*+ Bereich im Raum* nimmt Home-Assistant-Bereiche dazu, die Teil des Raums sind, aber keine eigenen Wände haben (Leseecke, Küchenzeile): ihre Geräte gehören dann zum Raum. *Fußbodenheizung* nennt den Thermostat, das Ventil oder den Schalter, bei dessen Heizen der Boden glüht. Ein rechteckiger Raum zeigt sein Innenmaß von Wand zu Wand.
|
||||
4. **Wände.** Sie entstehen aus den Raumkanten. Jede Kante hat Höhe, Dicke, eine Schere zum Teilen und *Keine Wand* für offene Kanten. Eine niedrigere Höhe macht eine Brüstung oder Theke. Freistehende Trennwände zeichnest du mit dem Werkzeug *Wand* (Umschalt hält gerade). Eine geteilte Kante kann auf jedem Teilstück eine eigene Dicke haben. *Lücken schließen* im Etagen-Formular verbindet haarfeine Spalten. **◠ Bogen** an einer Kante (oder an einer freien Wand) öffnet das Feld *Wölbung*: eintragen, wie weit sich die Mitte wölbt (negativ in den Raum), dann *Biegen*. Ein Nachbarraum an der ganzen Wand biegt sich mit, Türen und Fenster wandern mit; ein Raum, der nur einen Teil der Wand berührt, oder eine freie Wand darauf bleibt gerade. Ist eine Tür oder ein Fenster zu breit für einen tiefen Bogen, biegt die Wand nicht und ein Hinweis sagt warum.
|
||||
5. **Türen und Fenster.** *Tür & Fenster*, Wand antippen, Art wählen (Tür, Haustür, Doppeltür, Fenster, Doppelfenster, Terrassentür, Balkontür, Garagentor, Glaswand). Breite, Mitte von der Ecke, Brüstung und Höhe einstellen; Anschlag oder Öffnungsrichtung wechseln. Der Stil *Automatisch* nimmt außen eine Haustür, innen eine Zimmertür.
|
||||
6. **Treppen und Öffnungen.** Das Werkzeug *Treppe* zeichnet eine Treppe dort, wo du ziehst; sie läuft entlang der langen Seite. Sie hat eine Form (gerade, viertelgewendelt, L mit Podest, halbgewendelt, U mit Podest, Wendeltreppe), läuft links oder rechts herum und ist massiv, eine Wangen-, Holm- oder Kragarmtreppe, mit oder ohne Setzstufen und Geländer. Die Steigungen kommen aus der Etagenhöhe; das Formular zeigt Steigung, Auftritt und Schrittmaß und warnt bei unbequemen Maßen. *Führt nach unten* macht einen Abgang in einen Keller, der nicht gezeichnet sein muss. Die Treppe öffnet die Decke nur, wo über den Stufen keine 2,2 m Kopfhöhe bleiben; die Treppen aus dem Pack *Treppen & Geländer* schneiden ihre ganze Grundfläche aus. *Bodenöffnung* schneidet jedes andere Loch (Galerie, Schacht).
|
||||
7. **Vorlage.** *Vorlage (Grundriss-Bild)* legt ein Bild hinter den Plan; verschieben, skalieren, drehen, geraderichten, Maßstab an einer bekannten Länge einstellen, dann nachzeichnen.
|
||||
8. **Sperre.** Das Schloss *Grundriss* verhindert, dass Räume, Wände, Öffnungen und Außenflächen aus Versehen wandern; einzelne Stücke sperrt *Fixieren*.
|
||||
|
||||
**3D daneben** zeigt das 3D-Modell neben dem Plan. *Ansicht als Start der Etage / des Raums* merkt sich die aktuelle 3D-Kamera.
|
||||
|
||||
## Flächen und der Plan auf Papier
|
||||
|
||||
Das Raumformular zeigt die *Wohnfläche* des Raums (gerechnet wie die Wohnflächenverordnung: voll ab 2 m lichter Höhe, zur Hälfte zwischen 1 und 2 m, darunter nicht); Garagen, Keller und Technikräume bleiben nach ihrem Namen draußen, *Zählt zur Wohnfläche* entscheidet es von Hand. Das Etagenformular zählt sie für Etage und Haus zusammen, und *🖨️ Plan drucken / PDF* öffnet jede Etage in 1:100 mit Maßen und der Flächentabelle – drucken oder im Druckdialog als PDF speichern.
|
||||
|
||||
## Notizen
|
||||
|
||||
Rechtsklick (oder lange tippen) auf eine Stelle im Plan und *✎ Notiz hier* wählen: Text eintippen und, wenn du magst, den Tag, an dem sie fällig ist. Notizen stehen als gelbe Pins in der 3D-Ansicht ihrer Etage (orange, sobald fällig); ein Tipp zeigt den ganzen Text, und die Suche findet sie.
|
||||
|
||||
## Plan prüfen
|
||||
|
||||
*✓ Plan prüfen* oben in der Seitenleiste des Editors listet Etage für Etage, was fehlt oder schief ist: Räume ohne Bereich, Bereiche ohne Raum, noch nicht gesetzte Geräte eines Raums, übereinanderliegende Räume, Türen und Fenster neben der Wand und Verknüpfungen zu Entitäten, die Home Assistant nicht mehr kennt. Blaue Knöpfe lösen es per Tipp (Rückgängig geht wie immer), *Zeigen* öffnet die Stelle.
|
||||
|
||||
## Einrichten
|
||||
|
||||
Werkzeug *Möbel*, Raum antippen, rechts aus der Bibliothek wählen. Neue Stücke landen in der Raummitte.
|
||||
|
||||
- Die Bibliothek hat Bereiche (Leuchten, Wohnen, Essen, Küche, Schlafen, Bad, Arbeiten, Parken) und danach die Möbel-Packs. Die Suche findet deutsche und englische Namen, Packnamen und mehrere Wörter in beliebiger Reihenfolge.
|
||||
- **Möbel-Werkstatt:** *🛠️ Eigenes Möbel bauen* oben in der Bibliothek. Vorlage wählen (Schrank, Regal, Lampe, Gerät), Maße in cm eintippen und Türen, Schubladen, Böden, Griffe, Unterbau und Farben einstellen; die Frontansicht zeigt jede Änderung sofort. *In den Plan setzen* legt es im Pack *Eigene Möbel* ab (es steht dann auch in der Bibliothek). Ein Werkstatt-Möbel auswählen und *In der Werkstatt ändern* drücken, um es später zu ändern – jedes Exemplar im Plan bekommt die neue Größe.
|
||||
- Ziehen verschiebt, Eckgriffe ändern die Größe, am Drehgriff drehst du, oder du tippst Position, Größe und Drehung ein. *Spiegeln* vertauscht links und rechts, *Duplizieren* kopiert, *Fixieren* sperrt, *Auf Etage verschieben* bringt das Stück an dieselbe Stelle einer anderen Etage.
|
||||
- Elektrische Stücke lassen sich mit Geräten verbinden (siehe unten). Leuchten sind Möbel mit einem Licht dahinter; der Leuchten-Bereich hat zwölf Arten.
|
||||
- **Spots setzen:** am Raum legt ein Raster aus Leuchten (Spalten × Reihen) an, die alle einem Licht folgen, mit einem Schritt rückgängig zu machen.
|
||||
- **Bibliothek:** Möbel stehen nach Art sortiert (Sitzen, Betten, Küche …) mit Bild und Maß; ein Modell in mehreren Größen ist eine Karte mit Größen-Knöpfen. Ist ein Raum gewählt, steht oben, was in ihn passt (*Passend zu …*), *Alle Räume zeigen* hebt das auf. Filter für ⚡ verknüpfbar, 💡 leuchtet und 🌳 draußen, ★ Favoriten und Zuletzt benutzt stehen oben.
|
||||
- **Größe ändern:** Beine, Armlehnen, Platten und Griffe behalten ihre echte Größe, nur die Mitte wächst.
|
||||
- **Wandansicht (▣):** In der Wandliste eines Raums zeigt *Wandansicht* die Wand von vorn mit Türen, Fenstern und den Möbeln davor; ziehen oder Abstand und Höhe eintippen.
|
||||
- **Lichtschalter und Steckdosen** (Pack Smart Home & Technik, 1- bis 4-fach): jede Taste mit eigener Entität; sie leuchtet, solange das Geschaltete an ist.
|
||||
- **Markisen, Vorhänge, Rollos, Leinwand, Schiebetor:** *Bewegt sich mit* wählt die Cover-Entität, der sie folgen.
|
||||
- **Sofas:** Das eingebaute Sofa hat eine *Form* – gerade, L (Spiegeln für die andere Seite) oder U.
|
||||
- **Bilderrahmen** (Pack *Bilder & Rahmen*): im Formular ein Foto hochladen, eine Bild-Adresse (/local/…) eintragen oder eine Bild- oder Kamera-Entität wählen; Passepartout und ob das Foto den Rahmen füllt, sind einstellbar.
|
||||
- **Nur zeigen, solange …:** Jedes Stück kann auf eine Entität warten – der Weihnachtsbaum nur, solange ein Helfer an ist. Mehrere Zustände mit Komma, oder umgekehrt; im Editor bleibt es immer sichtbar.
|
||||
- **Pin verschieben:** Pins dicht stehender Geräte schiebst du im Formular zur Seite oder nach oben; das Gerät bleibt stehen.
|
||||
- **Unter der Dachschräge:** Deckenleuchten und hängende Stücke im Dachgeschoss haben *📐 An die Dachschräge*.
|
||||
- **Ebenen:** Eine Etage mit *Ebene* im Formular (die Bäume, die Deko) bekommt oben in der 3D-Ansicht ein Auge, das sie ein- und ausblendet.
|
||||
- **Etagen-Zähler:** *Etagen-Zähler (Leistung)* im Etagenformular nimmt einen Leistungssensor nur für diese Etage. Sein Wert steht auf dem Etagen-Schild, und die Haus-Karte in der Ansicht dieser Etage zeigt ihn mit seinem Anteil am Haus.
|
||||
|
||||
## Geräte verbinden
|
||||
|
||||
Im Raum-Formular listet der Abschnitt **Geräte** die Home-Assistant-Geräte dieses Bereichs. Reiter: *Dieser Bereich*, *Andere Bereiche*, *Ohne Bereich*; Suche nach Namen. Jede Zeile: Auge (im 3D-Raum-Fenster ausblenden), *Aa* (eigener Name), Stern (ins Raum-Fenster aufnehmen ohne zu platzieren), *Platzieren*.
|
||||
|
||||
- Eine platzierte Leuchte wird zur Lampe. *Licht oder Schalter* nennt das Licht; *Farbe und Helligkeit von* ist für per Relais geschaltete Lampen; *Leuchtstärke in 3D* skaliert das Leuchten; *Vor dem Schalten fragen* schützt vor versehentlichem Antippen; *Symbol in 3D* bestimmt den Pin darüber.
|
||||
- Elektrische Möbel (Fernseher, Kühlschrank, Waschmaschine …) finden ihre Entity im selben Bereich selbst („Automatisch“). Fernseher zeigen Farbe und Titel der laufenden App; *Leuchten hinter dem TV* stellt das Ambilight ein oder aus. Ein Leistungssensor zeigt die Watt. Jedes elektrische Stück zeigt seine Leistung neben dem Zustand, und seine Statuslichter leuchten, solange es läuft.
|
||||
- **Leuchten mit mehreren Lichtern:** *Leuchtmittel 2, 3 …* nimmt Nachtlicht oder Lichtring derselben Leuchte dazu; ist das Hauptlicht aus, leuchtet die Lampe mit ihnen.
|
||||
- **Rollläden:** *Art des Behangs* ist Rollladen außen, Raffstore (die Lamellen folgen der Neigung) oder Rollo innen; *Zweiter Rollladen* deckt die rechte Hälfte eines breiten Fensters; *Lieblingsposition „My“* setzt einen **My**-Knopf ins Schnellmenü.
|
||||
- **3D-Drucker und Wärmepumpe:** Drucker oder Wärmepumpe aus den Packs mit einer beliebigen Entität ihres Geräts verbinden; eine Live-Karte zeigt den Druck (Bild, Fortschritt, Restzeit, Schicht, Temperaturen, Filamente – das Druckteil wächst auf dem Bett) oder die Wärmepumpe (Betriebsart, Vor- und Rücklauf, Strom, Wärme, COP).
|
||||
- **Mähroboter:** Ein Mähroboter oder seine Station aus *Garten 2*, verbunden mit einem `lawn_mower`, mäht Bahnen über seinen Rasen.
|
||||
- **Haustiere:** Mit einem *Raum-Sensor* (Bermuda, ESPresense) läuft das Tier in dem Raum herum, in dem es gerade ist.
|
||||
- Entity-Felder sind durchsuchbar: einen Teil des Namens tippen und wählen. Durch das Zuweisen schaltet NextFloor nie etwas.
|
||||
- **Stellplatz** (Bibliothek *Parken*): *Fahrzeug* wählt das Modell, *Sensor „Auto da“* bestimmt, wann es erscheint, und über eine beliebige Entity des Autos findet NextFloor Ladestand, Reichweite, Stecker, Schloss und Klima am Gerät des Autos.
|
||||
- **Favoriten und eigene Knöpfe** (Einstellungen, *Favoriten*): Szenen, Skripte, Automationen, Schalter und Buttons fürs Zentralmenü; eigene Knöpfe öffnen einen Dashboard-Pfad, Entity-Details, einen Dienstaufruf oder ein browser_mod-Popup. *Sender oder Playlist* legt Lautsprecher-Voreinstellungen an. Eine Voreinstellung kann auf einzelne Lautsprecher beschränkt werden. **Eigene Warnungen** machen aus jeder Entität eine Zeile in der Warnleiste (Zustand, mehrere mit Komma, oder `<20` / `>80`), mit Text, Raum und Farbe. **Kalender für „Heute“** füllen die Karte *Heute*.
|
||||
|
||||
### Lichtprogramme in 3D zuordnen
|
||||
|
||||
Im bestehenden Leuchteneditor öffnest du **Effektanimationen in 3D**. Wähle für jeden
|
||||
exakten HA-Effektnamen eine Darstellung: **Statisch**, **Regenbogen**, **Pulsieren**
|
||||
oder **Flackern**. Die Liste enthält die von HA gemeldeten Programme und bereits
|
||||
gespeicherte Zuordnungen. Fehlende Namen kannst du exakt hinzufügen (Groß-/Kleinschreibung
|
||||
und Leerzeichen zählen). „Nicht zugeordnet“ entfernt eine Zuordnung. Der Schalter
|
||||
**Animationen für diese Leuchte erlauben** schaltet alle Animationen dieser Platzierung
|
||||
aus, ohne die Zuordnungen zu löschen. Auch zwei Leuchten mit derselben Entity dürfen
|
||||
unterschiedliche Zuordnungen haben.
|
||||
|
||||
**Nach dem Update bleiben bestehende Pläne ohne Zuordnung statisch.** Ein HA-Effekt
|
||||
ist nur ein Programmname und bedeutet nicht automatisch einen Regenbogen. Unbekannte
|
||||
Effekte oder Animationskennungen zeigen weiter die HA-Farbe und -Helligkeit. Bei einem
|
||||
Effektwechsel wird die Zuordnung neu ausgewertet. Ausgeschaltete, unbekannte oder nicht
|
||||
verfügbare Leuchten erzeugen keine Animation und kein Licht.
|
||||
|
||||
In einer exportierten Plandatei stehen die Einstellungen direkt an der Leuchte
|
||||
(Möbel oder Geräteplatzierung), zum Beispiel:
|
||||
|
||||
```json
|
||||
{
|
||||
"animations_enabled": true,
|
||||
"effect_animations": {
|
||||
"Regenbogen": "rainbow",
|
||||
"Kerzenlicht": "flicker",
|
||||
"Atmen": "pulse",
|
||||
"Weiß": "none"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Pulsieren und Flackern verändern nur die Intensität bis höchstens zur bisherigen
|
||||
HA-Helligkeit; die Grundfarbe bleibt erhalten. Nur Regenbogen ersetzt die Farbe.
|
||||
Farb-/Weißmodi und die bestehende Einstellung der Leuchtstärke bleiben erhalten.
|
||||
Die Zuordnungen werden mit dem Plan gespeichert und privat exportiert/importiert;
|
||||
sie lösen keine HA-Schreibaufrufe aus. Die Darstellung nutzt den gemeinsamen sparsamen
|
||||
Animationstakt und pausiert bei verborgener Ansicht oder ohne sichtbare animierte Etage.
|
||||
|
||||
Neue HA-Programmnamen lassen sich im Editor ohne Codeänderung zuordnen. Neue
|
||||
Animationsfunktionen werden ausschließlich in der festen Registry in
|
||||
`frontend/src/light-effects.ts` ergänzt; Plugins, Skripte oder ausführbarer Code aus
|
||||
dem Plan werden nicht geladen.
|
||||
|
||||
## Außen, Dach und Energie
|
||||
|
||||
- **Außen:** Rasen, Terrasse, Weg, Einfahrt, Pool, Beet, Wildfläche, Hecke, Zaun oder Pergola aufziehen. *Höhenversatz* senkt oder hebt, *Gefälle* neigt, *Umriss zeigen* schaltet die leuchtende Kante, *Aus den Flächen darunter ausschneiden* macht ein Loch (Teich). Eine Fläche kann einem Home-Assistant-*Bereich* zugeordnet werden (seine Geräte kommen ins Außen-Panel, ein Pin öffnet es); Pool, Teich und Beet zeigen auf dem Pin Wassertemperatur und Pumpe. Hecken und Zäune haben eine Höhe. Garten- und Wegeleuchten kommen aus der Bibliothek und beleuchten die Flächen.
|
||||
- **Das Außen-Panel:** Sobald ein Gerät außerhalb der Räume steht, bekommt die Leiste über der 3D-Ansicht neben den Geschossen den Knopf **🌳 Außen**. Er öffnet die Hausansicht mit einem Panel wie bei einem Raum, das die Geräte im Garten auflistet. Ein Gerät, das auf dem Dach oder über einem Raum steht, aber nach draußen gehört (eine Wetterstation), bekommt in seinem Formular *Gehört zu Außen*: Es zählt dann nicht mehr zum Raum darunter und steht im Außen-Panel. Die Dashboard-Karte zeigt den Knopf bei ihren Raum-Knöpfen.
|
||||
- **Dach:** Das Werkzeug *Dach* baut Dachflächen aus den Räumen (Form, Firstrichtung, Traufe, Neigung; ziehen verschiebt, Ecken ändern die Größe). Die einfache Dachform steht in den Einstellungen. Dachfenster sitzen auf einer Fläche und bekommen Rollladen und Kontakte. Sattel-, Walm- und Krüppelwalmflächen können an jedem Firstende anders enden, und ein Flügel, der an ein größeres Dach stößt, läuft mit Kehlen in dessen Fläche. Ein Abschnitt dreht sich mit *Drehung (°)* um seine Mitte (ein Flügel im Winkel). Ein Krüppelwalm hat einen Regler, wie hoch sein Walm beginnt. Solarfelder auf Flachdächern stehen auf Wunsch in Ost-West-Aufständerung, auf Schrägdächern auf einer Aufständerung mit eigener Neigung.
|
||||
- **Türen und Fenster (mehr):** Eine Tür bekommt ein Smart Lock (Tür antippen schließt ab oder auf, aufgeschlossen leuchtet sie); ein Fenster wählt seine Fensterbank, kann aus der Regenwarnung genommen werden und bekommt unter Gelände einen Lichtschacht.
|
||||
- **Energie:** Die Checkliste verlangt ein Solarfeld, einen Zähler und einen Wechselrichter (Batterie und Netzanschluss optional). Ein Solarfeld kommt auf die am besten passende Südfläche (der Kompass entscheidet), in den Garten oder an eine Wand; Reihen, Spalten und Hoch-/Querformat einstellbar. Zähler, Wechselrichter, Batterie und Wallbox sind Geräte, die hier gesetzt werden; die Felder der Energiebilanz stehen auf „Automatisch“, und *Aus dem Energie-Dashboard übernehmen* liest deine bestehende Einrichtung. **Kabelwege** zeichnet ein, wo ein Kabel wirklich läuft (Solarfeld zum Wechselrichter, Batterie, Wechselrichter und Netz zum Haus, Unterzähler): *Weg zeichnen*, im Plan die Punkte antippen und dazwischen das Geschoss wechseln, wo es durch die Decke geht, dann *Fertig*. Der Fluss folgt dann dem Weg statt eines Bogens, und *Als Kabel zeigen* zeichnet ihn als sichtbares Kabel. *Gaszähler* und *Wasserzähler* stellen ihre Werte zur Bilanz.
|
||||
|
||||
## Kompass und Karte
|
||||
|
||||
In den **Einstellungen**:
|
||||
|
||||
- **Kompass.** Eine Scheibe zeigt, wohin Norden liegt (Grad im Uhrzeigersinn von oben). Sonnenlicht, Wind und die Himmelsrichtung der Dachflächen richten sich danach. Sind Nord und Süd vertauscht, drückst du **Nord ↔ Süd tauschen**; Zeichnung, Dachflächen und Solarfelder bleiben, nur die Richtungen ändern sich. Viertel-Drehungen und jeder Winkel gehen auch.
|
||||
- **Echte Karte.** Standardmäßig aus. Eingeschaltet liegt eine gedimmte Karte (OpenStreetMap oder deine eigene Kachel-Adresse `https://…/{z}/{x}/{y}`) unter dem Plan im Editor und unter dem Haus in 3D. Sie startet am Standort von Home Assistant; Sichtbarkeit und Detail einstellen, mit den Pfeilen verschieben, bis das Haus auf seinem Grundstück sitzt. Dein Browser lädt die Kacheln direkt vom Kartenserver, und nur solange die Karte an ist.
|
||||
- Ebenfalls hier: Wanddicken, Raster, Maße in Metern oder Fuß und Zoll, Dachform, Wetter-Entity und Effekte, Regenwarnung (auf Wunsch vom eigenen Regensensor), ein Sensor für Stromausfall, Sonnenflecken und ein eigener Hintergrund (Farbe oder Bild) hinter dem Haus.
|
||||
|
||||
## Die 3D-Ansicht benutzen
|
||||
|
||||
- **Bewegen:** Ziehen dreht, das Mausrad zoomt, rechte Taste oder zwei Finger verschieben. Etagen- und Raumknöpfe oben fliegen die Kamera hin; *Zurück* oder Esc geht eine Ebene hoch.
|
||||
- **Aussehen:** Qualität *Auto / Tablet / Hoch*; Themen *Neon / Blueprint / Tag* mit Akzentfarbe; Symbole *Keine / Wichtige / Alle*.
|
||||
- **Schalter unten:** *Wände hoch / Schnitt / Schräg*, *Massiv*, *Auseinander / Gestapelt*, *Dach bleibt*, Heatmap (*Temp., Feuchte, CO₂, Werte*), *Raumnamen*, *Wetter*, *Stromfluss*, *Karten*.
|
||||
- **Karten:** Neben Temperatur, Feuchte und CO₂ gibt es **Schimmel** (das Risiko an der kältesten Wand jedes Raums), **Werte** (mit Lüftungshinweisen) und **WLAN** (Reichweite jedes Access Points, seine Geräte, die Netzwerkgeräte, die offline sind). Die Temperatur-Skala ist von Mai bis September eine Sommer-Skala.
|
||||
- **Wände:** *Schräg* schneidet die Wände schräg ab, vorne halbhoch und hinten voll hoch, wie ein Puppenhaus; die Schräge dreht mit der Kamera. *Massiv* zeigt blickdichte Wände in ihren Farben statt Glas; im geöffneten Raum werden die Wände vor der Kamera abgesenkt. Die Farben stellst du im Editor ein: *Einstellungen → Wandfarbe außen / innen*, und pro Raum *Wandfarbe innen (dieser Raum)*. *Massiv* und *Schräg* lassen sich kombinieren.
|
||||
- **Raum-Fenster:** Lichter (schalten, Helligkeit, Farbtemperatur, Farbpunkte, *Alle aus*), Rollläden, Medien, Sensoren, Szenen. Antippen eines Lampen-Pins schaltet sie, langer Druck öffnet das Schnellmenü, ein Rollladen öffnet sein Menü. Lautsprecher und Fernseher öffnen ein Schnellmenü mit Abspielen/Pause, Weiter, Lautstärke, Quellen und Voreinstellungen. Szenen stehen oben; *+ Stimmung speichern* merkt sich die Lichter des Raums als Stimmung zum Wiederherstellen oder Übertragen auf einen anderen Raum (→). Das Fenster zeigt die Temperatur der letzten 24 Stunden und wann gelüftet werden sollte.
|
||||
- **Zentralmenü (Stern):** alle Lichter und Rollläden der Etage oder des Hauses plus deine Favoriten. *★ Menü offen* in ⚙ hält es auf diesem Gerät offen und größer; eigene Knöpfe leuchten, solange ihre Entität an ist. **Suche (Lupe):** Gerät oder Raum tippen, die Kamera fliegt hin.
|
||||
- **Warnungen:** Rauch, Gas, CO, Wasser, Alarmanlage und offene Fenster bei Regen erscheinen als Banner; Antippen springt in den Raum. Ein ausgelöster Alarm nennt den Sensor, der ihn ausgelöst hat, und lässt dessen Raum pulsieren.
|
||||
- **Kleine Bildschirme:** 🔍 in ⚙ holt die eingepassten Ansichten näher; *🎥 Kamera behalten* behält Seite, Höhe und Abstand beim Etagenwechsel.
|
||||
- **Heute:** Mit gewählten Kalendern listet eine Karte oben rechts die Termine des Tages und die Mülltonnen, die heute oder morgen abgeholt werden.
|
||||
|
||||
## Live-Funktionen
|
||||
|
||||
Eingebaut und kostenlos; sie brauchen nur die Geräte, die du schon hast.
|
||||
|
||||
- **Wetter am Haus:** Regen, Schnee, Hagel, Schneeregen, Nebel, Wolken mit Schatten, Blitze, Sonne und Mond, gesteuert von einer Wetter-Entity und dem Kompass. Nachts kommen bei klarem Himmel Sterne heraus; bei Schnee liegt der Boden weiß, bei Regen wird er nass.
|
||||
- **Sonne und Schatten:** Das Haus wirft seinen Schatten nach dem echten Sonnenstand (Einstellung *Sonnenlicht und Schatten*, auf *Tablet* aus). Ist *☀ Tageszeit* in den Ansichtsoptionen (⚙) eingeschaltet, öffnet der Schalter **☀** unter der 3D-Ansicht einen Regler über die Stunden des Tages: Sonnenflecken, Schatten, Himmel und der Look *Auto* folgen der gewählten Uhrzeit; erneut tippen zeigt wieder das Jetzt.
|
||||
- **Stromfluss:** Teilchen von den Solarmodulen zu Wechselrichter, Haus, Akku und Netz; eine Glaskarte mit Bilanz und Autarkie.
|
||||
- **Fernseher:** was läuft, in der Farbe der App, dazu Ambilight.
|
||||
- **Klang:** eine Karte über jedem spielenden Lautsprecher oder Fernseher mit Cover und Bedienung; Schallringe in der Farbe der App; Multiroom-Gruppen verbindet ein Faden.
|
||||
- **Auto:** eine Karte über dem Stellplatz mit Ladering, Reichweite, Ladeleistung, Stecker, Innentemperatur und Knöpfen für Schloss, Klima und Laden. Unterwegs sagt sie, wie weit es von zu Hause ist; sie zeigt die Abfahrtszeit und warnt vor offenen Türen und Klappen; an einer Wallbox eingesteckt hängt es am Kabel.
|
||||
- **Energie:** Die Hauskarte zeigt die letzten sieben Tage als Balken und steht auch über der geöffneten Etage; ein Hausspeicher zeigt seinen Ladestand an der Front.
|
||||
- **Alles aus:** *⏻ Alles aus* im Raum-Panel, oder *⏻* in der Leiste oben für die offene Etage, schaltet Lichter, Schalter, Ventilatoren und Medien aus. *↶ Rückgängig* holt zehn Sekunden lang alles zurück.
|
||||
- **Saugroboter:** Ein `robot_vacuum` im Plan fuhr bisher Spuren, die die Ansicht selbst im gemeldeten Raum erfunden hat. Legt die Integration des Roboters ihre Karte auf eine Kamera (`vacuum_position`, `charger`, `path`, wie die Kartenkarte von NarwalIntegration), zeigt sie die Wahrheit: Der Roboter steht, wo er sich meldet, blickt, wohin er blickt, und der Boden behält die Spur, die er wirklich gefahren ist. Die Station steht, wo der Roboter sie meldet. Siehe *Saugroboter im Plan* unten.
|
||||
|
||||
### Saugroboter im Plan
|
||||
|
||||
Die Kamera findet sich selbst — jede `camera`, deren Attribute `vacuum_position` tragen, genügt; es muss nichts ausgewählt werden. Was die Ansicht nicht wissen kann, ist, wie das Raster des Roboters auf dem Plan liegt: Der Roboter zählt in eigenen Zellen, der Plan in Metern.
|
||||
|
||||
Wähle im Plan die Station des Roboters und drücke *Von der jetzigen Position des Roboters kalibrieren*: Lass den Roboter mindestens 1,5 m wegfahren und tippe ihn dann im Plan an, wo er steht. Die Station ist der Anker — der Plan weiß, wo sie steht, die Kamera weiß, wo sie und der Roboter in ihrem Raster liegen —, also genügt ein Tipp, und alles Weitere (Position, Blickrichtung, Spur, Station) folgt.
|
||||
|
||||
Zwei Orte können eine Spiegelung nicht von einer Drehung unterscheiden, weil beide sie genau dorthin bringen, wo sie hingehören; läuft die y-Achse der Karte entlang Plan −z, braucht es den Haken *gespiegelt*, sonst kommen die Räume verkehrt heraus. Die zwei Orte liegen als `settings.vacuum_map` (`a`/`ga` und `b`/`gb`, dazu `mirror`); ohne sie zeichnet die Ansicht weiter ihre erfundenen Spuren.
|
||||
|
||||
Die Spur ist so fein, wie die Integration sie sendet: Eine Kartenkarte, die ihren `path` auf wenige hundert Punkte kürzt, ergibt eine grobe Spur, eine mit mehr Punkten eine feinere.
|
||||
|
||||
Zehn Minuten nachdem der Roboter andockt, blendet die Spur aus; der Boden behält also nicht die Reinigung von gestern. Die Zeitreise (⏪) ist der Ort, an dem eine fertige Reinigung bleibt, und sie hält den ganzen Tag.\n\nDiese Attributnamen stammen von der Vacuum-Map-Card, nicht von einer Marke: Die Xiaomi-Kartenextraktoren (Roborock, Viomi, Roidmi, Dreame, Ijai), die Roborock-Integration und NarwalIntegration liefern sie alle, und ein Gerät, das in Millimetern statt in Kartenzellen meldet, funktioniert genauso — den Maßstab geben die zwei Orte. Die Integration muss sie allerdings als Attribute bereitstellen; manche tun das nur auf Ansage (die Kartenextraktoren wollen `vacuum_position` und `path` in ihrer `attributes:`-Liste).
|
||||
|
||||
## Im Haus unterwegs
|
||||
|
||||
- **Durchs Haus gehen (🚶):** Auf der geöffneten Etage in Augenhöhe. Ziehen schaut sich um, W A S D oder die Pfeiltasten gehen (Q/E drehen), das Mausrad macht einen Schritt, auf dem Tablet steuert der Stick unten rechts. ✕ beendet es.
|
||||
- **Zeitreise (⏪):** spielt die letzten 24 Stunden oder 7 Tage aus dem Verlauf von Home Assistant ab: Lampen, Rollläden, Türen und Fenster, Schlösser, Medien, Roboter. Die Leiste zeigt jede Änderung als Strich; abspielen mit 1 Min., 10 Min. oder 1 Std. pro Sekunde oder an einen Zeitpunkt ziehen. *Live* kehrt zurück; in der Vergangenheit wird nichts geschaltet.
|
||||
- **3D-Sperre (🔒):** Drehen, Zoomen und Verschieben sind auf diesem Gerät aus, Tippen auf Geräte geht weiter.
|
||||
- **Uhr:** 🕒 in der Kopfzeile stellt eine große Uhr in eine Ecke der Ansicht.
|
||||
- **Look *Auto*:** tagsüber der Tag-Look, nach Sonnenuntergang Neon.
|
||||
- **Hauskarte:** Die Energie-Glaskarte über dem Dach zeigt die letzten 24 Stunden als Kurve (Solar als Fläche, Verbrauch als Linie).
|
||||
|
||||
## Haushalt und Haustiere
|
||||
|
||||
- **Mülltonnen** (Pack Garten & Terrasse, vier Farben, 120 und 240 l): Im Formular *Abholtermin (Sensor)* wählen, z. B. von Waste Collection Schedule oder ein Sensor mit Tagen oder Datum. Am Tag davor und am Abholtag leuchtet die Tonne und zeigt ihren Pin.
|
||||
- **Briefkasten:** *Post-Sensor* wählen (z. B. ein Kontakt an der Klappe); liegt Post drin, leuchtet er.
|
||||
- **Pflanzen:** *Bodenfeuchte (Sensor)* und *Durst unter (%)*; darunter leuchtet die Pflanze.
|
||||
- **Waschmaschine, Trockner, Spülmaschine:** Hat das Gerät in Home Assistant einen Restlaufzeit-Sensor, steht am Pin „Noch 25 min“.
|
||||
- **Haustiere** (Pack Haustiere: Katze, Hund, Kaninchen): laufen in ihrem Raum um die Möbel herum und machen zwischendurch Pausen.
|
||||
|
||||
## Durchsagen
|
||||
|
||||
*„Essen ist fertig!“* – und genau der Raum, der es hören soll, hört es.
|
||||
|
||||
- **Aus einem Raum:** Hat der Raum einen Lautsprecher, gibt es im Raum-Panel den Abschnitt **📢 Durchsage**. Einen Satz antippen oder einen eigenen tippen; der Lautsprecher des Raums sagt ihn. Eigene Sätze stehen unter *Editor → Einstellungen* (einer pro Zeile).
|
||||
- **Der Lautsprecher des Raums:** im Formular des Raums gewählt, sonst ein im Raum platzierter Lautsprecher, sonst ein Sprachassistent (Voice PE und andere Satelliten), ein Echo oder ein Lautsprecher des Bereichs. Ein Fernseher oder ein ausgeschalteter Lautsprecher wird nie von selbst gewählt. Sprachassistenten sagen es mit ihrem Gong, Echos als echte Durchsage (Alexa Devices oder Alexa Media Player), Lautsprecher, die das können (Sonos und andere), senken ihre Musik und spielen danach weiter; jeder andere spricht über Text-zu-Sprache von Home Assistant.
|
||||
- **Ruhezeit je Raum:** im Formular des Raums, z. B. 20:00–07:00 fürs Kinderzimmer. Durchsagen an mehrere Räume lassen den Raum dann aus; eine Durchsage nur für ihn kommt trotzdem an.
|
||||
- **Auf den Bildschirmen:** Jede offene NextFloor-Seite (Panel oder Karte) zeigt die Nachricht groß über dem Haus, spielt einen sanften Gong und spricht sie – ein altes Wandtablet wird zum Durchsage-Lautsprecher. Unter ⚙ → 📢 bekommt ein Bildschirm einen Namen (z. B. *Flur*), damit Durchsagen auch nur an ihn gehen können, oder bleibt ohne Haken still. Browser spielen Ton erst nach dem ersten Antippen der Seite; in Fully Kiosk *Autoplay Audio* einschalten (Web Content Settings).
|
||||
- **In Automationen:** die Aktion **NextFloor: Durchsage**.
|
||||
|
||||
```yaml
|
||||
action: nextfloor.announce
|
||||
data:
|
||||
message: "Es hat geklingelt!"
|
||||
rooms: [Küche, Wohnzimmer] # nach Name, Raum-ID oder Bereichs-ID; weglassen = jeder Raum mit Lautsprecher
|
||||
on_screens: true # die offenen NextFloor-Bildschirme zeigen und sprechen es auch
|
||||
screens: [Flur] # optional: nur diese Bildschirme
|
||||
```
|
||||
|
||||
`floor` beschränkt es auf eine Etage, `on_speakers: false` lässt die Lautsprecher still, `tts_entity` wählt die Stimme. Die Aktion meldet zurück, welcher Lautsprecher es gesagt hat und welche Räume (und warum) ausgelassen wurden.
|
||||
|
||||
## Sensoren für Automationen
|
||||
|
||||
NextFloor legt Sensoren in Home Assistant an: *Offene Fenster und Türen* und *Lichter an*, fürs Haus und für jede Etage (am Gerät *NextFloor*). Sie zählen Kontakte, Garagentore, Geräte-Pins und Lampen des Plans, und ihr Attribut `entities` nennt, was offen oder an ist – z. B. für eine Benachrichtigung „{{ state_attr('sensor.nextfloor_offene_fenster_und_turen', 'entities') | join(', ') }}“ beim Scharfschalten der Alarmanlage.
|
||||
|
||||
## Dashboard-Karte
|
||||
|
||||
Im Karten-Dialog des Dashboards *NextFloor* hinzufügen (`type: custom:nextfloor-card`). Der visuelle Editor stellt Etage, Größe, Aussehen, Akzent, Wände, Qualität, Etagen darunter, Symbole, Heatmap, Stromfluss, Karten, Schalter in der Karte, Raum-Knöpfe, zentralen Stern, Raumnamen, Energiewerte, Raumdetails beim Antippen, Vollbild, Etagen auseinander, Dach ausblenden, Warnungen, Szenen-Knöpfe und Wetter ein. Neuere Optionen: `central_open` (Sternmenü offen und groß), `keep_camera`, `readable` (kräftigere Kontraste und größere Schrift), `zoom` (0,6–2,5) und `today` (Karte Heute, Standard an). Dieselben Optionen gibt es in YAML unter den im Editor gezeigten Namen.
|
||||
|
||||
## Wandtablet
|
||||
|
||||
Der Kiosk-Abschnitt der Karte kehrt nach einer Ruhezeit zur Startansicht zurück, dimmt nachts (nach der Sonne oder einem Zeitraum, Farbeffekte ruhen), kann die Kamera als Bildschirmschoner langsam drehen und einen Knopf zu einem anderen Dashboard zeigen. Auf Fire-Tablets und ähnlichen Geräten die Qualität *Tablet* nutzen.
|
||||
|
||||
## Eigene Modelle und Packs
|
||||
|
||||
- **Reiter Erweiterungen → Möbel-Packs:** eigene Möbel-Packs als Datei importieren oder ihr JSON direkt einfügen, und eigene Packs wieder entfernen. Format: [packs.md](packs.md).
|
||||
- **Reiter Erweiterungen:** eigenes `.glb`-Modell für einen Fahrzeug-Platz hochladen. Der Browser dreht es richtig herum, macht es leichter, entfernt Texturen und markiert den Lack; die Datei liegt danach auf deinem Home Assistant (nur Administratoren, bis 12 MB). Siehe [models.md](models.md).
|
||||
- **Möbel-Packs** kommen mit der Integration (41 Packs, fast 800 Modelle) und brauchen keine Einrichtung. Eigene Packs sind JSON-Dateien, Format in [packs.md](packs.md). Die Demo hat eine Modellschau, die jedes Modell live zeigt.
|
||||
|
||||
## Sicherung
|
||||
|
||||
*🔗 Ansicht teilen* speichert das Haus als kleine HTML-Datei, die in jedem Browser ohne Home Assistant aufgeht (über die Online-Demo, ohne Geräte und Entitäten) – zum Zeigen.
|
||||
|
||||
*📌 Stand speichern …* hält den Plan unter einem Namen fest (eine Version, die bleibt, wenn die automatischen Wiederherstellungspunkte gehen). *Vergleichen* an einem Punkt listet Etage für Etage, was sich gegenüber dem Plan jetzt unterscheidet.
|
||||
|
||||
Ein Plan aus **Sweet Home 3D** (.sh3d, ab Version 5.3) lässt sich unter *Sicherung → Importieren* direkt laden: Ebenen werden Etagen, Räume werden Räume, Türen und Fenster sitzen in ihren Wänden, freie Wände bleiben frei. Möbel werden nicht übernommen. Eine **DXF**-Zeichnung (.dxf) aus einem CAD-Programm lädt genauso: geschlossene Polylinien werden Räume, Linien freie Wände. Ein **IFC**-Modell (.ifc, aus Revit, ArchiCAD, Allplan …) bringt seine Geschosse als Etagen und seine Räume (IfcSpace) als Räume; die Wände zeichnet NextFloor aus den Räumen.
|
||||
|
||||
Unter *Sicherung* im Editor: **Exportieren** / **Importieren** für den Plan, **Als Vorlage teilen** (ohne persönliche Geräte), **Alles sichern** (Plan, Bilder, Packs in einer Datei) und **Vollsicherung wiederherstellen**. Vor größeren Änderungen sichern.
|
||||
|
||||
Ein Plan lässt sich auch von Hand schreiben, aus einem anderen Programm umwandeln oder von einer KI aus einem Bild des Grundrisses zeichnen: Format und fertige Anweisung stehen in [plan-format.md](plan-format.md) (Englisch).
|
||||
|
||||
## Probleme und Lösungen
|
||||
|
||||
- **Ein Gerät fehlt im Raum:** Der Raum braucht einen Bereich, und das Gerät muss dazugehören (Gerät oder Entity). Sonst *Andere Bereiche* oder *Ohne Bereich* nutzen.
|
||||
- **Panel sieht nach einem Update alt aus:** Tab neu laden; in der Companion-App den Frontend-Cache zurücksetzen und die App ganz schließen. Ein Neustart von Home Assistant hilft hierfür nicht.
|
||||
- **Möbel erscheinen als graue Kästen:** Das Pack ist nicht installiert; wieder einspielen, dann ist alles zurück.
|
||||
- **Das Auto erscheint nicht:** *Sensor „Auto da“* prüfen; ohne Sensor wird das Fahrzeug immer gezeigt.
|
||||
- **Das Solarfeld landet auf der falschen Dachseite:** Kompass in den Einstellungen prüfen.
|
||||
- **Langsam auf dem Tablet:** Qualität *Tablet*, Wetter und Stromfluss aus.
|
||||
- **Speichern schlägt fehl:** Nur Administratoren können speichern; die Meldung nennt das Feld, das Home Assistant ablehnt.
|
||||
|
||||
Probleme und Ideen: [GitHub Issues und Discussions](https://github.com/therealMRBK/NextFloor).
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"pageTitle": "NextFloor-Dokumentation · NextFloor",
|
||||
"desc": "Alles über NextFloor, den kostenlosen 3D-Grundriss für Home Assistant: installieren, Zuhause zeichnen, Geräte verbinden, Karten bauen, Plugins schreiben.",
|
||||
"title": "Einmal zeichnen. Dein Zuhause <em>live</em> in 3D.",
|
||||
"sub": "NextFloor macht aus Home Assistant ein lebendiges 3D-Modell deines Hauses: Lampen leuchten in ihrem Raum, Rollläden fahren, Türen öffnen sich, der Fernseher zeigt, was läuft. Kostenlos, lokal, ohne Konto.",
|
||||
"cta": [["In 15 Minuten loslegen", "quickstart"], ["Live-Demo ausprobieren", "https://therealmrbk.github.io/NextFloor/"]],
|
||||
"shot": "view-house.jpg",
|
||||
"shotAlt": "Ein Haus in der 3D-Ansicht von NextFloor mit beleuchteten Räumen und auseinandergezogenen Etagen",
|
||||
"pathsTitle": "Starte da, wo du stehst",
|
||||
"pathsLead": "Die Dokumentation folgt dem Weg, den du wirklich gehst. Wähle die Tür, die heute passt.",
|
||||
"paths": [
|
||||
{ "title": "Ich bin neu hier", "text": "NextFloor installieren, den ersten Raum zeichnen, eine Lampe setzen und sie in der 3D-Ansicht schalten. Etwa fünfzehn Minuten, ohne Vorbereitung.", "href": "quickstart", "go": "Zum Schnellstart" },
|
||||
{ "title": "Ich will meine Geräte darin", "text": "Lichter, Rollläden, Sensoren, den Fernseher, das Auto und den Garten mit dem Plan verbinden.", "href": "devices", "go": "Geräte verbinden" },
|
||||
{ "title": "Ich will darauf aufbauen", "text": "Dashboard-Karte, Automationen, Plugins und eigene Möbel.", "href": "cards", "go": "Verbinden und erweitern" }
|
||||
],
|
||||
"tourTitle": "Was du bekommst",
|
||||
"tourLead": "Alles hier ist eingebaut, kostenlos und läuft mit den Geräten, die du schon hast.",
|
||||
"tour": [
|
||||
{ "title": "Ein Plan-Editor, der sich wie ein Spiel anfühlt", "text": "Etagen, Räume, gebogene Wände, Türen, Fenster, Treppen, Dächer und Gärten. Das 3D-Modell wächst neben dem Plan mit. Statt bei null anzufangen, importierst du einen Scan, eine CAD-Zeichnung oder einen Sweet-Home-3D-Plan.", "links": [["Haus zeichnen", "draw"], ["Import und Sicherung", "plan-tools"]], "img": "editor.jpg", "alt": "Der Plan-Editor mit der 3D-Ansicht daneben" },
|
||||
{ "title": "800 Möbelmodelle, oder baue deine eigenen", "text": "Vierzig Grundmodelle und dreiundvierzig kostenlose Packs, vom IKEA-Sofa bis zum Bilderrahmen mit eigenen Fotos. Die Möbel-Werkstatt und der Browser-Baukasten bauen alles, was fehlt.", "links": [["Einrichten", "furnish"], ["Möbel-Packs", "packs"]], "img": "new-furniture.jpg", "alt": "Möbel aus mehreren Packs in einem Raum" },
|
||||
{ "title": "Lampe antippen, der Raum antwortet", "text": "Lichter leuchten in ihrer echten Farbe, Rollläden fahren, Fenster und Türen öffnen sich, der Fernseher zeigt, was läuft, draußen regnet es. Das Raum-Fenster bündelt jedes Gerät eines Raums.", "links": [["Die 3D-Ansicht", "view3d"], ["Live-Funktionen", "live"]], "img": "view-room.jpg", "alt": "Ein Raum in 3D mit Lampen und dem Raum-Fenster" },
|
||||
{ "title": "Klima, Sonne und Energie, pro Raum", "text": "Heatmaps für Temperatur, Feuchte, CO₂ und Schimmelrisiko, die Sonnenstunden je Raum und der Stromfluss entlang der echten Kabelwege deines Hauses.", "links": [["Klima und Energie", "climate-energy"], ["Außen und Dach", "outside"]], "img": "view-energy.jpg", "alt": "Das Haus mit dem Energiefluss vom Solarfeld" },
|
||||
{ "title": "Gemacht fürs Wandtablet", "text": "Eine Dashboard-Karte mit visuellem Editor, ein Kiosk-Modus, der nachts dimmt, Durchsagen auf jedem Bildschirm und eine Qualität, die auf langsamer Hardware von selbst herunterschaltet.", "links": [["Die Karte", "cards"], ["Wandtablet", "tablet"]], "img": "tablet.jpg", "alt": "NextFloor auf einem Wandtablet" }
|
||||
],
|
||||
"refsTitle": "Etwas nachschlagen",
|
||||
"refs": [
|
||||
{ "title": "Referenz", "links": [["Karten-Optionen", "cards"], ["Dienste und Sensoren", "automations"], ["Plan-Format (JSON)", "plan-format"], ["Tasten und Gesten", "shortcuts"]] },
|
||||
{ "title": "Erweitern", "links": [["Ein Plugin schreiben", "plugins"], ["Format der Möbel-Packs", "packs"], ["Eigene 3D-Modelle", "models"]] },
|
||||
{ "title": "Weiterkommen", "links": [["FAQ und Fehlersuche", "faq"], ["Änderungsprotokoll", "changelog"], ["Mitmachen", "contributing"]] }
|
||||
],
|
||||
"promiseTitle": "Für immer kostenlos, und die Lizenz sagt es auch",
|
||||
"promise": [
|
||||
"Jede Funktion, jedes Möbel-Pack und jedes Update ist für alle kostenlos. Es gibt keine Pro-Version, keine bezahlten Erweiterungen, keinen Unterstützer-Pass und keinen Lizenzschlüssel.",
|
||||
"Deine Daten bleiben in deinem Home Assistant. Kein Konto, keine Cloud, keine Nutzungsdaten. NextFloor steht unter der MIT-Lizenz, also kann es dir niemand wegnehmen, nicht einmal der Autor."
|
||||
],
|
||||
"stats": [["43", "Möbel-Packs"], ["~800", "Modelle"], ["19", "Sprachen"], ["0", "Euro, für immer"]]
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
---
|
||||
title: Durchsagen
|
||||
description: „Essen ist fertig!“ in dem Raum, der es hören soll: über seinen Lautsprecher und auf jedem offenen NextFloor-Bildschirm.
|
||||
---
|
||||
|
||||
*„Essen ist fertig!“* – und genau der Raum, der es hören soll, hört es.
|
||||
|
||||
## Aus einem Raum
|
||||
|
||||
Hat ein Raum einen Lautsprecher, gibt es in seinem Fenster den Abschnitt **📢 Durchsage**. Einen Satz antippen oder einen eigenen tippen, und der Lautsprecher des Raums sagt ihn. Eigene Sätze stehen unter *Editor → Einstellungen*, einer pro Zeile.
|
||||
|
||||
## Welcher Lautsprecher benutzt wird
|
||||
|
||||
NextFloor wählt in dieser Reihenfolge:
|
||||
|
||||
1. den im Formular des Raums gewählten Lautsprecher
|
||||
2. einen im Raum platzierten Lautsprecher
|
||||
3. einen Sprachassistenten (Voice PE und andere Satelliten), ein Echo oder einen Lautsprecher des Bereichs des Raums
|
||||
|
||||
Ein Fernseher oder ein ausgeschalteter Lautsprecher wird nie von selbst gewählt.
|
||||
|
||||
| Lautsprecher | So sagt er es durch |
|
||||
|---|---|
|
||||
| Sprachassistenten | mit ihrem Gong |
|
||||
| Echo | als echte Durchsage (Alexa Devices oder Alexa Media Player) |
|
||||
| Sonos und andere, die das können | senken ihre Musik und spielen danach weiter |
|
||||
| Jeder andere Lautsprecher | über Text-zu-Sprache von Home Assistant |
|
||||
|
||||
## Ruhezeit je Raum
|
||||
|
||||
Im Formular des Raums, zum Beispiel 20:00–07:00 fürs Kinderzimmer. Durchsagen an mehrere Räume lassen den Raum dann aus; eine Durchsage nur für ihn kommt trotzdem an.
|
||||
|
||||
## Auf den Bildschirmen
|
||||
|
||||
Jede offene NextFloor-Seite (Panel oder Karte) zeigt die Nachricht groß über dem Haus, spielt einen sanften Gong und spricht sie. **Ein altes Wandtablet wird zum Durchsage-Lautsprecher.**
|
||||
|
||||
- Unter ⚙ → 📢 bekommt ein Bildschirm einen Namen (zum Beispiel *Flur*), damit Durchsagen auch nur an ihn gehen können, oder bleibt ohne Haken still.
|
||||
- Browser spielen Ton erst nach dem ersten Antippen der Seite. In Fully Kiosk *Autoplay Audio* einschalten (Web Content Settings).
|
||||
|
||||
## In Automationen
|
||||
|
||||
Die Aktion **NextFloor: Durchsage**:
|
||||
|
||||
```yaml
|
||||
action: nextfloor.announce
|
||||
data:
|
||||
message: "Es hat geklingelt!"
|
||||
rooms: [Küche, Wohnzimmer] # nach Name, Raum-ID oder Bereichs-ID; weglassen = jeder Raum mit Lautsprecher
|
||||
on_screens: true # die offenen NextFloor-Bildschirme zeigen und sprechen es auch
|
||||
screens: [Flur] # optional: nur diese Bildschirme
|
||||
```
|
||||
|
||||
| Feld | Bedeutung |
|
||||
|---|---|
|
||||
| `message` | der Text (Pflicht) |
|
||||
| `rooms` | Raumnamen, Raum-IDs oder Bereichs-IDs; weglassen = jeder Raum mit Lautsprecher |
|
||||
| `floor` | beschränkt es auf eine Etage |
|
||||
| `on_speakers` | `false` lässt die Lautsprecher still |
|
||||
| `on_screens` | `false` lässt die Bildschirme still |
|
||||
| `screens` | nur diese benannten Bildschirme |
|
||||
| `tts_entity` | wählt die Stimme |
|
||||
|
||||
Die Aktion meldet zurück, welcher Lautsprecher es gesagt hat und welche Räume (und warum) ausgelassen wurden.
|
||||
|
||||
## Weiter
|
||||
|
||||
[Wandtablet →](tablet.md)
|
||||
@@ -0,0 +1,60 @@
|
||||
---
|
||||
title: Dienste und Sensoren
|
||||
description: Die Sensoren und Aktionen, die NextFloor zu Home Assistant hinzufügt, mit Beispielen für Benachrichtigungen und Durchsagen.
|
||||
---
|
||||
|
||||
NextFloor fügt Home Assistant eine kleine, stabile Oberfläche hinzu: zwei Arten von Sensoren und zwei Aktionen.
|
||||
|
||||
## Sensoren
|
||||
|
||||
Am Gerät *NextFloor* findest du:
|
||||
|
||||
| Sensor | Zählt |
|
||||
|---|---|
|
||||
| *Offene Fenster und Türen* | die offenen Kontakte, Garagentore und Geräte-Pins des Plans |
|
||||
| *Lichter an* | die eingeschalteten Lampen des Plans |
|
||||
|
||||
Es gibt je einen **fürs Haus** und einen **für jede Etage**. Das Attribut `entities` nennt, was offen oder an ist.
|
||||
|
||||
Beispiel: eine Benachrichtigung, wenn die Alarmanlage scharf wird, während etwas offen ist:
|
||||
|
||||
```yaml
|
||||
action: notify.mobile_app_handy
|
||||
data:
|
||||
message: >
|
||||
Noch offen: {{ state_attr('sensor.nextfloor_offene_fenster_und_turen', 'entities') | join(', ') }}
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
> Die genauen Entity-IDs findest du unter *Einstellungen → Geräte & Dienste → NextFloor*. Sie folgen den Namen deiner Etagen.
|
||||
|
||||
## Aktionen
|
||||
|
||||
### `nextfloor.announce`
|
||||
|
||||
Spricht eine Nachricht in den richtigen Räumen und auf den offenen NextFloor-Bildschirmen. Alle Felder stehen unter [Durchsagen](announcements.md#in-automationen).
|
||||
|
||||
```yaml
|
||||
action: nextfloor.announce
|
||||
data:
|
||||
message: "Es hat geklingelt!"
|
||||
rooms: [Flur]
|
||||
```
|
||||
|
||||
### `nextfloor.reload_screens`
|
||||
|
||||
Lässt offene NextFloor-Seiten einige Sekunden versetzt neu laden, zum Beispiel nach einem Update. Mit `template` laden nur die Karten neu, die diese [Kartenvorlage](cards.md#kartenvorlagen) nutzen.
|
||||
|
||||
```yaml
|
||||
action: nextfloor.reload_screens
|
||||
data:
|
||||
template: kueche_tablet
|
||||
```
|
||||
|
||||
## Alles aus
|
||||
|
||||
*⏻ Alles aus* ist ein Knopf im Raum-Fenster und in der Etagenleiste, keine Aktion. Er schaltet Lichter, Schalter, Ventilatoren und Medien aus, und *↶ Rückgängig* holt sie zehn Sekunden lang zurück.
|
||||
|
||||
## Weiter
|
||||
|
||||
[Ein Plugin schreiben →](plugins.md)
|
||||
@@ -0,0 +1,62 @@
|
||||
---
|
||||
title: Bluetooth-Ortung
|
||||
description: Herausfinden, in welchem Raum ein Bluetooth-Tag, eine Uhr oder ein Handy ist, durch Abgehen der Räume gelernt, mit den Bluetooth-Scannern, die Home Assistant schon hat.
|
||||
---
|
||||
|
||||
NextFloor kann sagen, **in welchem Raum ein Bluetooth-Tag ist**: ein Schlüsselanhänger, eine Uhr, ein Handy. Du gehst einmal mit dem Tag durch die Räume und nimmst jeden Raum auf. Danach zeigt ein Sensor in Home Assistant den Raumnamen, und mit der *Anwesenheit* steht der Avatar der Person in diesem Raum.
|
||||
|
||||
> [!WARNING]
|
||||
> **Diese Funktion ist neu und experimentell.** Sie ist mit simulierten Signalen gebaut und getestet, noch nicht mit einem langen Lauf in einem echten Haus. Funksignale prallen an Wänden und Menschen ab, rechne also ab und zu mit einem falschen Raum, vor allem an einer Wand zwischen zwei Räumen. Sag uns in den [Discussions](https://github.com/therealMRBK/NextFloor/discussions), wie es bei dir klappt.
|
||||
|
||||
## Was du brauchst
|
||||
|
||||
Das Verfahren braucht **mindestens zwei Bluetooth-Scanner, drei oder mehr sind viel besser**, in verschiedenen Räumen. Ein Scanner ist alles, womit Home Assistant Bluetooth mithört:
|
||||
|
||||
- ein **ESPHome-Bluetooth-Proxy** (ein ESP32-Board, ein paar Euro),
|
||||
- ein **Shelly-Gerät** (Gen2 und neuer) mit eingeschaltetem Bluetooth-Scan: In Home Assistant den Shelly-Eintrag öffnen, *Konfigurieren* drücken und den Bluetooth-Scanner-Modus auf *passiv*, *aktiv* oder *automatisch* stellen. Shellys in den Wänden sind gute Scanner, weil sie in vielen Räumen sitzen,
|
||||
- der **Bluetooth-Adapter des Servers** selbst.
|
||||
|
||||
Mit nur einem Scanner erkennt NextFloor nah und fern, aber nicht den einen Raum vom nächsten.
|
||||
|
||||
Der Tag kann sein:
|
||||
|
||||
- ein **Bluetooth-Tag mit fester Adresse** (Schlüsselanhänger, viele Fitnessarmbänder, ein ESP32-Beacon),
|
||||
- ein **Handy oder eine Uhr** über die Integration [Private BLE Device](https://www.home-assistant.io/integrations/private_ble_device/) von Home Assistant. Handys und Uhren wechseln ihre Bluetooth-Adresse ständig; Private BLE Device folgt ihnen mit ihrem *Identity Resolving Key*. NextFloor fragt dann diese Integration nach der aktuellen Adresse. Den Schlüssel von einem iPhone zu bekommen ist etwas Arbeit, die Seite der Integration erklärt es.
|
||||
|
||||
## Einrichten
|
||||
|
||||
1. Im Editor **Einstellungen → Bluetooth-Ortung** öffnen.
|
||||
2. Unter *Tag oder Gerät hinzufügen* deinen Tag wählen. Handys und Uhren aus Private BLE Device stehen zuerst. Ein Tag erscheint erst in der Liste, wenn ein Scanner ihn gehört hat: Halte ihn nah an einen Scanner und drücke *Liste neu laden*.
|
||||
3. **Hinzufügen** drücken, dann beim neuen Tag **Räume lernen**. Die Balken zeigen, wie stark jeder Scanner den Tag gerade hört.
|
||||
4. Einen Raum wählen, **Aufnehmen** drücken und 30 Sekunden lang langsam durch den ganzen Raum gehen, den Tag in der Hand, auch in die Ecken.
|
||||
5. Für jeden Raum wiederholen, in dem du den Tag orten willst. **Jetzt** zeigt den Raum, den NextFloor in diesem Moment antworten würde, eine gute Kontrolle nach jedem Raum.
|
||||
|
||||
Einen Raum erneut aufzunehmen ersetzt ihn. Jeder Raum wird als bis zu drei Aufnahmen aus verschiedenen Abschnitten deines Wegs gespeichert.
|
||||
|
||||
## Der Sensor
|
||||
|
||||
Jeder Tag bekommt einen Sensor am Gerät *NextFloor*. Sein **Zustand ist der Raumname**, oder `unknown`, wenn kein Raum gut passt oder zwei Minuten lang kein Scanner den Tag gehört hat. Die Attribute tragen die Raum-ID, die Etage, wie gut der Raum passte (`distance_db`) und was jeder Scanner hört.
|
||||
|
||||
```yaml
|
||||
automation:
|
||||
- alias: "Licht folgt mir"
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: sensor.nextfloor_schluessel
|
||||
to: "Küche"
|
||||
actions:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
area_id: kueche
|
||||
```
|
||||
|
||||
Der Raum wechselt erst nach drei Messungen in Folge (etwa sechs Sekunden), damit die Antwort nicht flackert. Um die Person in 3D zu zeigen, wählst du den Sensor unter **Anwesenheit** als Raum-Sensor dieser Person: Sein Zustand ist ein Raumname, wie die Anwesenheit ihn erwartet.
|
||||
|
||||
## Wie es funktioniert, und was es nicht tut
|
||||
|
||||
NextFloor liest die Signalstärke (RSSI), die jeder Scanner für den Tag meldet, im Abstand weniger Sekunden und bildet den Median der letzten fünf Messungen. Dieses Muster vergleicht es mit den Aufnahmen jedes Raums und wählt den nächsten. Ein Raum wird nur geantwortet, wenn er nah genug ist, sonst ist die Antwort `unknown`.
|
||||
|
||||
- Nichts verlässt Home Assistant. Die Aufnahmen liegen im Plan, aber **nicht** in geteilten Plänen und Vorlagen.
|
||||
- Die Scanner müssen an ihrem Platz bleiben. Verschiebst du einen Proxy, nimm die Räume neu auf.
|
||||
- Ein Körper schwächt das Signal. Nimm mit dem Tag auf, wo du ihn sonst trägst (Tasche oder Hand).
|
||||
- Verschiedene Tags hören sich verschieden an, jeder Tag braucht also eigene Aufnahmen.
|
||||
@@ -0,0 +1,119 @@
|
||||
---
|
||||
title: Die Dashboard-Karte
|
||||
description: Die NextFloor-Karte in jedes Dashboard setzen, mit visuellem Editor, Kartenvorlagen und einer vollständigen Liste jeder Option.
|
||||
---
|
||||
|
||||

|
||||
|
||||
*NextFloor* im Karten-Dialog des Dashboards hinzufügen, oder in YAML schreiben:
|
||||
|
||||
```yaml
|
||||
type: custom:nextfloor-card
|
||||
floor: ground
|
||||
theme: neon
|
||||
room_buttons: true
|
||||
```
|
||||
|
||||
Der **visuelle Editor** stellt alles Folgende ohne YAML ein. Die YAML-Namen sind die in dieser Referenz. Jede Option ist optional, die Vorgaben stehen in den Tabellen.
|
||||
|
||||
## Kartenvorlagen
|
||||
|
||||
Richte eine Karte einmal ein und nutze sie auf vielen Tablets. *Einstellungen → Kartenvorlagen* im Editor nimmt einen Namen (etwa `kueche_tablet`) und den Einstellungsdialog der Karte. Auf einer Dashboard-Karte wählst du die Vorlage in ihren Einstellungen oder schreibst:
|
||||
|
||||
```yaml
|
||||
type: custom:nextfloor-card
|
||||
template: kueche_tablet
|
||||
```
|
||||
|
||||
Die eigenen Optionen der Karte gewinnen. Eine Änderung im Editor erreicht jede Karte, die die Vorlage nutzt. *Bildschirme mit dieser Vorlage neu laden* und *Alle Bildschirme neu laden* (auch die Aktion `nextfloor.reload_screens`, mit optionalem `template`) lassen die offenen Tablets ihre Seite einige Sekunden versetzt neu laden, zum Beispiel nach einem Update.
|
||||
|
||||
## Was die Karte zeigt
|
||||
|
||||
| Option | Vorgabe | Bedeutung |
|
||||
|---|---|---|
|
||||
| `floor` | | Startetage |
|
||||
| `room` | | in diesem Raum starten (seine ID aus dem Editor), für ein Display eines Raums |
|
||||
| `rooms` | | nur diese Räume (eine Liste von IDs) mit dem, was darin steht; die Karte kann sie nicht verlassen |
|
||||
| `height` | | feste Höhe der Karte |
|
||||
| `fill` | `false` | den Bildschirm unter der Dashboard-Kopfzeile füllen statt fester Höhe |
|
||||
| `plain` | `false` | nur Grundriss: keine Möbel (Geräte und ihre Pins bleiben) |
|
||||
| `floor_stack` | `dim` | eine geöffnete Etage mit abgedunkelten Etagen darunter (`dim`), gestapelt (`stacked`) oder allein (`single`) |
|
||||
| `explode` | `true` | die Etagen in der Hausansicht auseinanderziehen |
|
||||
| `roof_fade` | `true` | das Dach hebt sich und blendet beim Hineinzoomen aus |
|
||||
| `room_names` | `true` | Raumnamen in 3D |
|
||||
| `energy` | `true` | Energiewerte oben |
|
||||
| `sensor_bar` | `true` | die eigenen Sensoren des Plans oben |
|
||||
| `weather` | `true` | Regen, Schnee, Nebel, Wolken, Sonne und Mond um das Haus |
|
||||
| `weather_entity` | die erste | die Wetter-Entity, die genutzt wird |
|
||||
| `weather_density` | `1` | wie viel Regen, Hagel und Schnee fällt, 0,1 … 1 |
|
||||
| `today` | `true` | die Karte *Heute* mit Terminen und Tonnen |
|
||||
|
||||
## Aussehen
|
||||
|
||||
| Option | Vorgabe | Bedeutung |
|
||||
|---|---|---|
|
||||
| `theme` | `auto` | `neon`, `blueprint`, `day` |
|
||||
| `accent` | Cyan | Akzentfarbe als `#rrggbb` |
|
||||
| `furniture_colors` | die des Hauses | eigene Möbelfarben dieser Karte, z. B. `{body: "#3a2a1a", fabric: "#552233"}`; Rollen: `body`, `wood`, `fabric`, `white`, `metal`, `dark` |
|
||||
| `walls` | | Wandmodus der Ansicht |
|
||||
| `solid_walls` | `false` | blickdichte Wände in ihrer Farbe statt Glas |
|
||||
| `glass_walls` | `20` | wie blickdicht die durchsichtigen Wände sind, 0 … 100 % |
|
||||
| `quality` | auto | `auto`, `tablet`, `high` |
|
||||
| `markers` | `important` | `none`, `important`, `all` |
|
||||
| `markers_outside` | | außerhalb des geöffneten Raums zeigen nur Symbole dieser Arten |
|
||||
| `marker_names` | `false` | jedes Gerät mit eigenem Namen zeigt ihn unter seinem Symbol |
|
||||
| `heatmap` | `none` | `none`, `temperature`, `humidity`, `co2` |
|
||||
| `clock` | `none` | `top_left`, `top_right`, `bottom_left`, `bottom_right` |
|
||||
| `readable` | `false` | kräftigere Kontraste und größere Schrift, für Wandtablets |
|
||||
| `zoom` | `1` | wie viel näher die eingepassten Ansichten kommen, 0,6 … 2,5 |
|
||||
| `stats` | `false` | Bilder pro Sekunde und Zeichenaufrufe zeigen |
|
||||
|
||||
## Bedienelemente und Verhalten
|
||||
|
||||
| Option | Vorgabe | Bedeutung |
|
||||
|---|---|---|
|
||||
| `controls` | | Schalter in der Karte: alle (`true`) oder eine Liste aus `walls`, `floors`, `temperature`, `humidity`, `co2` |
|
||||
| `controls_hidden` | | mit ausgeblendeten Leisten und Einblendungen starten (der Augen-Knopf holt sie zurück) |
|
||||
| `controls_hide_after` | | alle Leisten nach so vielen Sekunden ohne Berührung ausblenden |
|
||||
| `room_panel` | `true` | Antippen eines Raums öffnet seine Details |
|
||||
| `room_buttons` | `false` | eine Reihe von Knöpfen, einer je Raum |
|
||||
| `floor_thumbs` | an ohne Startetage | kleine Bilder der Etagen zum Wechseln |
|
||||
| `central` | `true` | der Stern mit dem Zentralmenü |
|
||||
| `central_open` | `false` | das Sternmenü steht von Anfang an offen, eine Größe größer |
|
||||
| `buttons` | | eigene Knöpfe im Zentralmenü: `label`, `icon`, `action` (`navigate`, `more_info`, `service`, `fire_dom_event`), `target`, `data` |
|
||||
| `scenes` | `true` | Szenen- und Skript-Chips des gewählten Raums |
|
||||
| `tap_in_room` | `false` | Geräte schaltet ein Tippen nur im geöffneten Raum; anderswo öffnet es die Etage oder den Raum (langer Druck wirkt weiter) |
|
||||
| `room_double_tap` | `auto` | was ein Doppeltipp auf einen Raum schaltet: `auto`, `area`, `plan`, `off` |
|
||||
| `keep_camera` | `false` | beim Etagenwechsel bleiben Seite, Höhe und Abstand der Kamera |
|
||||
| `right_back` | `false` | ein kurzer Rechtsklick geht einen Schritt zurück |
|
||||
| `start_view` | die des Plans | eine eigene Startansicht dieser Karte |
|
||||
| `lock_button` | `true` | der 🔒-Knopf, der die Kamera sperrt |
|
||||
| `walk_button` | `true` | der 🚶-Knopf zum Gehen durchs Haus |
|
||||
| `time_travel` | `true` | der ⏪-Knopf zum Abspielen des letzten Tages oder der letzten Woche |
|
||||
| `fullscreen_button` | `false` | ein Knopf für Vollbild |
|
||||
| `dashboard`, `dashboard_label` | | ein Knopf zu einem anderen Dashboard oder einer anderen Ansicht |
|
||||
| `flows` | Schalter | Stromfluss-Linien immer an oder aus |
|
||||
| `holograms` | Schalter | die Live-Karten (Energiebilanz, Auto, Medien) immer an oder aus |
|
||||
|
||||
## Warnungen und Durchsagen
|
||||
|
||||
| Option | Vorgabe | Bedeutung |
|
||||
|---|---|---|
|
||||
| `alerts` | `true` | Warnungen bei Rauch, Wasser, Alarm und Fenster im Regen als pulsierende Räume und Banner |
|
||||
| `alert_jump` | `false` | in den Raum einer neuen Warnung springen |
|
||||
| `announcements` | `true` | Durchsagen erscheinen und klingen auf dieser Karte |
|
||||
| `screen_name` | Name des Panels | der Name dieses Bildschirms, für Durchsagen nur an einige Bildschirme |
|
||||
|
||||
## Kiosk
|
||||
|
||||
| Option | Bedeutung |
|
||||
|---|---|
|
||||
| `idle_return` | Sekunden ohne Berührung, bevor die Startansicht zurückkehrt (0 = nie) |
|
||||
| `night` | nachts dimmen: `off`, `sun` oder ein Zeitraum wie `22:00-06:00` |
|
||||
| `idle_orbit` | nach der Rückkehr die Ansicht langsam drehen, bis zur nächsten Berührung |
|
||||
|
||||
Mehr unter [Wandtablet](tablet.md).
|
||||
|
||||
## Weiter
|
||||
|
||||
[Dienste und Sensoren →](automations.md)
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Änderungsprotokoll
|
||||
description: Alles, was sich in jedem NextFloor-Release geändert hat, das Neueste zuerst. Die Einträge sind auf Englisch.
|
||||
generated: changelog
|
||||
---
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
title: Klima und Energie
|
||||
description: Heatmaps für Temperatur, Feuchte, CO₂ und Schimmelrisiko, Sonnenstunden und Strom je Raum, die WLAN-Karte und der Energiefluss deines Hauses.
|
||||
---
|
||||
|
||||

|
||||
|
||||
## Heatmaps
|
||||
|
||||
Die Kartenauswahl in der 3D-Ansicht färbt jeden Raum nach einem Wert. Neben **Temperatur**, **Feuchte** und **CO₂** gibt es:
|
||||
|
||||
| Karte | Was sie zeigt |
|
||||
|---|---|
|
||||
| **Schimmel** | das Risiko an der kältesten Wand jedes Raums, mit einer Wohlfühl-Note |
|
||||
| **Werte** | die Zahlen je Raum, mit Lüftungshinweisen |
|
||||
| **WLAN** | die Reichweite jedes Access Points auf der Etage, seine Geräte, und welche Netzwerkgeräte offline sind |
|
||||
| **Sonne** | die Sonnenstunden, die jeder Raum heute durch seine Fenster bekommt |
|
||||
| **Strom** | was jeder Raum gerade zieht |
|
||||
|
||||
Die Temperatur-Skala ist von Mai bis September eine Sommer-Skala, sonst eine Winter-Skala.
|
||||
|
||||
> [!NOTE]
|
||||
> Die **Sonnenstunden** werden aus dem Plan selbst berechnet: seinen Fenstern, dem Kompass und dem Weg der Sonne. Stelle den [Kompass](outside.md#kompass-und-karte) ein, bevor du ihnen traust.
|
||||
|
||||
## Im Raum-Fenster
|
||||
|
||||
- Die **Temperatur des Raums der letzten 24 Stunden** und wann gelüftet werden sollte.
|
||||
- **kWh und Kosten** des Raums für heute und diesen Monat.
|
||||
- Die **Sonne übers Jahr**, ein **Schatten-Hinweis**, wenn die Sonne den Raum aufheizt, und ein Hinweis, wenn ein Fenster offen steht, während die Heizung läuft.
|
||||
- **Schwache Batterien** und **Licht in leeren Räumen** werden als Hinweise gesammelt.
|
||||
- Eine **Fußbodenheizung** glüht auf dem Boden der Räume, in denen du ihren Thermostat, ihr Ventil oder ihren Schalter genannt hast.
|
||||
|
||||
## Energie
|
||||
|
||||
Die Energiefunktionen brauchen ein **Solarfeld**, einen **Zähler** und einen **Wechselrichter**. Batterie und Netzanschluss sind optional. Die Einrichtung steht unter [Außen, Dach und Energie](outside.md#energie).
|
||||
|
||||
- **Stromfluss:** Teilchen laufen von den Solarmodulen zu Wechselrichter, Haus, Akku und Netz, entlang der echten [Kabelwege](outside.md#energie), die du gezeichnet hast. Eine Glaskarte zeigt Bilanz und Autarkie; der kleine Knopf in ihrer Ecke klappt sie auf Ring und Sonnenleistung zusammen (am Handy wie am Rechner, der Browser merkt es sich).
|
||||
- **Akku:** Ein Hausspeicher zeigt seinen Ladestand an der Front.
|
||||
- **Zähler:** Gas- und Wasserzähler stellen ihre Werte zur Bilanz.
|
||||
- **Etagen-Zähler:** Ein Leistungssensor je Etage zeigt seinen Wert auf dem Etagen-Schild und seinen Anteil am Haus.
|
||||
- **Hauskarte:** Die Energie-Karte über dem Dach zeigt die letzten 24 Stunden als Kurve (Solar als Fläche, Verbrauch als Linie) und die letzten **sieben Tage** als Balken. Sie steht auch über der geöffneten Etage.
|
||||
- **Standby-Fresser:** Die Plan-Prüfung listet Geräte, die im Leerlauf Strom ziehen, mit ihren Jahreskosten.
|
||||
|
||||
## Weiter
|
||||
|
||||
[Haushalt und Haustiere →](household.md)
|
||||
@@ -0,0 +1,53 @@
|
||||
---
|
||||
title: So funktioniert NextFloor
|
||||
description: Die Ideen hinter NextFloor in fünf Minuten: Plan, Bereiche, Entitäten, die 3D-Ansicht und was wo gespeichert wird.
|
||||
---
|
||||
|
||||
NextFloor hat nur wenige Grundideen. Wenn du sie kennst, lässt sich jede andere Seite dieser Dokumentation leicht einordnen.
|
||||
|
||||
## Der Plan ist die Mitte
|
||||
|
||||
Du zeichnest dein Zuhause einmal als **Plan**: Etagen, Räume, Wände, Türen, Fenster, Treppen, Dächer, Außenflächen und Möbel. Alles andere entsteht aus dem Plan. Die 3D-Ansicht, das Raum-Fenster, die Heatmaps, die Dashboard-Karte und der gedruckte Grundriss sind verschiedene Blicke auf dieselben Daten.
|
||||
|
||||
## Bereiche verbinden Räume mit Geräten
|
||||
|
||||
Ein **Raum** in NextFloor zeigt auf einen **Bereich** von Home Assistant. So weiß NextFloor, welche Geräte wohin gehören. Öffnest du das Formular eines Raums, listet der Abschnitt *Geräte* die Geräte dieses Bereichs, und du platzierst die, die du im Plan haben willst.
|
||||
|
||||
Geräte ohne Bereich oder aus einem anderen Bereich erreichst du über die Reiter *Andere Bereiche* und *Ohne Bereich*.
|
||||
|
||||
## Platzieren schaltet nie etwas
|
||||
|
||||
Eine Lampe platzieren, einen Rollladen verknüpfen oder eine Entität wählen sagt NextFloor nur, *wofür ein Bild steht*. NextFloor schaltet durch das Zuweisen nie etwas. Es liest den Live-Zustand der Entität, und nur ein Tippen in der 3D-Ansicht schickt einen Befehl.
|
||||
|
||||
## Möbel sind das Gesicht eines Geräts
|
||||
|
||||
Ein Möbelstück ist ein 3D-Modell. Manche Stücke sind **elektrisch** (eine Lampe, ein Fernseher, eine Waschmaschine) und lassen sich mit einer Entität verbinden; das Modell zeigt dann den Zustand: Die Lampe leuchtet, der Fernseher zeigt die laufende App, die Waschmaschine die Restminuten. Andere Stücke sind Deko.
|
||||
|
||||
## Ein Plan, mehrere Ansichten
|
||||
|
||||
| Ansicht | Wofür |
|
||||
|---|---|
|
||||
| **3D-Ansicht** | Das Haus als Modell. Tippen, Wischen und langes Drücken steuern die Dinge. |
|
||||
| **Raum-Fenster** | Jedes Gerät eines Raums in einer Liste, mit Szenen und Schnellmenüs. |
|
||||
| **Editor** | Hier zeichnest und verknüpfst du. Nur für Administratoren. |
|
||||
| **Dashboard-Karte** | Die 3D-Ansicht als Karte, für jedes Dashboard und jedes Wandtablet. |
|
||||
| **Plan auf Papier** | Jede Etage in 1:100 mit Maßen und einer Flächentabelle. |
|
||||
|
||||
## Was wo gespeichert wird
|
||||
|
||||
| Daten | Wo |
|
||||
|---|---|
|
||||
| Der Plan, seine Bilder, deine Möbel-Packs | Im Ordner `.storage` von Home Assistant, auf deiner Installation |
|
||||
| Plugins und zusätzliche Modelle | Dein Home Assistant, Ordner `www` oder der Store |
|
||||
| Kartenkacheln (nur wenn du die echte Karte einschaltest) | Dein Browser lädt sie direkt vom Kartenserver |
|
||||
| Alles andere | Nirgends. Es gibt kein Konto, keine Cloud und keine Nutzungsdaten |
|
||||
|
||||
## Was NextFloor zu Home Assistant hinzufügt
|
||||
|
||||
- Ein Seitenleisten-Panel und die Karte `custom:nextfloor-card`.
|
||||
- Sensoren für offene Fenster und Türen und für eingeschaltete Lichter. Siehe [Dienste und Sensoren](automations.md).
|
||||
- Aktionen wie `nextfloor.announce`. Siehe [Durchsagen](announcements.md).
|
||||
|
||||
## Weiter
|
||||
|
||||
[Haus zeichnen →](draw.md)
|
||||
@@ -0,0 +1,55 @@
|
||||
---
|
||||
title: Mitmachen
|
||||
description: Wie du einen Fehler meldest, eine Übersetzung beisteuerst, Möbel baust oder einen Pull Request schickst.
|
||||
---
|
||||
|
||||
NextFloor ist aus Überzeugung frei und Open Source. Was du beisteuerst, gehört allen, unter der MIT-Lizenz.
|
||||
|
||||
## Ideen und Fehler
|
||||
|
||||
- **Ideen und Fragen:** [Discussions](https://github.com/therealMRBK/NextFloor/discussions).
|
||||
- **Fehler:** [Issues](https://github.com/therealMRBK/NextFloor/issues/new/choose). Nenne die Version, was du getan hast, was du erwartet und was du gesehen hast. Ein Screenshot hilft.
|
||||
- **Sicherheitsprobleme** gehen über die [private Meldung](https://github.com/therealMRBK/NextFloor/security/advisories/new), nie über ein öffentliches Issue.
|
||||
|
||||
## Übersetzungen
|
||||
|
||||
Deutsch und Englisch sind eingebaut. Weitere Sprachen sind Dateien in `frontend/lang/<code>.json` mit den Schlüsseln aus `frontend/src/i18n.ts`. Sie werden nur geladen, wenn Home Assistant in dieser Sprache läuft, und ein Schlüssel, der in einer Datei fehlt, fällt auf Englisch zurück. Ein Pull Request, der eine Sprache vervollständigt, ist sehr willkommen. Diese Dokumentation gibt es ebenfalls auf Deutsch und Englisch: Die Markdown-Quellen liegen in `docs/content/en` und `docs/content/de`.
|
||||
|
||||
## Möbel und Plugins
|
||||
|
||||
- **Möbel:** im [Browser-Baukasten](https://therealmrbk.github.io/NextFloor/builder/) bauen und im Community-Store teilen. Siehe [Möbel-Packs](packs.md). Bitte nur Maße und Formen verwenden, die du selbst gemacht hast.
|
||||
- **Plugins:** siehe [Ein Plugin schreiben](plugins.md) und den [Plugin-Store](https://github.com/therealMRBK/NextFloor-Plugins).
|
||||
- **3D-Modelle, die dir gehören,** bleiben auf deinem eigenen Home Assistant und kommen nie ins Repository. Siehe [Eigene 3D-Modelle](models.md).
|
||||
|
||||
## Vor einem Pull Request
|
||||
|
||||
```bash
|
||||
cd frontend
|
||||
npm install
|
||||
npm run typecheck
|
||||
npm test
|
||||
npm run build # die gebauten Bundles sind eingecheckt; CI schlägt fehl, wenn sie veraltet sind
|
||||
cd ..
|
||||
ruff check . && ruff format --check .
|
||||
pytest -q # die Home-Assistant-Seite
|
||||
```
|
||||
|
||||
- Eine Änderung klein halten und sagen, wofür sie ist.
|
||||
- Commit-Nachrichten folgen Conventional Commits: `feat:`, `fix:`, `docs:`, `build:`, `test:`.
|
||||
- Jede Änderung, die Nutzer bemerken, kommt im selben Commit in `CHANGELOG.md` unter **Unreleased**.
|
||||
- Gearbeitet wird auf `dev`; `main` ist das, was HACS-Nutzer bekommen, und bewegt sich mit Releases.
|
||||
|
||||
Die vollständige Anleitung ist [CONTRIBUTING.md](https://github.com/therealMRBK/NextFloor/blob/main/CONTRIBUTING.md).
|
||||
|
||||
## Diese Dokumentation bauen
|
||||
|
||||
Die Seite wird aus `docs/content` von `tools/docs` gebaut:
|
||||
|
||||
```bash
|
||||
cd tools/docs
|
||||
npm install
|
||||
npm run build # schreibt tools/docs/dist
|
||||
npm run check # schlägt bei kaputten Links, fehlenden Bildern oder einer Seite fehl, die nur in einer Sprache existiert
|
||||
```
|
||||
|
||||
Jede Seite gibt es auf Englisch und Deutsch. Hinweisboxen nutzen `> [!NOTE]`, `> [!TIP]`, `> [!WARNING]` und `> [!IMPORTANT]`. Eine nummerierte Liste mit drei oder mehr Punkten wird zur Schrittliste.
|
||||
@@ -0,0 +1,78 @@
|
||||
---
|
||||
title: Geräte verbinden
|
||||
description: Lichter, Rollläden, Fernseher, Drucker, das Auto, Haustiere und mehr mit dem Plan verbinden. Favoriten, eigene Knöpfe und eigene Warnungen.
|
||||
---
|
||||
|
||||
Im Raum-Formular listet der Abschnitt **Geräte** die Home-Assistant-Geräte des Bereichs dieses Raums. Reiter: *Dieser Bereich*, *Andere Bereiche* und *Ohne Bereich*; Suche nach Namen.
|
||||
|
||||
Jede Zeile hat ein Auge (im 3D-Raum-Fenster ausblenden), *Aa* (eigener Name), einen Stern (ins Raum-Fenster aufnehmen, ohne zu platzieren) und *Platzieren*.
|
||||
|
||||
> [!NOTE]
|
||||
> Entity-Felder sind durchsuchbar: einen Teil des Namens tippen und wählen. **Durch das Zuweisen schaltet NextFloor nie etwas.**
|
||||
|
||||
## Lichter
|
||||
|
||||
Eine platzierte Leuchte wird zur Lampe. Das Lampen-Formular hat diese Optionen:
|
||||
|
||||
| Option | Was sie tut |
|
||||
|---|---|
|
||||
| *Licht oder Schalter* | nennt das Licht, das zur Lampe gehört |
|
||||
| *Farbe und Helligkeit von* | für Lampen, die per Relais geschaltet und anderswo gedimmt werden |
|
||||
| *Leuchtstärke in 3D* | skaliert das Leuchten |
|
||||
| *Vor dem Schalten fragen* | schützt vor versehentlichem Antippen |
|
||||
| *Symbol in 3D* | bestimmt den Pin über der Lampe |
|
||||
|
||||
**Leuchten mit mehreren Lichtern:** *Leuchtmittel 2, 3 …* nimmt Nachtlicht oder Lichtring derselben Leuchte dazu. Ist das Hauptlicht aus, leuchtet die Lampe mit ihnen.
|
||||
|
||||
**Lichtprogramme:** Unter *Effektanimationen in 3D* ordnest du jedem exakten Effektnamen, den Home Assistant meldet, eine Darstellung zu: *Statisch*, *Regenbogen*, *Pulsieren* oder *Flackern*. Nicht zugeordnete Effekte bleiben statisch, denn ein Effektname ist nur der Name eines Programms. Die Zuordnung liegt im Plan und schreibt nie in Home Assistant.
|
||||
|
||||
## Elektrische Möbel
|
||||
|
||||
Möbel wie Fernseher, Kühlschrank oder Waschmaschine finden ihre Entity im selben Bereich selbst (*Automatisch*). Technische Geräte (Wechselrichter, Akku, PC …) nehmen zusätzlich einen Temperatursensor als *Gerätetemperatur*: sein Wert steht am Pin, ab 60 °C ist der Pin hervorgehoben.
|
||||
|
||||
- **Fernseher** zeigen Farbe und Titel der laufenden App. *Leuchten hinter dem TV* stellt das Ambilight ein oder aus.
|
||||
- Ein **Leistungssensor** zeigt die Watt. Jedes elektrische Stück zeigt seine Leistung neben dem Zustand, und seine Statuslichter leuchten, solange es läuft.
|
||||
- **Waschmaschine, Trockner, Spülmaschine:** Mit einem Restlaufzeit-Sensor steht am Pin „Noch 25 min“.
|
||||
|
||||
## Rollläden
|
||||
|
||||
*Art des Behangs* eines Fensters ist Rollladen außen, Raffstore (die Lamellen folgen der Neigung) oder Rollo innen.
|
||||
|
||||
- *Zweiter Rollladen* deckt die rechte Hälfte eines breiten Fensters.
|
||||
- *Lieblingsposition „My“* setzt einen **My**-Knopf ins Schnellmenü des Rollladens (zum Beispiel Somfy).
|
||||
- Auch Dachfenster bekommen Rollladen und Kontakte. Siehe [Außen, Dach und Energie](outside.md).
|
||||
|
||||
## Türen, Schlösser und Tore
|
||||
|
||||
Eine Tür bekommt ein **Smart Lock**: Tür antippen schließt ab oder auf, aufgeschlossen leuchtet sie. **Tore** in Zäunen öffnen sich in 3D nach dem Zustand einer Entität oder eines Kontakts, den du wählst. Siehe [Außen, Dach und Energie](outside.md#tore-in-zaeunen).
|
||||
|
||||
## Drucker, Wärmepumpe, Auto
|
||||
|
||||
- **3D-Drucker und Wärmepumpe:** Drucker oder Wärmepumpe aus den Packs mit einer beliebigen Entität ihres Geräts verbinden. Eine Live-Karte zeigt den Druck (Bild, Fortschritt, Restzeit, Schicht, Temperaturen, Filamente, das Druckteil wächst auf dem Bett) oder die Wärmepumpe (Betriebsart, Vor- und Rücklauf, Strom, Wärme, COP).
|
||||
- **Auto (Stellplatz):** aus dem Bibliotheks-Bereich *Parken*. *Fahrzeug* wählt das Modell, *Sensor „Auto da“* bestimmt, wann es erscheint, und über eine beliebige Entität des Autos findet NextFloor Ladestand, Reichweite, Stecker, Schloss und Klima am Gerät des Autos. Ohne Sensor wird das Fahrzeug immer gezeigt.
|
||||
|
||||
## Garten und Haustiere
|
||||
|
||||
- **Mähroboter:** Ein Mähroboter oder seine Station aus *Garten 2*, verbunden mit einem `lawn_mower`, mäht Bahnen über seinen Rasen.
|
||||
- **Saugroboter:** Ein `robot_vacuum` im Plan kann seine echte Position und Spur zeigen. Siehe [Saugroboter im Plan](live.md#saugroboter-im-plan).
|
||||
- **Haustiere:** Mit einem *Raum-Sensor* (Bermuda, ESPresense) läuft das Tier in dem Raum herum, in dem es wirklich ist.
|
||||
- Mehr: [Haushalt und Haustiere](household.md).
|
||||
|
||||
## Anwesenheit: Personen in ihren Räumen
|
||||
|
||||
*Haus-Einstellungen → Anwesenheit* listet jede `person`. Wähle einen **Raum-Sensor** (ESPresense, Bermuda oder ähnlich, dessen Zustand der Raumname ist), und solange die Person zu Hause ist, steht ihr Avatar mit dem Home-Assistant-Bild in diesem Raum. In der Hausansicht werden die Personen je Etage gezählt.
|
||||
|
||||
- **Standardraum:** Jede Person kann einen Standardraum haben. Solange sie zu Hause ist und kein Raum-Sensor einen Raum nennt, steht sie dort, ein Raum-Sensor ist also nicht nötig.
|
||||
- **Weitere Entität:** Unter der Liste fügst du einen Eingabehelfer, einen Device Tracker oder einen Binärsensor hinzu. Er zählt als zu Hause, solange sein Zustand `on` oder `home` ist.
|
||||
|
||||
## Favoriten, Knöpfe und Warnungen
|
||||
|
||||
**Favoriten und eigene Knöpfe** (Einstellungen, *Favoriten*): Szenen, Skripte, Automationen, Schalter und Buttons fürs Zentralmenü. Eigene Knöpfe öffnen einen Dashboard-Pfad, Entity-Details, einen Dienstaufruf oder ein browser_mod-Popup. *Sender oder Playlist* legt Lautsprecher-Voreinstellungen an, und eine Voreinstellung kann auf einzelne Lautsprecher beschränkt werden.
|
||||
|
||||
**Eigene Warnungen** machen aus jeder Entität eine Zeile in der Warnleiste. Passe einen Zustand an, mehrere Zustände mit Komma oder eine Zahl mit `<20` oder `>80`, und gib Text, Raum und Farbe an.
|
||||
|
||||
**Kalender für „Heute“** füllen die Karte *Heute*.
|
||||
|
||||
## Weiter
|
||||
|
||||
[Außen, Dach und Energie →](outside.md)
|
||||
@@ -0,0 +1,78 @@
|
||||
---
|
||||
title: Haus zeichnen
|
||||
description: Etagen, Räume, Wände, Türen, Fenster, Treppen und Vorlagen im Plan-Editor von NextFloor.
|
||||
---
|
||||
|
||||
Öffne den Reiter **Editor** (nur Administratoren). Die Werkzeugleiste enthält die Werkzeuge, die Seitenleiste zeigt immer die Auswahl, und der Hinweis unten sagt, was das aktive Werkzeug tut. **Rückgängig** (Strg+Z) nimmt fast alles zurück.
|
||||
|
||||

|
||||
|
||||
## Etagen
|
||||
|
||||
*Etage hinzufügen* bietet die Etagen aus Home Assistant an, wodurch Plan und Home Assistant verbunden bleiben, oder eine *Leere Etage*. Das Etagen-Formular setzt Name, Höhe über dem Boden, Raumhöhe und die Etage in Home Assistant.
|
||||
|
||||
- *Verschieben* und *90° drehen* wirken auf die ganze Etage; *Alle Etagen mitnehmen* aufs ganze Haus.
|
||||
- *Räume aus HA-Bereichen anlegen* setzt zum Start einen Raum je Bereich.
|
||||
- *Etage duplizieren* legt eine Kopie oben aufs Haus, wahlweise mit Möbeln, Geräte-Pins und Außenflächen. Die Kopie ist von Home Assistant gelöst und wird für das neue Geschoss eingerichtet.
|
||||
- *Lücken schließen* im Etagen-Formular verbindet haarfeine Spalten zwischen Räumen.
|
||||
|
||||
## Räume
|
||||
|
||||
- **Rechteck:** ziehen.
|
||||
- **Freie Form:** Ecken setzen, mit Tippen auf die erste Ecke oder Enter schließen. Esc bricht ab.
|
||||
- Ecken rasten am Raster und an vorhandenen Wänden ein. **Alt** schaltet das Einrasten für einen Zug aus.
|
||||
|
||||
Beschreibe jeden Raum in der Seitenleiste: Name, **Bereich** (die Verbindung zu deinen Home-Assistant-Geräten) und **Boden**-Material. Position und Größe lassen sich eintippen. An den Eckgriffen formst du um, das **+** auf einer Kante fügt eine Ecke ein. Ein rechteckiger Raum zeigt sein Innenmaß von Wand zu Wand.
|
||||
|
||||
> [!TIP]
|
||||
> **+ Bereich im Raum** nimmt Home-Assistant-Bereiche dazu, die Teil des Raums sind, aber keine eigenen Wände haben, etwa eine Leseecke oder eine Küchenzeile. Ihre Geräte gehören dann zum Raum.
|
||||
|
||||
*Fußbodenheizung* nennt den Thermostat, das Ventil oder den Schalter, bei dessen Heizen der Boden glüht.
|
||||
|
||||
## Wände
|
||||
|
||||
Wände entstehen aus den Raumkanten. Jede Kante hat Höhe, Dicke, eine Schere zum Teilen und *Keine Wand* für offene Kanten.
|
||||
|
||||
- Eine niedrigere Höhe macht eine Brüstung oder Theke.
|
||||
- Eine geteilte Kante kann auf jedem Teilstück eine eigene Dicke haben.
|
||||
- **Freistehende Wände** zeichnest du mit dem Werkzeug *Wand*. Umschalt hält gerade.
|
||||
- **◠ Bogen** an einer Kante oder einer freien Wand öffnet das Feld *Wölbung*: eintragen, wie weit sich die Mitte wölbt (negativ in den Raum), dann *Biegen*. Ein Nachbarraum an der ganzen Wand biegt sich mit, Türen und Fenster wandern mit. Ein Raum, der nur einen Teil der Wand berührt, oder eine freie Wand darauf bleibt gerade. Ist eine Tür oder ein Fenster zu breit für einen tiefen Bogen, biegt die Wand nicht, und ein Hinweis sagt warum.
|
||||
- **Schräge freie Wände** haben an jedem Ende eine eigene Höhe, für Giebel, Rampen und schräge Brüstungen.
|
||||
|
||||
## Türen und Fenster
|
||||
|
||||
*Tür & Fenster* wählen, eine Wand antippen und die Art aussuchen: Tür, Haustür, Doppeltür, Fenster, Doppelfenster, Terrassentür, Balkontür, Garagentor oder Glaswand. Breite, Mitte von der Ecke, Brüstung und Höhe einstellen, Anschlag oder Öffnungsrichtung wechseln. Der Stil *Automatisch* nimmt außen eine Haustür, innen eine Zimmertür.
|
||||
|
||||
Mehr zu Türen und Fenstern steht unter [Außen, Dach und Energie](outside.md#tueren-und-fenster-mehr) (Smart Lock, Lichtschacht) und unter [Geräte verbinden](devices.md#rolllaeden) (Rollläden).
|
||||
|
||||
## Treppen und Öffnungen
|
||||
|
||||
Das Werkzeug *Treppe* zeichnet eine Treppe dort, wo du ziehst; sie läuft entlang der langen Seite.
|
||||
|
||||
| Einstellung | Möglichkeiten |
|
||||
|---|---|
|
||||
| Form | gerade, viertelgewendelt, L mit Podest, halbgewendelt, U mit Podest, Wendeltreppe |
|
||||
| Richtung | läuft links oder rechts herum |
|
||||
| Bauart | massiv, Wangen-, Holm- oder Kragarmtreppe; mit oder ohne Setzstufen und Geländer |
|
||||
|
||||
Die Steigungen kommen aus der Etagenhöhe; das Formular zeigt Steigung, Auftritt und Schrittmaß und warnt bei unbequemen Maßen. *Führt nach unten* macht einen Abgang in einen Keller, der nicht gezeichnet sein muss.
|
||||
|
||||
Die Treppe öffnet die Decke nur, wo über den Stufen keine 2,2 m Kopfhöhe bleiben. Die Treppen aus dem Pack *Treppen & Geländer* schneiden ihre ganze Grundfläche aus. **Bodenöffnung** schneidet jedes andere Loch, für eine Galerie oder einen Schacht.
|
||||
|
||||
## Vorlage: ein Grundriss-Bild nachzeichnen
|
||||
|
||||
*Vorlage (Grundriss-Bild)* legt ein Bild hinter den Plan. Verschieben, skalieren, drehen und geraderichten, den Maßstab an einer bekannten Länge einstellen, dann nachzeichnen. Bei einem Scan oder einer CAD-Datei kannst du sie auch [direkt importieren](plan-tools.md#import-aus-anderen-programmen).
|
||||
|
||||
## Sperre
|
||||
|
||||
Das Schloss *Grundriss* verhindert, dass Räume, Wände, Öffnungen und Außenflächen aus Versehen wandern. Einzelne Stücke sperrt *Fixieren*.
|
||||
|
||||
## Nützliche Schalter
|
||||
|
||||
- **3D daneben** zeigt das 3D-Modell neben dem Plan, während du zeichnest.
|
||||
- *Ansicht als Start der Etage / des Raums* merkt sich die aktuelle 3D-Kamera.
|
||||
- **Rechtsklick** (oder langes Tippen) auf eine Stelle heftet eine [Notiz](plan-tools.md#notizen) an.
|
||||
|
||||
## Weiter
|
||||
|
||||
[Einrichten →](furnish.md)
|
||||
@@ -0,0 +1,78 @@
|
||||
---
|
||||
title: FAQ und Fehlersuche
|
||||
description: Antworten auf die häufigsten Fragen und Lösungen für die Probleme, auf die Leute stoßen.
|
||||
---
|
||||
|
||||
## Fragen
|
||||
|
||||
### Ist NextFloor wirklich kostenlos?
|
||||
|
||||
Ja, für immer. Jede Funktion, jedes Möbel-Pack und jedes Update ist kostenlos. Es gibt keine Pro-Version, keine bezahlten Erweiterungen, keinen Unterstützer-Pass und keinen Lizenzschlüssel, und die MIT-Lizenz sorgt dafür, dass es dir niemand wegnehmen kann.
|
||||
|
||||
### Braucht es eine Cloud oder ein Konto?
|
||||
|
||||
Nein. Plan, Bilder und Packs liegen auf deinem Home Assistant. Das Einzige, was deine Installation verlassen kann, sind die Kartenkacheln, und nur wenn du die echte Karte einschaltest.
|
||||
|
||||
### Gibt es NextFloor bei den offiziellen Home-Assistant-Integrationen, ohne HACS?
|
||||
|
||||
Nein. NextFloor ist im **offiziellen HACS-Store**. Die eingebaute Integrationsliste von Home Assistant ist ein eigener Prozess mit eigenen Regeln (eine veröffentlichte Geräte-Bibliothek, ein mitgeliefertes Frontend, das zu den Regeln von Core passt, ein monatlicher Release-Rhythmus), und der passt nicht zu einem Plan-Editor mit eigenem Frontend und schnellen Korrekturen.
|
||||
|
||||
### Welche Home-Assistant-Version brauche ich?
|
||||
|
||||
2025.1 oder neuer.
|
||||
|
||||
### Kann ich beim Zeichnen aus Versehen etwas schalten?
|
||||
|
||||
Nein. Im Editor schaltet das Platzieren oder Verknüpfen eines Geräts nie etwas. In der 3D-Ansicht schaltet ein Tippen; *Vor dem Schalten fragen* an einer Lampe schützt vor versehentlichem Antippen, und der 🔒-Knopf sperrt die Kamera.
|
||||
|
||||
### Können mehrere Personen es benutzen?
|
||||
|
||||
Alle mit Zugriff auf Home Assistant können die 3D-Ansicht und die Karte benutzen. Nur Administratoren sehen den Editor und speichern Änderungen.
|
||||
|
||||
### Kann ich mehrere Grundrisse in einer Installation haben?
|
||||
|
||||
Noch nicht. Ein Plan pro Installation ist, wie NextFloor heute arbeitet; die Idee wird in den [Discussions](https://github.com/therealMRBK/NextFloor/discussions) besprochen.
|
||||
|
||||
### Mir fehlt das Möbel, das ich brauche.
|
||||
|
||||
Baue es in der [Möbel-Werkstatt](furnish.md#die-moebel-werkstatt) oder im [Browser-Baukasten](https://therealmrbk.github.io/NextFloor/builder/), oder schau unter **Erweiterungen → Community-Möbel**.
|
||||
|
||||
## Fehlersuche
|
||||
|
||||
### Ein Gerät fehlt im Raum
|
||||
|
||||
Der Raum braucht einen **Bereich**, und das Gerät muss dazugehören (Gerät oder Entity). Sonst die Reiter *Andere Bereiche* oder *Ohne Bereich* nutzen.
|
||||
|
||||
### Das Panel sieht nach einem Update alt aus
|
||||
|
||||
Den Browser-Tab neu laden. In der Companion-App den Frontend-Cache zurücksetzen und die App ganz schließen. **Ein Neustart von Home Assistant hilft hierfür nicht.**
|
||||
|
||||
### Möbel erscheinen als graue Kästen
|
||||
|
||||
Ihr Pack ist nicht installiert. Unter *Erweiterungen → Möbel-Packs* wieder einspielen, dann ist alles zurück.
|
||||
|
||||
### Das Auto erscheint nicht
|
||||
|
||||
*Sensor „Auto da“* prüfen. Ohne Sensor wird das Fahrzeug immer gezeigt.
|
||||
|
||||
### Das Solarfeld landet auf der falschen Dachseite
|
||||
|
||||
Den [Kompass](outside.md#kompass-und-karte) in den Einstellungen prüfen. Sind Nord und Süd vertauscht, hilft *Nord ↔ Süd tauschen*.
|
||||
|
||||
### Auf dem Tablet ist es langsam
|
||||
|
||||
Die Qualität auf *Tablet* stellen und Wetter und Stromfluss ausschalten. Siehe [Wandtablet](tablet.md).
|
||||
|
||||
### Speichern schlägt fehl
|
||||
|
||||
Nur Administratoren können speichern. Die Meldung nennt das Feld, das Home Assistant ablehnt, und deine Änderungen bleiben im Browser, bis du speichern kannst. Nach einem Update braucht Home Assistant eventuell einen Neustart, bevor das Speichern wieder klappt.
|
||||
|
||||
### Durchsagen machen auf dem Tablet keinen Ton
|
||||
|
||||
Browser spielen Ton erst nach dem ersten Antippen der Seite. In Fully Kiosk *Autoplay Audio* einschalten.
|
||||
|
||||
## Immer noch festgefahren?
|
||||
|
||||
- Ideen und Fragen: [Discussions](https://github.com/therealMRBK/NextFloor/discussions)
|
||||
- Fehler: [Issues](https://github.com/therealMRBK/NextFloor/issues/new/choose), mit Version, was du getan hast und was du gesehen hast
|
||||
- Sicherheit: [private Meldung](https://github.com/therealMRBK/NextFloor/security/advisories/new), nie ein öffentliches Issue
|
||||
@@ -0,0 +1,85 @@
|
||||
---
|
||||
title: Einrichten
|
||||
description: Die Möbel-Bibliothek, Packs, die Möbel-Werkstatt, Größe und Neigung ändern und besondere Stücke wie Sofas, Bilderrahmen und Lichtschalter.
|
||||
---
|
||||
|
||||
Das Werkzeug *Möbel* wählen, einen Raum antippen und rechts aus der Bibliothek auswählen. Neue Stücke landen in der Raummitte.
|
||||
|
||||

|
||||
|
||||
## Die Bibliothek
|
||||
|
||||
- Sie hat Bereiche (Leuchten, Wohnen, Essen, Küche, Schlafen, Bad, Arbeiten, Parken) und danach die **Möbel-Packs**. NextFloor bringt 40 Grundmodelle und 43 Packs mit rund 800 weiteren mit.
|
||||
- Die **Suche** findet deutsche und englische Namen, Packnamen und mehrere Wörter in beliebiger Reihenfolge.
|
||||
- Möbel stehen nach Art sortiert (Sitzen, Betten, Küche …) mit Bild und Maß. Ein Modell in mehreren Größen ist eine Karte mit Größen-Knöpfen.
|
||||
- Ist ein Raum gewählt, steht oben, was in ihn passt (*Passend zu …*). *Alle Räume zeigen* hebt das auf.
|
||||
- Filter: ⚡ verknüpfbar, 💡 leuchtet, 🌳 draußen. ★ Favoriten und *Zuletzt benutzt* stehen oben.
|
||||
|
||||
## Verschieben, Größe ändern, kopieren
|
||||
|
||||
- Ziehen verschiebt, Eckgriffe ändern die Größe, am Drehgriff drehst du, oder du tippst Position, Größe und Drehung ein.
|
||||
- **Spiegeln** vertauscht links und rechts. **Duplizieren** kopiert. **Fixieren** sperrt ein Stück. **Auf Etage verschieben** bringt es an dieselbe Stelle einer anderen Etage.
|
||||
- **Größe ändern:** Beine, Armlehnen, Platten und Griffe behalten ihre echte Größe, nur die Mitte wächst.
|
||||
- **Neigen:** *Neigung vorn/hinten* und *Neigung seitlich* (Grad) lehnen eine Leiter an, kippen ein Bild oder folgen einem schrägen Regal. Eigene 3D-Modelle werden nicht geneigt.
|
||||
- **Spots setzen:** am Raum legt ein Raster aus Leuchten (Spalten × Reihen) an, die alle einem Licht folgen, mit einem Schritt rückgängig zu machen.
|
||||
- **Wandansicht (▣):** In der Wandliste eines Raums zeigt *Wandansicht* eine Wand von vorn mit Türen, Fenstern und den Möbeln davor. Ziehen oder Abstand und Höhe eintippen.
|
||||
|
||||
## Die Möbel-Werkstatt
|
||||
|
||||
*🛠️ Eigenes Möbel bauen* steht oben in der Bibliothek.
|
||||
|
||||
1. Eine Vorlage wählen: Schrank, Regal, Lampe oder Gerät.
|
||||
2. Maße in Zentimetern eintippen und Türen, Schubladen, Böden, Griffe, Unterbau und Farben einstellen. Die Frontansicht zeigt jede Änderung sofort.
|
||||
3. *In den Plan setzen* legt es im Pack *Eigene Möbel* ab, es steht dann auch in der Bibliothek.
|
||||
|
||||
Zum späteren Ändern das Stück auswählen und *In der Werkstatt ändern* drücken. Jedes Exemplar im Plan bekommt die neue Größe.
|
||||
|
||||
> [!TIP]
|
||||
> Fehlt dir etwas, das die Werkstatt nicht kann? Der [Möbel-Baukasten](https://therealmrbk.github.io/NextFloor/builder/) im Browser baut ein Modell genau so, wie NextFloor es zeichnet, und du kannst es teilen. Siehe [Möbel-Packs](packs.md).
|
||||
|
||||
## Besondere Stücke
|
||||
|
||||
### Leuchten
|
||||
|
||||
Leuchten sind Möbel mit einem Licht dahinter; der Leuchten-Bereich hat zwölf Arten. Verknüpfen wie unter [Geräte verbinden](devices.md) beschrieben.
|
||||
|
||||
### Lichtschalter und Steckdosen
|
||||
|
||||
Im Pack Smart Home & Technik, 1- bis 4-fach. Jede Taste hat eine eigene Entität und leuchtet, solange das Geschaltete an ist.
|
||||
|
||||
### Markisen, Vorhänge, Rollos, Leinwand und Tore
|
||||
|
||||
*Bewegt sich mit* wählt die Cover-Entität, der das Stück folgt. *Laufrichtung umkehren* dreht es um bei Dingen, die sich im Plan anders herum bewegen als in Wirklichkeit.
|
||||
|
||||
### Sofas
|
||||
|
||||
Das eingebaute Sofa hat eine *Form*: gerade, L (Spiegeln für die andere Seite) oder U.
|
||||
|
||||
### Bilderrahmen
|
||||
|
||||
Aus dem Pack *Bilder & Rahmen*: im Formular ein Foto hochladen, eine Bild-Adresse (`/local/…`) eintragen oder eine Bild- oder Kamera-Entität wählen. Passepartout und ob das Foto den Rahmen füllt, sind einstellbar.
|
||||
|
||||
### Nur zeigen, solange …
|
||||
|
||||
Jedes Stück kann auf eine Entität warten: der Weihnachtsbaum nur, solange ein Helfer an ist. Mehrere Zustände mit Komma, oder umgekehrt. Im Editor bleibt das Stück immer sichtbar.
|
||||
|
||||
### Unter der Dachschräge
|
||||
|
||||
Deckenleuchten und hängende Stücke im Dachgeschoss haben *📐 An die Dachschräge*.
|
||||
|
||||
### Saisonale Deko
|
||||
|
||||
Die Packs *Winter & Weihnachten* und *Halloween* haben leuchtende Teile, die einem Licht oder Schalter folgen, den du verknüpfst. Mit *Nur zeigen, solange …* kombiniert erscheint eine Deko nur in ihrer Jahreszeit.
|
||||
|
||||
## Ebenen und Etagen-Zähler
|
||||
|
||||
- **Ebenen:** Eine Etage mit *Ebene* im Formular (die Bäume, die Deko) bekommt oben in der 3D-Ansicht ein Auge, das sie ein- und ausblendet.
|
||||
- **Etagen-Zähler:** *Etagen-Zähler (Leistung)* im Etagenformular nimmt einen Leistungssensor nur für diese Etage. Sein Wert steht auf dem Etagen-Schild, und die Haus-Karte in der Ansicht dieser Etage zeigt ihn mit seinem Anteil am Haus.
|
||||
|
||||
## Pin verschieben
|
||||
|
||||
Pins von Geräten, die dicht beieinanderstehen, schiebst du im Formular zur Seite oder nach oben; das Gerät selbst bleibt stehen.
|
||||
|
||||
## Weiter
|
||||
|
||||
[Geräte verbinden →](devices.md)
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
title: Haushalt und Haustiere
|
||||
description: Mülltonnen, der Briefkasten, durstige Pflanzen, Waschmaschinen, Haustiere, Mähroboter, Sprinkler und Pools in der 3D-Ansicht.
|
||||
---
|
||||
|
||||
Möbel aus den Garten- und Haushalts-Packs machen Alltägliches zu kleinen Live-Signalen.
|
||||
|
||||
## Mülltonnen
|
||||
|
||||
Mülltonnen (Pack Garten & Terrasse, vier Farben, 120 und 240 l) bekommen einen *Abholtermin (Sensor)*, zum Beispiel von Waste Collection Schedule oder einem Sensor mit Tagen oder Datum. Am Tag davor und am Abholtag leuchtet die Tonne und zeigt ihren Pin. Die Karte *Heute* listet die Tonnen, die heute oder morgen abgeholt werden.
|
||||
|
||||
## Briefkasten
|
||||
|
||||
*Post-Sensor* wählen (zum Beispiel ein Kontakt an der Klappe). Liegt Post drin, leuchtet der Briefkasten.
|
||||
|
||||
## Pflanzen
|
||||
|
||||
*Bodenfeuchte (Sensor)* und *Durst unter (%)* einstellen. Darunter leuchtet die Pflanze.
|
||||
|
||||
## Waschmaschine, Trockner, Spülmaschine
|
||||
|
||||
Hat das Gerät in Home Assistant einen Restlaufzeit-Sensor, steht am Pin „Noch 25 min“.
|
||||
|
||||
## Haustiere
|
||||
|
||||
Haustiere (Pack Haustiere: Katze, Hund, Kaninchen) laufen in ihrem Raum um die Möbel herum und machen zwischendurch Pausen. Mit einem **Raum-Sensor** (Bermuda, ESPresense) läuft das Tier in dem Raum herum, in dem es wirklich ist.
|
||||
|
||||
## Garten
|
||||
|
||||
- **Mähroboter:** Ein Mähroboter oder seine Station aus *Garten 2*, verbunden mit einem `lawn_mower`, mäht Bahnen über seinen Rasen.
|
||||
- **Sprinkler, Pools und Teiche:** Pools, Teiche und Beete zeigen auf ihrem Pin Wassertemperatur und Pumpe.
|
||||
- **Gärten mit ihrem Bereich verbunden:** Eine Außenfläche, die einem Home-Assistant-Bereich zugeordnet ist, bringt ihre Geräte ins [Außen-Panel](outside.md#das-aussen-panel).
|
||||
|
||||
## Putzen und Sicherungskasten
|
||||
|
||||
- *🧹 Putzen* je Raum.
|
||||
- Die Stromkreise des Sicherungskastens je Raum.
|
||||
- Saugroboter stehen unter [Live-Funktionen](live.md#saugroboter-im-plan).
|
||||
|
||||
## Personen
|
||||
|
||||
Personen erscheinen in ihren Räumen über die [Anwesenheit](devices.md#anwesenheit-personen-in-ihren-raeumen).
|
||||
|
||||
## Weiter
|
||||
|
||||
[Durchsagen →](announcements.md)
|
||||
@@ -0,0 +1,47 @@
|
||||
---
|
||||
title: NextFloor installieren
|
||||
description: NextFloor über HACS oder von Hand installieren, die Integration hinzufügen und sicher aktualisieren.
|
||||
---
|
||||
|
||||
NextFloor braucht **Home Assistant 2025.1 oder neuer**. Es wird wie jede eigene Integration installiert und legt einen Eintrag *NextFloor* in der Seitenleiste an.
|
||||
|
||||
## Mit HACS (empfohlen)
|
||||
|
||||
NextFloor ist im **offiziellen HACS-Store**, du musst also kein eigenes Repository hinzufügen.
|
||||
|
||||
1. **HACS** öffnen, nach *NextFloor* suchen und **Herunterladen** drücken.
|
||||
2. **Home Assistant neu starten.**
|
||||
3. Unter **Einstellungen → Geräte & Dienste → Integration hinzufügen** *NextFloor* wählen.
|
||||
4. In der Seitenleiste erscheint *NextFloor*. Öffnen, fertig.
|
||||
|
||||
[](https://my.home-assistant.io/redirect/hacs_repository/?owner=therealMRBK&repository=NextFloor&category=integration)
|
||||
|
||||
> [!NOTE]
|
||||
> NextFloor früher als eigenes Repository installiert? Du musst nichts ändern. HACS führt es von selbst als normales Repository weiter, und Updates kommen weiter an.
|
||||
|
||||
## Von Hand
|
||||
|
||||
1. `nextfloor.zip` aus dem [neuesten Release](https://github.com/therealMRBK/NextFloor/releases/latest) laden.
|
||||
2. Den Ordner `custom_components/nextfloor` in den Konfigurationsordner von Home Assistant kopieren.
|
||||
3. Home Assistant neu starten und die Integration wie in Schritt 3 oben hinzufügen.
|
||||
|
||||
## Aktualisieren
|
||||
|
||||
1. Über HACS aktualisieren.
|
||||
2. Home Assistant neu starten.
|
||||
3. **Den Browser-Tab neu laden.** In der Companion-App: *Einstellungen → Companion-App → Frontend-Cache zurücksetzen* und die App ganz schließen.
|
||||
|
||||
> [!WARNING]
|
||||
> Sieht ein Panel nach einem Update alt aus, liegt es am Browser-Cache, nicht an Home Assistant. Ein Neustart von Home Assistant hilft dafür nicht, das Neuladen des Tabs schon.
|
||||
|
||||
## Wo deine Daten liegen
|
||||
|
||||
Plan, Bilder und Möbel-Packs liegen im Ordner `.storage` von Home Assistant. Nichts davon verlässt deine Installation: kein Konto, keine Cloud, keine Nutzungsdaten. Wie du eine Kopie sicherst, steht unter [Sicherung und Import](plan-tools.md#sicherung-und-import).
|
||||
|
||||
## Wer was darf
|
||||
|
||||
Alle mit Zugriff auf Home Assistant können NextFloor öffnen und die 3D-Ansicht benutzen. Nur **Administratoren** sehen den Reiter **Editor** und können Änderungen am Plan speichern.
|
||||
|
||||
## Weiter
|
||||
|
||||
[Schnellstart →](quickstart.md): den ersten Raum zeichnen und eine Lampe in 3D schalten.
|
||||
@@ -0,0 +1,76 @@
|
||||
---
|
||||
title: Live-Funktionen
|
||||
description: Wetter, Sonne und Schatten, Stromfluss, Fernseher, Klang, das Auto, der Saugroboter und Alles aus. Eingebaut, kostenlos und aus den Geräten gemacht, die du schon hast.
|
||||
---
|
||||
|
||||
Diese Funktionen sind eingebaut und kostenlos. Sie brauchen nur die Geräte, die du schon hast.
|
||||
|
||||

|
||||
|
||||
## Wetter am Haus
|
||||
|
||||
Regen, Schnee, Hagel, Schneeregen, Nebel, Wolken mit Schatten, Blitze, Sonne und Mond, gesteuert von einer Wetter-Entity und dem Kompass. Nachts kommen bei klarem Himmel Sterne heraus. Bei Schnee liegt der Boden weiß, bei Regen wird er nass.
|
||||
|
||||
## Sonne und Schatten
|
||||
|
||||
Das Haus wirft seinen Schatten nach dem echten Sonnenstand (Einstellung *Sonnenlicht und Schatten*, auf *Tablet* aus).
|
||||
|
||||
Ist *☀ Tageszeit* in den Ansichtsoptionen (⚙) eingeschaltet, öffnet der Schalter **☀** unter der 3D-Ansicht einen Regler über die Stunden des Tages. Sonnenflecken, Schatten, Himmel und der Look *Auto* folgen der gewählten Uhrzeit; erneut tippen zeigt wieder das Jetzt.
|
||||
|
||||
*Sonnenbogen und Kompass* (Einstellungen) zeichnet den Weg der Sonne von heute als Bogen über das Grundstück.
|
||||
|
||||
## Stromfluss
|
||||
|
||||
Teilchen laufen von den Solarmodulen zu Wechselrichter, Haus, Akku und Netz, entlang der echten Kabelwege. Eine Glaskarte zeigt Bilanz und Autarkie. Mehr unter [Klima und Energie](climate-energy.md).
|
||||
|
||||
## Fernseher
|
||||
|
||||
Was läuft, in der Farbe der App, dazu ein Ambilight-Leuchten hinter dem Fernseher.
|
||||
|
||||
## Klang
|
||||
|
||||
Über jedem spielenden Lautsprecher oder Fernseher schwebt eine Karte mit Cover und Bedienung. Schallringe in der Farbe der App wachsen mit der Lautstärke. *Schallringe (%)* an einem Lautsprecher skaliert sie von 0 (aus) bis 100 (volle Größe). Multiroom-Gruppen verbindet ein Faden.
|
||||
|
||||
## Auto
|
||||
|
||||
Eine Karte über dem Stellplatz zeigt Ladering, Reichweite, Ladeleistung, Stecker, Innentemperatur und Knöpfe für Schloss, Klima und Laden.
|
||||
|
||||
- Unterwegs sagt sie, wie weit das Auto von zu Hause ist.
|
||||
- Sie zeigt die Abfahrtszeit und warnt vor offenen Türen und Klappen.
|
||||
- An einer Wallbox eingesteckt hängt es am Kabel.
|
||||
|
||||
## Saugroboter im Plan {#saugroboter-im-plan}
|
||||
|
||||
Ein `robot_vacuum` im Plan fuhr bisher Spuren, die die Ansicht selbst im gemeldeten Raum erfunden hat. Legt die Integration des Roboters ihre Karte auf eine Kamera (`vacuum_position`, `charger`, `path`, wie die Kartenkarte von NarwalIntegration), zeigt NextFloor die Wahrheit: Der Roboter steht, wo er sich meldet, blickt, wohin er blickt, und der Boden behält die Spur, die er wirklich gefahren ist. Die Station steht, wo der Roboter sie meldet.
|
||||
|
||||
Die Kamera findet sich selbst: Jede `camera`, deren Attribute `vacuum_position` tragen, genügt, es muss nichts ausgewählt werden. Was die Ansicht nicht wissen kann, ist, wie das Raster des Roboters auf dem Plan liegt, denn der Roboter zählt in eigenen Zellen und der Plan in Metern.
|
||||
|
||||
### Kalibrieren
|
||||
|
||||
**Aus den Räumen (am einfachsten):** Nennt die Karte des Roboters ihre Räume (die Dreame-Integration tut das mit `rooms`), erscheint bei der Station der Knopf *Aus den Räumen kalibrieren*. Er legt die gleichnamigen Räume der Karte auf die Räume des Stockwerks, auf dem die Station steht. Groß- und Kleinschreibung, Leerzeichen und Bindestriche zählen nicht. Mindestens zwei Räume müssen gleich heißen, ab drei erkennt NextFloor auch eine gespiegelte Karte selbst. Der Roboter muss dafür nicht fahren.
|
||||
|
||||
**Von Hand nachrücken:** Sitzt die Karte danach ein Stück daneben, schieben die Pfeile unter der Kalibrierung sie um 10 cm, ⟲ ⟳ drehen sie um 1°, − + ändern ihre Größe um 1 %. Jeder Klick wird sofort gespeichert.
|
||||
|
||||
**Über die Position des Roboters:**
|
||||
|
||||
1. Im Plan die **Station** des Roboters wählen.
|
||||
2. Den Roboter mindestens 1,5 m wegfahren lassen.
|
||||
3. *Von der jetzigen Position des Roboters kalibrieren* drücken und den Roboter im Plan antippen, wo er steht.
|
||||
|
||||
Die Station ist der Anker: Der Plan weiß, wo sie steht, die Kamera weiß, wo sie und der Roboter in ihrem Raster liegen. Ein Tipp genügt, und alles Weitere (Position, Blickrichtung, Spur, Station) folgt.
|
||||
|
||||
> [!NOTE]
|
||||
> Zwei Orte können eine Spiegelung nicht von einer Drehung unterscheiden. Läuft die y-Achse der Karte entlang Plan −z, braucht es den Haken *gespiegelt*, sonst kommen die Räume verkehrt heraus. Die Kalibrierung liegt als `settings.vacuum_map` (`a`/`ga` und `b`/`gb`, dazu `mirror`). Ohne sie zeichnet die Ansicht weiter ihre erfundenen Spuren.
|
||||
|
||||
- Die Spur ist so fein, wie die Integration sie sendet. Eine Kartenkarte, die ihren `path` auf wenige hundert Punkte kürzt, ergibt eine grobe Spur, eine mit mehr Punkten eine feinere.
|
||||
- Zehn Minuten nachdem der Roboter andockt, blendet die Spur aus, der Boden behält also nicht die Reinigung von gestern. Die Zeitreise (⏪) ist der Ort, an dem eine fertige Reinigung bleibt, und sie hält den ganzen Tag.
|
||||
- Die Attributnamen stammen von der Vacuum-Map-Card, nicht von einer Marke: Die Xiaomi-Kartenextraktoren (Roborock, Viomi, Roidmi, Dreame, Ijai), die Roborock-Integration und NarwalIntegration liefern sie alle. Ein Gerät, das in Millimetern statt in Kartenzellen meldet, funktioniert genauso, den Maßstab geben die zwei Orte.
|
||||
- Die Integration muss sie als Attribute bereitstellen. Manche tun das nur auf Ansage: Die Kartenextraktoren wollen `vacuum_position` und `path` in ihrer `attributes:`-Liste.
|
||||
|
||||
## Alles aus
|
||||
|
||||
*⏻ Alles aus* im Raum-Panel, oder *⏻* in der Leiste oben für die offene Etage, schaltet Lichter, Schalter, Ventilatoren und Medien aus. *↶ Rückgängig* holt zehn Sekunden lang alles zurück.
|
||||
|
||||
## Weiter
|
||||
|
||||
[Klima und Energie →](climate-energy.md)
|
||||
@@ -0,0 +1,76 @@
|
||||
---
|
||||
title: Eigene 3D-Modelle
|
||||
description: Ein eigenes GLB-Modell für einen Fahrzeug-Platz hochladen: wie NextFloor es vorbereitet und wie du eines von Hand vorbereitest.
|
||||
---
|
||||
|
||||
Du kannst ein eigenes `.glb`-Modell für einen Fahrzeug-Platz hochladen. Der Browser dreht es richtig herum, macht es leichter, entfernt Texturen und markiert den Lack. Die Datei liegt danach auf deinem Home Assistant (nur Administratoren, bis 12 MB).
|
||||
|
||||
> [!NOTE]
|
||||
> Dieser technische Teil ist noch auf Englisch, damit Beispiele und Feldnamen eindeutig bleiben. Eine deutsche Fassung ist willkommen: [Mitmachen](contributing.md).
|
||||
|
||||
## 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.
|
||||
@@ -0,0 +1,81 @@
|
||||
---
|
||||
title: Außen, Dach und Energie
|
||||
description: Außenflächen, Zäune und Tore, das Dach-Werkzeug, Solarfelder, Kabelwege, der Kompass, die echte Karte und der Sonnenbogen.
|
||||
---
|
||||
|
||||

|
||||
|
||||
## Außenflächen
|
||||
|
||||
Rasen, Terrasse, Weg, Einfahrt, Pool, Beet, Wildfläche, Hecke, Zaun oder Pergola aufziehen.
|
||||
|
||||
| Einstellung | Was sie tut |
|
||||
|---|---|
|
||||
| *Höhenversatz* | senkt oder hebt die Fläche |
|
||||
| *Gefälle* | neigt sie |
|
||||
| *Umriss zeigen* | schaltet die leuchtende Kante |
|
||||
| *Aus den Flächen darunter ausschneiden* | macht ein Loch, für einen Teich |
|
||||
|
||||
Eine Fläche kann einem Home-Assistant-**Bereich** zugeordnet werden: Seine Geräte kommen nach Außen, und ein Pin öffnet sie. Pool, Teich und Beet zeigen auf dem Pin Wassertemperatur und Pumpe. Hecken und Zäune haben eine Höhe. Garten- und Wegeleuchten kommen aus der Bibliothek und beleuchten die Flächen.
|
||||
|
||||
### Tore in Zäunen
|
||||
|
||||
Ein Zaun kann **Tore** haben: Gartentor, Doppeltor oder Schiebetor. Jedes Tor sitzt an einer Position am Zaun und nimmt eine Entität oder einen Kontakt; in 3D öffnet es sich, wenn diese Entität offen oder an ist.
|
||||
|
||||
### Deckkraft
|
||||
|
||||
*Deckkraft (%)* im Formular einer Fläche macht sie durchsichtig, von 100 (undurchsichtig) bis 10. So verdeckt eine Einfahrt oder ein Rasen in der gestapelten Ansicht nicht mehr den Keller, und der Umriss lässt die Fläche erkennbar. Der Wert wird mit dem Plan gespeichert.
|
||||
|
||||
## Das Außen-Panel
|
||||
|
||||
Sobald ein Gerät außerhalb der Räume steht, bekommt die Leiste über der 3D-Ansicht neben den Geschossen den Knopf **🌳 Außen**. Er öffnet die Hausansicht mit einem Panel wie bei einem Raum, das die Geräte im Garten auflistet.
|
||||
|
||||
Ein Gerät, das auf dem Dach oder über einem Raum steht, aber nach draußen gehört (eine Wetterstation), bekommt in seinem Formular *Gehört zu Außen*. Es zählt dann nicht mehr zum Raum darunter und steht im Außen-Panel. Die Dashboard-Karte zeigt den Knopf bei ihren Raum-Knöpfen.
|
||||
|
||||
Im Editor hat Außen einen eigenen Abschnitt *🌳 Außen* (unter *Startansicht*). Dort blendet *Draußen: Geräte ausblenden* Geräte aus dem Außen-Panel aus, und *Diese Ansicht für Draußen* die Kamera der 3D-Vorschau im Editor: erst auf den Garten drehen, dann fliegt das Öffnen von „Draußen“ dorthin.
|
||||
|
||||
## Dach
|
||||
|
||||
Das Werkzeug *Dach* baut Dachflächen aus den Räumen: Form, Firstrichtung, Traufe, Neigung. Ziehen verschiebt, Ecken ändern die Größe. Die einfache Dachform steht in den Einstellungen.
|
||||
|
||||
- **Dachfenster** sitzen auf einer Fläche und bekommen Rollladen und Kontakte.
|
||||
- **Schornsteine** (*+ Schornstein* im Dach-Werkzeug) gibt es gemauert, rund, breit mit zwei Zügen oder als Edelstahlrohr mit Regenhut. Breite, Tiefe (oder Durchmesser) und die Höhe über dem Dach sind einstellbar; verschieben lässt er sich im Grundriss und in der 3D-Ansicht, auch auf eine andere Dachfläche.
|
||||
- **Sattel-, Walm- und Krüppelwalmflächen** können an jedem Firstende anders enden. Ein Flügel, der an ein größeres Dach stößt, läuft mit Kehlen in dessen Fläche.
|
||||
- Ein Abschnitt dreht sich mit *Drehung (°)* um seine Mitte, für einen Flügel im Winkel.
|
||||
- Ein Krüppelwalm hat einen Regler, wie hoch sein Walm beginnt.
|
||||
- **Überstand je Seite:** *Überstand je Seite* stellt den Dachüberstand für jede Seite einzeln ein. Ohne eigene Werte ist der Überstand automatisch: überall gleich, außer wo der Dachteil ans Haus stößt (dort keiner).
|
||||
- **Solarfelder** auf Flachdächern stehen auf Wunsch in Ost-West-Aufständerung, auf Schrägdächern auf einer Aufständerung mit eigener Neigung.
|
||||
|
||||
## Türen und Fenster (mehr)
|
||||
|
||||
- Eine Tür bekommt ein **Smart Lock**: Tür antippen schließt ab oder auf, aufgeschlossen leuchtet sie.
|
||||
- Ein Fenster wählt seine Fensterbank, kann aus der Regenwarnung genommen werden und bekommt unter Gelände einen Lichtschacht.
|
||||
|
||||
## Energie
|
||||
|
||||
Die Checkliste verlangt ein **Solarfeld**, einen **Zähler** und einen **Wechselrichter**. Batterie und Netzanschluss sind optional.
|
||||
|
||||
1. Das **Solarfeld** kommt auf die am besten passende Südfläche (der Kompass entscheidet), in den Garten oder an eine Wand. Reihen, Spalten und Hoch- oder Querformat einstellen.
|
||||
2. Zähler, Wechselrichter, Batterie und Wallbox als Geräte setzen.
|
||||
3. Die Felder der Energiebilanz stehen auf *Automatisch*. *Aus dem Energie-Dashboard übernehmen* liest deine bestehende Einrichtung.
|
||||
|
||||
**Kabelwege** zeichnen ein, wo ein Kabel wirklich läuft: Solarfeld zum Wechselrichter, Batterie, Wechselrichter und Netz zum Haus, Unterzähler. *Weg zeichnen* drücken, im Plan die Punkte antippen, dazwischen das Geschoss wechseln, wo das Kabel durch die Decke geht, dann *Fertig*. Der Fluss folgt dem Weg statt eines Bogens, und *Als Kabel zeigen* zeichnet ihn als sichtbares Kabel. Der Weg einer Batterie wird je nach Laden oder Entladen in beide Richtungen gegangen.
|
||||
|
||||
*Gaszähler* und *Wasserzähler* stellen ihre Werte zur Bilanz. Was du in 3D siehst, steht unter [Klima und Energie](climate-energy.md).
|
||||
|
||||
## Kompass und Karte
|
||||
|
||||
In den **Einstellungen**:
|
||||
|
||||
- **Kompass.** Eine Scheibe zeigt, wohin Norden liegt, in Grad im Uhrzeigersinn von oben. Sonnenlicht, Wind und die Himmelsrichtung der Dachflächen richten sich danach. Sind Nord und Süd vertauscht, drückst du **Nord ↔ Süd tauschen**; Zeichnung, Dachflächen und Solarfelder bleiben, nur die Richtungen ändern sich. Viertel-Drehungen und jeder Winkel gehen auch.
|
||||
- **Echte Karte.** Standardmäßig aus. Eingeschaltet liegt eine gedimmte Karte (OpenStreetMap oder deine eigene Kachel-Adresse `https://…/{z}/{x}/{y}`) unter dem Plan im Editor und unter dem Haus in 3D. Sie startet am Standort von Home Assistant. Sichtbarkeit und Detail einstellen und mit den Pfeilen verschieben, bis das Haus auf seinem Grundstück sitzt.
|
||||
|
||||
> [!NOTE]
|
||||
> Dein Browser lädt die Kartenkacheln direkt vom Kartenserver, und nur solange die Karte an ist. Sonst verlässt nichts über dein Zuhause deine Installation.
|
||||
|
||||
- **Sonnenbogen und Kompassring:** *Sonnenbogen und Kompass* zeichnet den Weg der Sonne von heute als Bogen über das Grundstück, mit einem Ring und den Himmelsrichtungen am Boden (Norden rot). Dafür braucht es die Position deines Zuhauses in Home Assistant.
|
||||
- Ebenfalls hier: Wanddicken, Raster, Maße in Metern oder Fuß und Zoll, Dachform, Wetter-Entity und Effekte, Regenwarnung (auf Wunsch vom eigenen Regensensor), ein Sensor für Stromausfall, Sonnenflecken und ein eigener Hintergrund (Farbe oder Bild) hinter dem Haus.
|
||||
|
||||
## Weiter
|
||||
|
||||
[Plan-Werkzeuge →](plan-tools.md)
|
||||
@@ -0,0 +1,105 @@
|
||||
---
|
||||
title: Möbel-Packs
|
||||
description: Möbel-Packs importieren, selbst bauen und teilen. Das JSON-Format der Packs mit allen Feldern.
|
||||
---
|
||||
|
||||
Möbel-Packs bringen zusätzliche Möbel in NextFloor. Sie werden wie die eingebauten Möbel aus
|
||||
Quadern, Zylindern und Lofts gebaut und laufen deshalb genauso flüssig auf schwachen Tablets.
|
||||
|
||||
Ein Pack ist eine einfache JSON-Datei. Jeder kann eigene Packs bauen, weitergeben und importieren.
|
||||
|
||||
## Möbel-Baukasten und Community-Möbel
|
||||
|
||||
Am einfachsten baust du Möbel im **[Möbel-Baukasten](https://therealmrbk.github.io/NextFloor/builder/)** im Browser:
|
||||
Teile hinzufügen, Maße in Zentimetern eintragen, Farben wählen – die 3D-Vorschau zeichnet das Möbel genau so wie
|
||||
NextFloor. Der Baukasten prüft das Pack wie der Import, speichert es als Datei und teilt es mit einem Knopf im
|
||||
**Community-Store** ([NextFloor-Plugins](https://github.com/therealMRBK/NextFloor-Plugins#community-furniture)). Geteilte
|
||||
Packs stehen danach in NextFloor unter **Erweiterungen → Community-Möbel** zum Installieren bereit.
|
||||
|
||||
## Mitgelieferte Packs
|
||||
|
||||
43 Packs mit rund 800 Modellen kommen mit der Integration (`custom_components/nextfloor/packs/nextfloor.*.json`) und sind
|
||||
immer da; Übersicht in der [Bibliothek](furnish.md#die-bibliothek). Sie werden mit
|
||||
`python3 tools/build_packs.py` aus den Definitionen in `tools/` erzeugt (`build_packs.py` und die
|
||||
`area_*.py`-Module); nach einer Änderung dort das Skript laufen lassen, mit `python3 tools/check_packs.py`
|
||||
prüfen und die JSON-Dateien mit committen. Mitgelieferte Packs lassen sich nicht
|
||||
entfernen, und ein importiertes Pack darf nicht dieselbe ID haben.
|
||||
|
||||
## Eigenes Pack
|
||||
|
||||
1. Pack schreiben (JSON, Format unten). Die `id` sollte mit deinem Namen beginnen (`meinname.kueche`),
|
||||
damit sie mit niemandem kollidiert; `nextfloor.*` ist für die mitgelieferten Packs reserviert.
|
||||
2. Import in Home Assistant unter **Erweiterungen → Möbel-Packs**: mit **Pack-Dateien importieren …**
|
||||
(mehrere Dateien auf einmal gehen) oder das JSON ins Textfeld einfügen und **JSON importieren**.
|
||||
Dort lassen sich eigene Packs auch wieder entfernen.
|
||||
3. Eine neuere Version mit derselben `id` ersetzt die alte; Möbel im Plan bleiben erhalten. Wird ein
|
||||
Pack entfernt, bleiben seine Möbel als einfache Kästen im Plan und kommen mit einem erneuten Import
|
||||
zurück.
|
||||
|
||||
## Format
|
||||
|
||||
```json
|
||||
{
|
||||
"format": "nfpack",
|
||||
"version": 1,
|
||||
"id": "meinname.kueche",
|
||||
"name": "Küchen-Pack",
|
||||
"publisher": "Mein 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`: Standardgröße in Metern (Breite, Tiefe, Höhe). Im Plan lässt sich jedes Möbel danach frei
|
||||
skalieren. Dabei behalten Teile bis 22 cm vor jedem Ende ihre echte Größe und ihren Abstand zum Rand
|
||||
(Armlehnen, Beine, Platten, Griffe), nur die Mitte wird gestreckt. `"stretch": true` am Möbel lässt
|
||||
stattdessen alle Teile gleichmäßig mitwachsen; Fahrzeuge wachsen immer gleichmäßig.
|
||||
- `parts` (max. 60): `box`, `cyl`, `loft` oder `sweep`. Alle Maße sind **Anteile der Möbelgröße**: `x`/`z`
|
||||
Mitte (−0,5 … 0,5, vorne ist +z), `w`/`d` Breite/Tiefe (0 … 1), `y` Unterkante und `h` Höhe (0 … 1
|
||||
der Höhe). Ein Zylinder hat den kleineren Wert von `w` und `d` als Durchmesser; mit `axis: "x"` oder
|
||||
`"z"` liegt er (Räder, Rollen – die Länge ist die Ausdehnung entlang der Achse, der Durchmesser der
|
||||
kleinere Wert aus Querausdehnung und `h`). Ein `loft` ist ein Quader, dessen Oberseite ein anderes
|
||||
Rechteck ist (`tx`/`tz` Mitte, `tw`/`td` Größe; Standard wie unten) – für schräge Flächen wie
|
||||
Motorhauben, Windschutzscheiben oder Lampenschirme.
|
||||
Ein Teil mit `rot` (Grad) ist um seine eigene Mitte um die Hochachse gedreht – für Wendeltreppen
|
||||
oder diagonale Streben; ein schmaler `loft` mit versetzter Oberseite ergibt eine schräge Stange
|
||||
(Handlauf).
|
||||
- `sweep` (glatter Körper): Querschnitte entlang der Tiefe (z), zwischen denen die Haut gespannt wird – für alles
|
||||
Runde wie Autos, Boote oder Kotflügel. `stations` ist eine Liste von `[z, unten, oben, breite]`: `z` Mitte des
|
||||
Querschnitts (−0,5 … 0,5), `unten` und `oben` als Anteil der Höhe, `breite` als Anteil der Breite. `x` verschiebt den
|
||||
Körper seitlich. `exp` formt den Querschnitt (2 = Ellipse, höhere Werte werden kantiger, Standard 2,6) und `n` ist die
|
||||
Zahl der Punkte rundherum (6 … 32, Standard 16). Die Fahrzeuge des Packs „Fahrzeuge“ sind so gebaut, siehe
|
||||
`tools/build_packs.py`.
|
||||
- `color`: `#rrggbb` oder eine Rolle der eingebauten Palette (`body`, `fabric`, `cushion`, `wood`,
|
||||
`white`, `metal`, `dark`, `glass`, `plant`, `pot`, `accent`) – Rollen passen zum Look. `top` setzt
|
||||
eine eigene Farbe für die Oberseite, `edges` zeichnet leuchtende Kanten (`true`: dezent blau,
|
||||
`"glow"`: cyan wie die Wände, `"faint"`: sehr zart).
|
||||
- `symbol` (optional, max. 40): Draufsicht im Plan aus `rect` (`fill` für gefüllt), `circle` (`r` als
|
||||
Anteil der kleineren Seite) und `line` (`x1`, `z1`, `x2`, `z2`). Ohne Symbol zeichnet der Plan die
|
||||
Teile von oben.
|
||||
- `electric`: das Möbel lässt sich mit einem Schalter und Leistungssensor verknüpfen.
|
||||
- `climate`: kennzeichnet das Möbel als Klimagerät (z. B. Klimaanlage oder Wärmepumpe).
|
||||
Es lässt sich mit einer `climate`-Entität und optional einem Leistungssensor verknüpfen.
|
||||
Die automatische Zuordnung sucht passende `climate`-Entitäten im
|
||||
Home-Assistant-Bereich des Raums. Diese Option fügt noch keine 3D-Animation hinzu.
|
||||
- `mount`: wo das Möbel sitzt – `floor` (Standard), `surface` (auf dem Möbel darunter, z. B.
|
||||
Kaffeemaschine auf der Arbeitsplatte), `wall` (Unterkante bei `wall_y` Metern, z. B. Wallbox) oder
|
||||
`ceiling` (hängt von der Decke, z. B. Dunstabzug, Pendelleuchten).
|
||||
- `surface`: die Oberseite trägt andere Möbel (Tisch, Kücheninsel, Werkbank).
|
||||
- `hole`: eine Treppe – reicht sie bis zur Etage darüber, schneidet sie dort die Treppenöffnung in den
|
||||
Boden (wie die eingebaute Treppe); die Stufen steigen von der Vorderkante (+z) nach hinten an.
|
||||
- `light`: das Möbel ist eine Leuchte und wird mit einem Licht (oder Schalter) verknüpft. Der Wert sagt,
|
||||
wie das Licht den Raum ausleuchtet (`ceiling`, `pendant`, `floor`, `table`, `wall`, `spot`, `garden` …).
|
||||
Teile mit `"glow": true` leuchten in Farbe und Helligkeit des Lichts.
|
||||
- `screen`: ein Teil mit `"screen": true` ist ein Bildschirm (Fernseher, Monitor). Das Möbel lässt sich
|
||||
dann mit einem Media Player verknüpfen; die Vorderseite (+z) zeigt die Farbe der laufenden App und
|
||||
ihr Bild, wie die eingebauten Fernseher.
|
||||
@@ -0,0 +1,109 @@
|
||||
---
|
||||
title: Plan-Format
|
||||
description: Das JSON-Format eines NextFloor-Plans, und wie eine KI deinen Plan aus einem Bild des Grundrisses zeichnet.
|
||||
---
|
||||
|
||||
Ein Plan ist ein einziges JSON-Dokument. *Editor → Sicherung → Importieren* liest es, du kannst also einen Plan von Hand schreiben, aus einem anderen Programm umwandeln oder von einer KI aus einem Bild deines Grundrisses zeichnen lassen. Alles, was du weglässt, bekommt beim Import einen sinnvollen Standardwert.
|
||||
|
||||
> [!NOTE]
|
||||
> Dieser technische Teil ist noch auf Englisch, damit Beispiele und Feldnamen eindeutig bleiben. Eine deutsche Fassung ist willkommen: [Mitmachen](contributing.md).
|
||||
|
||||
## 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.
|
||||
@@ -0,0 +1,69 @@
|
||||
---
|
||||
title: Plan-Werkzeuge
|
||||
description: Plan prüfen, Flächen und der Plan auf Papier, Notizen, Versionen, Sicherung, Teilen und Import aus anderen Programmen.
|
||||
---
|
||||
|
||||
## Plan prüfen
|
||||
|
||||
*✓ Plan prüfen* oben in der Seitenleiste des Editors listet Etage für Etage, was fehlt oder schief ist:
|
||||
|
||||
- Räume ohne Bereich und Bereiche ohne Raum
|
||||
- noch nicht gesetzte Geräte eines Raums
|
||||
- übereinanderliegende Räume
|
||||
- Türen und Fenster neben der Wand
|
||||
- Verknüpfungen zu Entitäten, die Home Assistant nicht mehr kennt
|
||||
- Standby-Fresser, mit ihren Jahreskosten
|
||||
|
||||
Blaue Knöpfe lösen einen Fund per Tipp (Rückgängig geht wie immer), *Zeigen* öffnet die Stelle. Eine kurze Tour führt durch einen neuen Plan, und das Tastenblatt öffnet sich mit `?`.
|
||||
|
||||
## Flächen und Plan auf Papier
|
||||
|
||||
Das Raumformular zeigt die **Wohnfläche** des Raums, gerechnet wie die Wohnflächenverordnung:
|
||||
|
||||
- voll ab 2 m lichter Höhe
|
||||
- zur Hälfte zwischen 1 m und 2 m
|
||||
- darunter nicht
|
||||
|
||||
Garagen, Keller und Technikräume bleiben nach ihrem Namen draußen; *Zählt zur Wohnfläche* entscheidet es von Hand. Das Etagenformular zählt die Flächen für Etage und Haus zusammen.
|
||||
|
||||
*🖨️ Plan drucken / PDF* öffnet jede Etage in **1:100** mit Maßen und der Flächentabelle. Drucken oder im Druckdialog als PDF speichern.
|
||||
|
||||
## Notizen
|
||||
|
||||
Rechtsklick (oder langes Tippen) auf eine Stelle im Plan und *✎ Notiz hier* wählen. Text eintippen und, wenn du magst, den Tag, an dem sie fällig ist. Notizen stehen als gelbe Pins in der 3D-Ansicht ihrer Etage (orange, sobald fällig). Ein Tipp zeigt den ganzen Text, und die Suche findet sie.
|
||||
|
||||
Eine Notiz kann auch zeigen, *wo genau* etwas ist: Ihre **Höhe über dem Boden** setzt den Pin zum Beispiel unter die Kellerdecke, an das Absperrventil. Ein **Foto** (hochgeladen oder als URL) erscheint, wenn man die Notiz antippt; so sieht auch jemand, der es nie gemacht hat, wie das Ventil aussieht.
|
||||
|
||||
## Versionen
|
||||
|
||||
*📌 Stand speichern …* hält den Plan unter einem Namen fest, zum Beispiel „vor dem Umbau“. Er bleibt, wenn die automatischen Wiederherstellungspunkte gehen. *Vergleichen* an einer Version listet Etage für Etage, was sich gegenüber dem Plan jetzt unterscheidet.
|
||||
|
||||
## Sicherung und Import
|
||||
|
||||
Unter *Sicherung* im Editor:
|
||||
|
||||
| Aktion | Was sie tut |
|
||||
|---|---|
|
||||
| **Exportieren** / **Importieren** | der Plan als Datei |
|
||||
| **Als Vorlage teilen** | der Plan ohne deine persönlichen Gerätedaten |
|
||||
| **Alles sichern** | Plan, Bilder und Packs in einer Datei |
|
||||
| **Vollsicherung wiederherstellen** | holt diese Datei zurück |
|
||||
| *🔗 Ansicht teilen* | speichert das Haus als kleine HTML-Datei, die in jedem Browser ohne Home Assistant aufgeht (über die Online-Demo, ohne Geräte), zum Zeigen |
|
||||
|
||||
> [!TIP]
|
||||
> Vor größeren Änderungen sichern.
|
||||
|
||||
### Import aus anderen Programmen
|
||||
|
||||
Unter *Sicherung → Importieren*:
|
||||
|
||||
- **iPhone-Raumscan:** Ein Scan mit Apples RoomPlan lädt als Räume, Wände, Türen und Fenster.
|
||||
- **Sweet Home 3D** (`.sh3d`, ab Version 5.3): Ebenen werden Etagen, Räume werden Räume, Türen und Fenster sitzen in ihren Wänden, freie Wände bleiben frei. Möbel werden nicht übernommen.
|
||||
- **DXF** (`.dxf`, aus einem CAD-Programm): geschlossene Polylinien werden Räume, Linien freie Wände.
|
||||
- **IFC** (`.ifc`, aus Revit, ArchiCAD, Allplan …): Geschosse werden Etagen, Räume (IfcSpace) werden Räume; die Wände zeichnet NextFloor aus den Räumen.
|
||||
|
||||
Ein Plan lässt sich auch von Hand schreiben, aus einem anderen Programm umwandeln oder von einer KI aus einem Bild des Grundrisses zeichnen. Format und fertige Anweisung stehen unter [Plan-Format](plan-format.md).
|
||||
|
||||
## 3D-Druck-Export
|
||||
|
||||
*3D-Druck (STL)* in den Einstellungen der 3D-Ansicht speichert das Haus als STL-Datei im Maßstab 1:100, ein Meter wird zu 10 mm. Sie enthält Wände, Böden, Möbel und Außenflächen aller Etagen; Fenster, Licht und Dach fehlen.
|
||||
@@ -0,0 +1,144 @@
|
||||
---
|
||||
title: Ein Plugin schreiben
|
||||
description: Plugins aus dem Store installieren oder selbst schreiben: Licht-Animationen, neue Gerätearten und Raum-Abschnitte.
|
||||
---
|
||||
|
||||
Plugins erweitern NextFloor, ohne den Code zu ändern: eigene Licht-Animationen, Unterstützung für Entitäten, die NextFloor nicht kennt, und kleine Karten im Raum-Fenster. Ein Plugin ist eine JavaScript-Datei (ein ES-Modul), die `window.NextFloor.register({...})` aufruft. Installiert wird es aus dem geprüften Plugin-Store unter **Erweiterungen → Plugins** oder als eigene Datei aus dem Ordner `www`.
|
||||
|
||||
> [!NOTE]
|
||||
> Dieser technische Teil ist noch auf Englisch, damit Beispiele und Feldnamen eindeutig bleiben. Eine deutsche Fassung ist willkommen: [Mitmachen](contributing.md).
|
||||
|
||||
> [!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.
|
||||
@@ -0,0 +1,39 @@
|
||||
---
|
||||
title: Schnellstart
|
||||
description: Den ersten Raum zeichnen, eine Lampe setzen und sie in der 3D-Ansicht schalten. Etwa fünfzehn Minuten.
|
||||
---
|
||||
|
||||
Am Ende dieser Seite hast du eine Etage mit einem Raum, eine Lampe, die zu einem echten Licht in Home Assistant gehört, und eine 3D-Ansicht zum Antippen. Vorbereiten musst du nur einen **Bereich** in Home Assistant mit mindestens einem Licht darin.
|
||||
|
||||
> [!TIP]
|
||||
> Lieber erst zuschauen? Das [Einrichtungsvideo](https://therealmrbk.github.io/NextFloor/tutorial/) zeichnet ein ganzes Haus von der leeren Seite an (45 Minuten, englische Stimme, Untertitel Englisch und Deutsch). Oder probiere die [Live-Demo](https://therealmrbk.github.io/NextFloor/) mit erfundenen Daten.
|
||||
|
||||
## Bevor du anfängst
|
||||
|
||||
- [NextFloor ist installiert](install.md), und du bist als Administrator angemeldet.
|
||||
- In Home Assistant gibt es den Raum schon als **Bereich** (Einstellungen → Bereiche), und ein Licht gehört dazu.
|
||||
|
||||
## Den ersten Raum zeichnen und beleuchten
|
||||
|
||||
1. **Editor öffnen.** Im Seitenleisten-Eintrag von NextFloor zum Reiter **Editor** wechseln. Die Werkzeugleiste enthält die Werkzeuge, die Seitenleiste zeigt die Auswahl, und der Hinweis unten sagt, was das aktive Werkzeug tut.
|
||||
2. **Etage anlegen.** *Etage hinzufügen* drücken. Es bietet die Etagen aus Home Assistant an (Plan und Home Assistant bleiben so verbunden) oder eine *Leere Etage*. Eine wählen.
|
||||
3. **Raum zeichnen.** Das Werkzeug *Rechteck* wählen und im Plan aufziehen. Die Ecken rasten am Raster ein.
|
||||
4. **Raum beschreiben.** In der Seitenleiste einen Namen vergeben, den **Bereich** wählen (die Verbindung zu deinen Geräten) und ein Boden-Material aussuchen.
|
||||
5. **Tür und Fenster setzen.** *Tür & Fenster* wählen, eine Wand antippen und die Art aussuchen. Breite und Position einstellen, wenn die Vorgaben nicht passen.
|
||||
6. **Einrichten.** Das Werkzeug *Möbel* wählen, den Raum antippen und rechts aus der Bibliothek ein Sofa, ein Bett oder eine Lampe wählen. Neue Stücke landen in der Raummitte; zieh sie an ihren Platz.
|
||||
7. **Dein Licht setzen.** Den Raum öffnen und zu **Geräte** scrollen. Die Geräte deines Bereichs stehen dort. Bei einem Licht auf **Platzieren** drücken: Es wird zur Lampe im Raum.
|
||||
8. **In 3D ansehen.** *3D daneben* einschalten oder den Editor verlassen und den Reiter **3D** öffnen.
|
||||
|
||||
Tippe die Lampe an: Das echte Licht schaltet. Wischen dimmt, langes Drücken öffnet die Farben.
|
||||
|
||||

|
||||
|
||||
> [!NOTE]
|
||||
> **Rückgängig** (Strg+Z) nimmt fast alles zurück. Schlägt das Speichern einmal fehl, bleiben deine Änderungen in diesem Browser, und der Editor sagt dir, warum.
|
||||
|
||||
## Wie es weitergeht
|
||||
|
||||
- Den Rest des Hauses zeichnen: [Haus zeichnen](draw.md).
|
||||
- Es wohnlich machen: [Einrichten](furnish.md).
|
||||
- Die übrigen Geräte anbinden: [Geräte verbinden](devices.md).
|
||||
- Aufs Dashboard oder ein Wandtablet bringen: [Die Dashboard-Karte](cards.md).
|
||||
@@ -0,0 +1,48 @@
|
||||
---
|
||||
title: Tasten und Gesten
|
||||
description: Jede Taste und Geste von Editor und 3D-Ansicht an einem Ort.
|
||||
---
|
||||
|
||||
Drücke im Editor `?` für das Tastenblatt. Diese Seite listet, was die Dokumentation kennt.
|
||||
|
||||
## 3D-Ansicht
|
||||
|
||||
| Aktion | Maus | Touch |
|
||||
|---|---|---|
|
||||
| Drehen | ziehen | ziehen |
|
||||
| Zoomen | Mausrad | Zusammenziehen |
|
||||
| Verschieben | rechte Taste, ziehen | zwei Finger |
|
||||
| Lampe schalten | Pin anklicken | Pin antippen |
|
||||
| Dimmen | | auf dem Pin wischen |
|
||||
| Schnellmenü mit Farben | langer Druck | langer Druck |
|
||||
| Einen Schritt zurück | Doppelklick auf leere Fläche; auf Wunsch ein kurzer Rechtsklick | Doppeltipp auf leere Fläche |
|
||||
| Raum oder Gehmodus verlassen | `Esc` | ✕ |
|
||||
|
||||
## Durchs Haus gehen
|
||||
|
||||
| Taste | Aktion |
|
||||
|---|---|
|
||||
| `W` `A` `S` `D` oder Pfeile | gehen |
|
||||
| `Q` / `E` | drehen |
|
||||
| Mausrad | ein Schritt |
|
||||
| Stick (Tablets) | steuern |
|
||||
|
||||
## Editor
|
||||
|
||||
| Taste | Aktion |
|
||||
|---|---|
|
||||
| `Strg` + `Z` | rückgängig |
|
||||
| `Enter` | eine freie Form schließen |
|
||||
| `Esc` | die aktuelle Aktion abbrechen |
|
||||
| `Alt` | das Einrasten für einen Zug ausschalten |
|
||||
| `Umschalt` | eine freie Wand gerade halten |
|
||||
| `?` | das Tastenblatt öffnen |
|
||||
| Rechtsklick oder langes Tippen | eine [Notiz](plan-tools.md#notizen) anheften |
|
||||
|
||||
## Diese Dokumentation
|
||||
|
||||
| Taste | Aktion |
|
||||
|---|---|
|
||||
| `Strg` + `K` oder `/` | Suche |
|
||||
| `↑` `↓` `Enter` | ein Ergebnis wählen und öffnen |
|
||||
| `Esc` | die Suche schließen |
|
||||
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: Wandtablet
|
||||
description: Kiosk-Modus, Nachtdimmen, Bildschirmschoner, gut lesbarer Modus und Qualitätseinstellungen für Tablets an der Wand.
|
||||
---
|
||||
|
||||

|
||||
|
||||
NextFloor ist für das Tablet an deiner Wand gemacht. Diese Optionen stehen im **Kiosk**-Abschnitt der Karte (siehe [Die Dashboard-Karte](cards.md)).
|
||||
|
||||
## Kiosk
|
||||
|
||||
| Option | Was sie tut |
|
||||
|---|---|
|
||||
| `idle_return` | Sekunden ohne Berührung, nach denen die Karte zur Startansicht zurückkehrt (0 = nie) |
|
||||
| `night` | nachts dimmen: `off`, `sun` (die Sonne steht unter dem Horizont) oder ein Zeitraum wie `22:00-06:00`. Farbeffekte ruhen beim Dimmen |
|
||||
| `idle_orbit` | nach der Rückkehr die Ansicht langsam von selbst drehen, bis zur nächsten Berührung: ein Bildschirmschoner |
|
||||
| `dashboard` und `dashboard_label` | ein Knopf zu einem anderen Dashboard oder einer anderen Ansicht |
|
||||
| `controls_hidden` / `controls_hide_after` | alle Leisten und Einblendungen beim Start oder nach einigen Sekunden ohne Berührung ausblenden |
|
||||
| `fullscreen_button` | ein Knopf für Vollbild |
|
||||
| `central_open` | das Sternmenü steht von Anfang an offen, eine Größe größer |
|
||||
| `keep_camera` | beim Etagenwechsel bleiben Seite, Höhe und Abstand der Kamera |
|
||||
| `room` | in einem Raum starten, für ein Display im Kinderzimmer |
|
||||
|
||||
## Gut lesbarer Modus
|
||||
|
||||
`readable: true` gibt kräftigere Kontraste und größere Schrift, für Tablets, die man aus der Ferne ansieht.
|
||||
|
||||
## Qualität
|
||||
|
||||
Die Qualität **schaltet auf langsamen Tablets von selbst herunter**. Du kannst sie auch einstellen: Auf Fire-Tablets und ähnlichen Geräten *Tablet* nutzen. Ist die Ansicht langsam, schalte auch Wetter und Stromfluss aus.
|
||||
|
||||
## Kleine Bildschirme
|
||||
|
||||
- `zoom` (0,6–2,5) holt die eingepassten Ansichten näher.
|
||||
- *🎥 Kamera behalten* vermeidet das neue Ausrichten bei jedem Etagenwechsel.
|
||||
|
||||
## Durchsagen auf dem Tablet
|
||||
|
||||
Jede offene Seite spricht Durchsagen. Mit `screen_name` bekommt das Tablet einen Namen, um es allein anzusprechen. Siehe [Durchsagen](announcements.md).
|
||||
|
||||
## Weiter
|
||||
|
||||
[Die Dashboard-Karte →](cards.md)
|
||||
@@ -0,0 +1,73 @@
|
||||
---
|
||||
title: Die 3D-Ansicht
|
||||
description: Bewegen, Geräte schalten, das Raum-Fenster und das Zentralmenü benutzen und das Aussehen einstellen: Themen, Wände, Symbole, Karten und Warnungen.
|
||||
---
|
||||
|
||||

|
||||
|
||||
## Bewegen
|
||||
|
||||
- **Ziehen** dreht, das **Mausrad** zoomt, die **rechte Taste** oder **zwei Finger** verschieben.
|
||||
- Die Etagen- und Raumknöpfe oben fliegen die Kamera hin. *Zurück* oder Esc geht eine Ebene hoch. Auf Wunsch geht auch ein kurzer Rechtsklick zurück (Einstellung der Ansicht oder die Karten-Option `right_back`).
|
||||
- **Nur Grundriss** blendet die Möbel aus, für eine saubere Planansicht.
|
||||
|
||||
## Dinge steuern
|
||||
|
||||
- Den Pin einer Lampe **antippen** schaltet sie, **wischen** dimmt, **langer Druck** öffnet das Schnellmenü mit Farben. Ein Rollladen öffnet sein Menü.
|
||||
- Lautsprecher und Fernseher öffnen ein Schnellmenü mit Abspielen und Pause, Weiter, Lautstärke, Quellen und Voreinstellungen.
|
||||
- Eine Tür mit Smart Lock antippen schließt sie ab oder auf.
|
||||
|
||||
## Das Raum-Fenster
|
||||
|
||||
Öffne einen Raum, um sein Fenster zu bekommen:
|
||||
|
||||
- Lichter (schalten, Helligkeit, Farbtemperatur, Farbpunkte, *Alle aus*)
|
||||
- Rollläden, Medien, Sensoren
|
||||
- **Szenen** stehen oben; *+ Stimmung speichern* merkt sich die Lichter des Raums als Stimmung zum Wiederherstellen oder Übertragen auf einen anderen Raum (→)
|
||||
- die Temperatur des Raums der letzten 24 Stunden und wann gelüftet werden sollte
|
||||
|
||||
## Zentralmenü und Suche
|
||||
|
||||
- **Zentralmenü (Stern):** alle Lichter und Rollläden der Etage oder des Hauses plus deine Favoriten. *★ Menü offen* in ⚙ hält es auf diesem Gerät offen und größer. Eigene Knöpfe leuchten, solange ihre Entität an ist.
|
||||
- **Suche (Lupe):** Gerät oder Raum tippen, die Kamera fliegt hin.
|
||||
|
||||
## Aussehen
|
||||
|
||||
| Einstellung | Möglichkeiten |
|
||||
|---|---|
|
||||
| Qualität | *Auto*, *Tablet*, *Hoch* |
|
||||
| Thema | *Neon*, *Blueprint*, *Tag*, mit einer Akzentfarbe |
|
||||
| Möbelfarben | im Editor unter *Einstellungen*: eine Farbe je Material (Korpus, Holz, Stoff, Weiß, Metall, Dunkel) für das ganze Haus, auch für Möbel aus dem Möbelbauer und den Paketen. Am stärksten im Look Neon |
|
||||
| Symbole | *Keine*, *Wichtige*, *Alle* |
|
||||
| Look *Auto* | tagsüber der Tag-Look, nach Sonnenuntergang Neon |
|
||||
|
||||
**Schalter unten:** *Wände hoch / Schnitt / Schräg*, *Massiv*, *Auseinander / Gestapelt*, *Dach bleibt*, Heatmap, *Raumnamen*, *Wetter*, *Stromfluss*, *Karten*.
|
||||
|
||||
### Wände
|
||||
|
||||
- **Schräg** schneidet die Wände schräg ab, vorne halbhoch und hinten voll hoch, wie ein Puppenhaus. Die Schräge dreht mit der Kamera.
|
||||
- **Massiv** zeigt blickdichte Wände in ihren Farben statt Glas. Im geöffneten Raum werden die Wände vor der Kamera abgesenkt.
|
||||
- *Massiv* und *Schräg* lassen sich kombinieren.
|
||||
- Die Farben stellst du im Editor ein: *Einstellungen → Wandfarbe außen / innen*, pro Etage *Wandfarbe außen (diese Etage)* (ein Sockel, eine Garage) und pro Raum *Wandfarbe innen (dieser Raum)*.
|
||||
|
||||
## Karten
|
||||
|
||||
Neben Temperatur, Feuchte und CO₂ gibt es in der Kartenauswahl **Schimmel**, **Werte** und **WLAN**. Siehe [Klima und Energie](climate-energy.md).
|
||||
|
||||
## Warnungen
|
||||
|
||||
Rauch, Gas, CO, Wasser, Alarmanlage und offene Fenster bei Regen erscheinen als Banner. Ein Tipp springt in den Raum. Ein ausgelöster Alarm nennt den Sensor, der ihn ausgelöst hat, und lässt dessen Raum pulsieren. Du kannst [eigene Warnungen](devices.md#favoriten-knoepfe-und-warnungen) hinzufügen.
|
||||
|
||||
## Im Haus unterwegs
|
||||
|
||||
- **Durchs Haus gehen (🚶):** auf der geöffneten Etage in Augenhöhe. Ziehen schaut sich um, `W A S D` oder die Pfeiltasten gehen (`Q`/`E` drehen), das Mausrad macht einen Schritt, auf dem Tablet steuert der Stick unten rechts. ✕ beendet es.
|
||||
- **Zeitreise (⏪):** spielt die letzten 24 Stunden oder 7 Tage aus dem Verlauf von Home Assistant ab: Lampen, Rollläden, Türen und Fenster, Schlösser, Medien und Roboter. Die Leiste zeigt jede Änderung als Strich. Abspielen mit 1 Min., 10 Min. oder 1 Std. pro Sekunde oder an einen Zeitpunkt ziehen. *Live* kehrt zurück. **In der Vergangenheit wird nichts geschaltet.**
|
||||
- **3D-Sperre (🔒):** Drehen, Zoomen und Verschieben sind auf diesem Gerät aus, Tippen auf Geräte geht weiter.
|
||||
- **Uhr:** 🕒 in der Kopfzeile stellt eine große Uhr in eine Ecke der Ansicht.
|
||||
- **Kleine Bildschirme:** 🔍 in ⚙ holt die eingepassten Ansichten näher. *🎥 Kamera behalten* behält Seite, Höhe und Abstand beim Etagenwechsel.
|
||||
- **Heute:** Mit gewählten Kalendern listet eine Karte oben rechts die Termine des Tages und die Mülltonnen, die heute oder morgen abgeholt werden. *Tage auf der Karte „Heute“* (Haus-Einstellungen, bei den Kalendern) zeigt bis zu sieben Tage, jeder spätere Tag mit eigener Überschrift.
|
||||
- **Wettervorhersage:** In den Haus-Einstellungen unter *Wettervorhersage* 3, 5 oder 7 Tage wählen und eine Ecke (oben links oder oben rechts, dort unter *Heute*). Die Karte zeigt pro Tag das Wetter, Höchst- und Tiefstwert und den Regen (Menge oder Wahrscheinlichkeit). Sie liest die Wetter-Entität aus den Einstellungen über `weather.get_forecasts`; eine Entität ohne Tagesvorhersage zeigt keine Karte.
|
||||
|
||||
## Weiter
|
||||
|
||||
[Live-Funktionen →](live.md)
|
||||
@@ -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"]]
|
||||
}
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
---
|
||||
|
||||

|
||||
|
||||
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)
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Changelog
|
||||
description: Everything that changed in every NextFloor release, newest first.
|
||||
generated: changelog
|
||||
---
|
||||
@@ -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 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)
|
||||
@@ -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)
|
||||
@@ -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.
|
||||
@@ -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)
|
||||
@@ -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.
|
||||
|
||||

|
||||
|
||||
## 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)
|
||||
@@ -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
|
||||
@@ -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.
|
||||
|
||||

|
||||
|
||||
## 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)
|
||||
@@ -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)
|
||||
@@ -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.
|
||||
|
||||
[](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.
|
||||
@@ -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.
|
||||
|
||||

|
||||
|
||||
## 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)
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
---
|
||||
|
||||

|
||||
|
||||
## 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)
|
||||
@@ -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 |
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
|
||||

|
||||
|
||||
> [!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).
|
||||
@@ -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 |
|
||||
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: Wall tablet
|
||||
description: Kiosk mode, night dimming, screensaver, readable mode and quality settings for tablets on the wall.
|
||||
---
|
||||
|
||||

|
||||
|
||||
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)
|
||||
@@ -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.
|
||||
---
|
||||
|
||||

|
||||
|
||||
## 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)
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"sections": [
|
||||
{
|
||||
"title": {
|
||||
"en": "Get started",
|
||||
"de": "Loslegen"
|
||||
},
|
||||
"pages": [
|
||||
"index",
|
||||
"install",
|
||||
"quickstart",
|
||||
"concepts"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Build your home",
|
||||
"de": "Dein Zuhause bauen"
|
||||
},
|
||||
"pages": [
|
||||
"draw",
|
||||
"furnish",
|
||||
"devices",
|
||||
"outside",
|
||||
"plan-tools"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Use it",
|
||||
"de": "Benutzen"
|
||||
},
|
||||
"pages": [
|
||||
"view3d",
|
||||
"live",
|
||||
"climate-energy",
|
||||
"household",
|
||||
"bluetooth",
|
||||
"announcements",
|
||||
"tablet"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Connect and extend",
|
||||
"de": "Verbinden und erweitern"
|
||||
},
|
||||
"pages": [
|
||||
"cards",
|
||||
"automations",
|
||||
"plugins",
|
||||
"packs",
|
||||
"models",
|
||||
"plan-format"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Help",
|
||||
"de": "Hilfe"
|
||||
},
|
||||
"pages": [
|
||||
"shortcuts",
|
||||
"faq",
|
||||
"changelog",
|
||||
"contributing"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
// Example NextFloor plugin (API 1). Copy it to /config/www/nextfloor/example.js and add
|
||||
// /local/nextfloor/example.js on NextFloor's Extensions page. See docs/plugins.md.
|
||||
|
||||
const plugin = {
|
||||
id: "example",
|
||||
name: "Example plugin",
|
||||
version: "1.0.0",
|
||||
apiVersion: 1,
|
||||
|
||||
// 1. Light animations: map a light's effect to "strobe" in the light's effect settings.
|
||||
lightAnimations: {
|
||||
strobe: (glow, seconds) => ({ ...glow, level: seconds % 0.5 < 0.25 ? glow.level : 0 }),
|
||||
sunrise: (glow, seconds) => {
|
||||
const t = (Math.sin(seconds * 0.5) + 1) / 2;
|
||||
return { color: [1, 0.35 + 0.5 * t, 0.1 + 0.6 * t], level: glow.level * (0.4 + 0.6 * t) };
|
||||
},
|
||||
},
|
||||
|
||||
// 2. Devices: show robot vacuums (a domain NextFloor does not know) with their own icon and text.
|
||||
devices: [
|
||||
{
|
||||
match: (entityId) => entityId.startsWith("vacuum."),
|
||||
kind: "switch",
|
||||
marker: ({ state }) => ({
|
||||
icon: "mdi:robot-vacuum",
|
||||
text: state.attributes.battery_level !== undefined ? `${state.state} · ${state.attributes.battery_level} %` : state.state,
|
||||
active: state.state === "cleaning",
|
||||
}),
|
||||
},
|
||||
],
|
||||
|
||||
// 3. Room sections: a small card at the end of every room's panel.
|
||||
roomSections: [
|
||||
{
|
||||
id: "open-windows",
|
||||
render: ({ hass, entities }) => {
|
||||
const open = entities.filter((id) => id.startsWith("binary_sensor.") && hass.states[id]?.attributes.device_class === "window" && hass.states[id]?.state === "on");
|
||||
if (!open.length) return null;
|
||||
const p = document.createElement("p");
|
||||
p.textContent = `🪟 ${open.length} window(s) open`;
|
||||
return p;
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
// Works whether NextFloor is already running or loads after this script (dashboard resource).
|
||||
if (window.NextFloor) window.NextFloor.register(plugin);
|
||||
else (window.__nextfloorPlugins ??= []).push(plugin);
|
||||
|
After Width: | Height: | Size: 122 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 213 KiB |
|
After Width: | Height: | Size: 174 KiB |
|
After Width: | Height: | Size: 188 KiB |
|
After Width: | Height: | Size: 190 KiB |
|
After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 226 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 455 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 160 KiB |
|
After Width: | Height: | Size: 152 KiB |
|
After Width: | Height: | Size: 152 KiB |
|
After Width: | Height: | Size: 152 KiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 170 KiB |
|
After Width: | Height: | Size: 178 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 182 KiB |
|
After Width: | Height: | Size: 161 KiB |
@@ -0,0 +1,219 @@
|
||||
# NextFloor guide
|
||||
|
||||
This guide follows the way you actually work: install, draw, furnish, connect, then use. A video that walks through the whole setup from an empty page is linked in the [README](../README.md); its transcript is in the releases. German version: [anleitung.md](anleitung.md).
|
||||
|
||||
**NextFloor is free forever** – every feature, every furniture pack, every update, with no Pro version, no paid add-ons and no shop. New furniture packs keep coming, you can build your own in the [furniture builder](https://therealmrbk.github.io/NextFloor/builder/) and share them, and plugins extend it further. That belief is why the project exists: a live 3D home in Home Assistant should belong to everyone.
|
||||
|
||||
**Jump to:** [Install](#install) · [Draw the house](#draw-the-house) · [Furnish](#furnish) · [Connect devices](#connect-devices) · [Outside, roof and energy](#outside-roof-and-energy) · [Compass and map](#compass-and-map) · [Use the 3D view](#use-the-3d-view) · [Live features](#live-features) · [Dashboard card](#dashboard-card) · [Wall tablet](#wall-tablet) · [Own models and packs](#own-models-and-packs) · [Backup](#backup) · [Troubleshooting](#troubleshooting)
|
||||
|
||||
---
|
||||
|
||||
## Install
|
||||
|
||||
Needs Home Assistant 2025.1 or newer.
|
||||
|
||||
- **HACS:** NextFloor is in the official HACS store: search for *NextFloor* in HACS, download it, restart Home Assistant, then add the integration under Settings → Devices & services. A *NextFloor* entry appears in the sidebar. (Installed earlier as a custom repository? Nothing to change: updates keep coming through HACS, which lists it as a regular repository by itself.)
|
||||
- **By hand:** copy `custom_components/nextfloor` into your configuration folder, restart, add the integration.
|
||||
- **Updates:** through HACS, then restart Home Assistant and reload the browser tab (on the companion app: Settings → Companion app → reset the frontend cache).
|
||||
|
||||
The plan, its pictures and the packs are stored in Home Assistant's `.storage`. Nothing leaves your installation.
|
||||
|
||||
## Draw the house
|
||||
|
||||
Open the **Editor** tab (administrators only). The toolbar holds the tools; the side panel always shows what is selected; the hint at the bottom names what the active tool does. **Undo** (Ctrl+Z) takes back almost everything.
|
||||
|
||||
1. **Add a floor.** *Add floor* offers the floors of Home Assistant (keeping plan and Home Assistant connected) or *Empty floor*. The floor form sets name, elevation, ceiling height and the Home Assistant floor. *Shift* and *Turn 90°* move or turn the whole floor; *Take every floor along* applies that to the whole house. *Add rooms from HA areas* drops a room per area as a start. *Duplicate floor* puts a copy on top of the house, with its furniture, device pins and outdoor areas if you like; the copy is unlinked from Home Assistant and set up for the new storey.
|
||||
2. **Draw rooms.** *Rectangle*: drag. *Free shape*: place corners, close by tapping the first corner or Enter, Esc cancels. Corners snap to the grid and to existing walls; Alt switches snapping off for one move.
|
||||
3. **Describe each room.** Name, *Area* (the link to Home Assistant devices) and *Floor* material. Position and size can be typed. Drag a corner handle to reshape; the **+** on an edge adds a corner.
|
||||
*+ Area within the room* adds Home Assistant areas that are parts of the room without walls of their own (a reading corner, the kitchenette): their devices belong to the room. *Underfloor heating* names the thermostat, valve or switch whose heating makes the floor glow. A rectangular room shows its inside size from wall face to wall face.
|
||||
4. **Walls.** They come from the room edges. Each edge has height, thickness, a scissors button that splits it into parts, and *No wall* for open edges. A lower height makes a parapet or counter. Free-standing partitions use the *Wall* tool (Shift keeps straight). A split edge can have its own thickness on every part. *Close gaps* in the floor form joins hairline gaps. **◠ Arc** on an edge (or on a free wall) opens a *Bulge* field: type how far the middle bulges (negative bends into the room) and press *Bend*. A room sharing the whole wall bends along, doors and windows move with it; a room touching only part of the wall, or a free wall standing on it, stays straight. A door or window too wide for a deep curve stops the bend with a note.
|
||||
5. **Doors and windows.** *Doors & windows*, tap a wall, pick the kind (door, front door, double door, window, double window, terrace door, French doors, garage door, glass wall). Set width, position from the corner, sill and height; swap hinge side or opening direction. Style *Automatic* picks front door outside and room door inside.
|
||||
6. **Stairs and openings.** The *Stairs* tool draws a stair where you drag; it runs along the long side. It has a shape (straight, quarter turn, L with landing, half turn, U with landing, spiral), turns left or right and is built solid, on stringers, on a spine or cantilevered, with or without risers and railings. The risers follow the floor height; the form shows rise, going and step measure and warns when the stair is uncomfortable. *Leads down* makes a stair into a cellar that need not be drawn. A stair opens the floor above only where its steps lack 2.2 m of headroom; the stairs of the *Stairs & railings* pack cut their whole footprint. *Floor opening* cuts any other hole (gallery, shaft).
|
||||
7. **Template.** *Template (floor plan image)* puts a picture behind the plan; move, scale, turn and straighten it, set the scale from a known length, then trace.
|
||||
8. **Lock.** The *Floor plan* lock stops rooms, walls, openings and outdoor areas from moving by accident; single pieces can be fixed with *Fix*.
|
||||
|
||||
**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.
|
||||
|
||||
## 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 and 2 m, nothing below); garages, cellars and utility rooms are left out by their name, *Counts as living area* decides it by hand. The floor form adds it up for the floor and the house, and *🖨️ Print plan / PDF* opens every floor at 1:100 with measurements and the table of areas – print it, or save it as PDF in 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.
|
||||
|
||||
## 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, areas without a room, devices of a room not placed yet, overlapping rooms, doors and windows off their wall, and links to entities Home Assistant no longer knows. Blue buttons fix it in one tap (undo works as always), *Show* opens the place.
|
||||
|
||||
## Furnish
|
||||
|
||||
*Furniture* tool, tap a room, pick from the library on the right. New pieces appear in the middle of the room.
|
||||
|
||||
- The library has sections (lights, living, dining, kitchen, sleeping, bath, work, parking) and then the furniture packs. The search finds German and English names, pack names and several words in any order.
|
||||
- **Furniture studio:** *🛠️ Build your own piece* at the top of the library. Pick a template (cabinet, shelf, lamp, device), type the measurements in cm and set doors, drawers, boards, handles, base and colours; the front view follows every change. *Put into the plan* keeps it in the pack *Own furniture* (it shows up in the library too). Select a studio piece and press *Change in the studio* to change it later – every copy in the plan takes the new size.
|
||||
- Drag to move, drag corners to resize, use the turn handle or type position, size and rotation. *Mirror* flips left and right, *Duplicate* copies, *Fix* locks, *Move to floor* takes the item to the same spot on another floor.
|
||||
- Items marked with an electrical symbol can be linked to devices (see below). Lamps are furniture with a light behind them; the lights section has twelve kinds.
|
||||
- **Place spots:** a room's *Place spots* lays out a grid of lamps (columns × rows) that all follow one light, undoable in one step.
|
||||
- **Library:** furniture sorted by kind (seating, beds, kitchen …) with a picture and its size; a model 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 for ⚡ linkable, 💡 lit and 🌳 outdoor; ★ favourites and recently used stand at the top.
|
||||
- **Resizing:** legs, arms, plates and handles keep their real size, only the middle grows.
|
||||
- **Wall view (▣):** in a room's wall list, *Wall view* shows the wall from the front with its doors, windows and the furniture against it; drag, or type the distance and height.
|
||||
- **Light switches and sockets** (smart home pack, 1 to 4 gang): each button with its own entity; it glows while what it switches is on.
|
||||
- **Awnings, curtains, blinds, roll-down screen, sliding gate:** *Moves with* picks the cover entity they follow.
|
||||
- **Sofas:** the built-in sofa has a *Shape* – straight, L (mirror it for the other side) or U.
|
||||
- **Picture frames** (pack *Pictures & frames*): upload a photo in the form, type a picture address (/local/…) or pick an image or camera entity; set the mat and whether the photo fills the frame.
|
||||
- **Show only while …:** any piece can wait for an entity – the Christmas tree only while a helper is on. Several states with commas, or the other way round; the editor always shows it.
|
||||
- **Move the pin:** pins of devices close together can be pushed aside or up in the form; the device stays where it is.
|
||||
- **Under a roof slope:** ceiling lamps and hanging items in an attic room have *📐 Up to the roof slope*.
|
||||
- **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.
|
||||
|
||||
## Connect devices
|
||||
|
||||
In a room's form the **Devices** section lists the Home Assistant devices of that area. Tabs: *This area*, *Other areas*, *No area*; search by name. Each row: eye (hide in the 3D room panel), *Aa* (own name), star (add to the room panel without placing), *Place*.
|
||||
|
||||
- Placing a light turns it into a lamp. *Light or switch* names the light; *Colour and brightness from* is for relay-switched bulbs; *Glow in 3D* scales the glow; *Ask before switching* protects against accidental taps; *Marker in 3D* decides on the pin above it.
|
||||
- Electric furniture (TV, fridge, washer …) finds its entity in the same area by itself ("Automatic"). TVs show the running app's colour and title; *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 light up while it runs.
|
||||
- **Lamps with several bulbs:** *Bulb 2, 3 …* adds the night light or ambient ring of the same fixture; the lamp glows with them while its main light is off.
|
||||
- **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.
|
||||
- **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 – the print grows on the bed) or the heat pump (mode, flow and return, power, heat, COP).
|
||||
- **Robot mower:** a mower or dock from *Garden 2* linked to a `lawn_mower` mows lanes over its lawn while it mows.
|
||||
- **Pets:** a pet's *Room sensor* (Bermuda, ESPresense) lets it roam the room it is in.
|
||||
- Entity fields are searchable: type part of a name and pick. NextFloor never switches anything by assigning it.
|
||||
- **Parking spot** (library section *Parking*): *Vehicle* picks the model, *Sensor "car present"* decides when it shows, any entity of the car lets NextFloor find charge, range, plug, lock and climate on the car's device.
|
||||
- **Favourites and own buttons** (Settings area, *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. A preset can be kept to some speakers. **Own warnings** turn any entity into a line in the warning bar (state, several with commas, or `<20` / `>80`), with a text, a room and a colour. **Calendars for "Today"** fill the *Today* card.
|
||||
|
||||
## Outside, roof and energy
|
||||
|
||||
- **Outdoor:** drag out lawn, terrace, path, driveway, pool, flower bed, wild patch, hedge, fence or pergola. *Height offset* lowers or raises, *Slope* tilts, *Show the outline* toggles the glowing edge, *Cut out of the areas beneath* makes a hole (pond). An area can be linked to a Home Assistant *Area* (its devices join Outside, a pin opens it); pools, ponds and beds can show a water temperature and pump on that pin. Hedges and fences take a height. Garden and path lights come from the library and light the areas.
|
||||
- **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 no longer counts for the room below and shows in the Outside panel. The dashboard card shows the chip with its room buttons.
|
||||
- **Roof:** the *Roof* tool builds roof sections from the rooms (shape, ridge direction, eaves, pitch; drag to move, corners to resize). The simple roof shape lives in Settings. Roof windows sit on a section and take a blind and contacts. Gable, hip and half-hip sections can end differently at each end of the ridge, and a wing that butts against a bigger roof runs into it with valleys. A section turns about its middle with *Turn (°)* (a wing at an angle). A half-hip end has a slider for how high its hip starts. 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 optional). A solar field goes on the best south-facing roof section (it uses the compass), in the garden or on a wall; set rows, columns, portrait/landscape. Meter, inverter, battery, wallbox are devices placed here; the energy balance fields default to "Automatic", and *Take over from the energy dashboard* reads your existing setup. **Cable routes** draws where a cable really runs (solar field to inverter, battery, inverter and grid to the house, sub-meters): *Draw route*, tap the points on the plan and switch floors where it 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. *Gas meter* and *Water meter* add their readings to the balance.
|
||||
|
||||
## Compass and map
|
||||
|
||||
Under **Settings**:
|
||||
|
||||
- **Compass.** A dial shows where north lies (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, move it with the arrows until the house sits on its plot. Your browser loads the tiles directly from the map server, and only while the map is on.
|
||||
- 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.
|
||||
|
||||
## Use the 3D view
|
||||
|
||||
- **Move:** drag to turn, wheel to zoom, right button or two fingers to pan. Floor and room buttons at the top fly the camera there; *Back* or Esc goes up a level.
|
||||
- **Look:** quality *Auto / Tablet / High*; themes *Neon / Blueprint / Day* with an accent colour; markers *None / Important / All*.
|
||||
- **Switches at the bottom:** *Tall walls / Cut / Sloped*, *Solid*, *Apart / Stacked*, *Roof stays*, heat map (*Temp., Humidity, CO₂, Values*), *Room names*, *Weather*, *Power flow*, *Cards*.
|
||||
- **Maps:** besides temperature, humidity and CO₂ the map selector has **Mould** (the risk at each room's coldest wall), **Values** (with airing hints) and **Wi-Fi** (each access point's reach, its devices, the network devices offline). The temperature scale is a summer one from May to September.
|
||||
- **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. Set the colours in the editor: *Settings → Wall colour outside / inside*, and per room *Wall colour inside (this room)*. *Solid* and *Sloped* can be combined.
|
||||
- **Room panel:** lights (switch, brightness, colour temperature, colour dots, *All off*), blinds, media, sensors, scenes. Tapping a lamp pin switches it, a long press opens the quick menu, a blind opens its menu. Speakers and TVs open a quick menu with play/pause, skip, volume, sources and presets. 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 panel shows the room's temperature over the last 24 hours and when to air it.
|
||||
- **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 room, the camera flies there.
|
||||
- **Warnings:** smoke, gas, CO, water, alarm panel and windows 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.
|
||||
- **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.
|
||||
|
||||
## Live features
|
||||
|
||||
Built in and free; they only need the devices you already have.
|
||||
|
||||
- **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.
|
||||
- **Power flow:** particles from the solar modules to inverter, house, battery and grid; a glass card with the balance and self-sufficiency.
|
||||
- **TV screens:** what plays, in the app's colour, plus ambilight.
|
||||
- **Sound:** a card over every playing speaker or TV with cover and controls; sound rings in the app's colour; multiroom groups are joined by a thread.
|
||||
- **Car:** a card over the parking spot with charge ring, range, charging power, plug, inside temperature and buttons for lock, climate and charging. Away it tells how far it is from home; it shows the departure time and warns about open doors and hatches; plugged in at a wallbox it hangs on its cable.
|
||||
- **Energy:** the house card shows the last seven days as bars and stays above the open floor; a home battery shows its charge on its front.
|
||||
- **Robot vacuum:** a `robot_vacuum` on the plan used to drive lanes 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), it 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. See *Robot vacuum on the plan* below.
|
||||
- **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.
|
||||
|
||||
### Robot vacuum on the plan
|
||||
|
||||
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: the robot counts in its own cells, the plan counts in metres.
|
||||
|
||||
To tie the two together, select the robot's dock in the plan and press *Calibrate from where the robot is now*: let the robot drive at least 1.5 m away, then tap it where it stands on the plan. The dock is the anchor — the plan knows where it stands, the camera knows where it and the robot lie in the robot's grid — so one tap is enough, and everything else (the pose, the trail, the dock) follows.
|
||||
|
||||
Two places cannot tell a mirror from a turn, since both put them exactly where they belong, so a map whose y axis runs along plan −z needs the *mirrored* tick; without it the rooms come out flipped. The two places are stored as `settings.vacuum_map` (`a`/`ga` and `b`/`gb`, plus `mirror`), so a plan without it keeps drawing the lanes the view invents.
|
||||
|
||||
The trail 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 trail, 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 on it — the timeline (⏪) is where a finished clean stays, and it holds the whole day.\n\nThose 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, and a unit that reports in millimetres rather than in map cells works just as well — the two places set the scale. What the integration has to do is expose them as attributes; some do only when asked (the map extractors want `vacuum_position` and `path` in their `attributes:` list).
|
||||
|
||||
## 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, 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 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.
|
||||
- **Look *Auto*:** the day look while the sun is up, neon after sunset.
|
||||
- **House card:** the energy card over the roof shows the last 24 hours as a curve (solar as an area, consumption as a line).
|
||||
|
||||
## Household and pets
|
||||
|
||||
- **Waste bins** (garden pack, four colours, 120 and 240 l): pick the *Pickup date (sensor)* in the form, e.g. from Waste Collection Schedule or a sensor with days or a date. The day before and on the day the bin glows and shows its pin.
|
||||
- **Mailbox:** pick the *Post sensor* (e.g. a contact on the flap); while there is post it glows.
|
||||
- **Plants:** *Soil moisture (sensor)* and *Thirsty below (%)*; below that 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 pack: cat, dog, rabbit): walk around their room, round the furniture, with breaks in between.
|
||||
|
||||
## Announcements
|
||||
|
||||
*"Dinner is ready!"* – and the room that should hear it, hears it.
|
||||
|
||||
- **From a room:** the room panel has a **📢 Announcement** section when the room has a speaker. Tap a sentence, or type your own; the room's speaker says it. Your own sentences go into *Editor → Settings* (one per line).
|
||||
- **The room's speaker:** chosen in the room's form, else a speaker placed in the room, else a voice assistant (Voice PE and other satellites), an Echo or a speaker of its area. A TV or a speaker that is off is never picked by itself. Voice satellites announce with their chime, Echos as a real announcement (Alexa Devices or Alexa Media Player), speakers that support it (Sonos and others) lower their music and play on after; any other speaker talks through Home Assistant's text-to-speech.
|
||||
- **Quiet time per room:** in the room's form, e.g. 20:00–07:00 for a nursery. Announcements to several rooms leave the room out then; one meant only for that room 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 ⚙ → 📢 (e.g. *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
|
||||
```
|
||||
|
||||
`floor` limits it to one floor, `on_speakers: false` keeps the speakers silent, `tts_entity` picks the voice. The action returns which speaker said it and which rooms were left out (and why).
|
||||
|
||||
## Sensors for automations
|
||||
|
||||
NextFloor adds sensors to Home Assistant: *Open windows and doors* and *Lights on*, for the house and for every floor (on the device *NextFloor*). They count the contacts, garage doors, device pins and lamps of the plan, and their attribute `entities` lists what is open or on – e.g. a notification "{{ state_attr('sensor.nextfloor_open_windows_and_doors', 'entities') | join(', ') }}" when the alarm is armed.
|
||||
|
||||
## Dashboard card
|
||||
|
||||
Add *NextFloor* in the dashboard's card dialog (`type: custom:nextfloor-card`). The visual editor sets floor, size, look, accent, walls, quality, floors below, markers, heat map, power flow, cards, switches in the card, room buttons, central star, room names, energy values, room details on tap, full screen, floors apart, roof fade, warnings, scene buttons and weather. Newer options: `central_open` (star menu open and large), `keep_camera`, `readable` (stronger contrast and larger text), `zoom` (0.6–2.5) and `today` (the Today card, default on). The same options exist in YAML under the names shown in the editor.
|
||||
|
||||
## Wall tablet
|
||||
|
||||
The card's kiosk section returns to the start view after idle time, dims at night (by the sun or a time range, colour effects rest), can turn the camera slowly as a screensaver and can show a button to another dashboard. Use quality *Tablet* on Fire tablets and similar.
|
||||
|
||||
## Own models and packs
|
||||
|
||||
- **Extensions tab → Furniture packs:** import your own furniture packs as files or paste their JSON straight in, and remove your own packs again. Format: [packs.md](packs.md) (German).
|
||||
- **Extensions tab:** upload your own `.glb` model for a vehicle slot. The browser turns it the right way round, lightens it, removes textures and marks the paint; the file is stored on your Home Assistant (admins only, up to 12 MB). See [models.md](models.md).
|
||||
- **Furniture packs** come with the integration (43 packs, about 800 models) and need no setup. Own packs are JSON files, format in [packs.md](packs.md). The demo has a model showcase that shows every model live.
|
||||
|
||||
## Backup
|
||||
|
||||
*🔗 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 and entities) – to show it to someone.
|
||||
|
||||
*📌 Save this state …* keeps the plan under a name (a version that stays when the automatic restore points go). *Compare* on a restore point lists what differs from the plan now, floor by floor.
|
||||
|
||||
A plan from **Sweet Home 3D** (.sh3d, version 5.3 and newer) loads directly under *Backup → Import*: levels become floors, rooms become rooms, doors and windows sit in their walls, free walls stay free. Furniture is not taken over. A **DXF** drawing (.dxf) from a CAD program loads the same way: closed polylines become rooms, lines free walls. An **IFC** model (.ifc, from Revit, ArchiCAD, Allplan …) brings its storeys as floors and its spaces as rooms; NextFloor draws the walls from the rooms.
|
||||
|
||||
Under *Backup* in the editor: **Export** / **Import** for the plan, **Share as template** (without personal device data), **Back up everything** (plan, pictures, packs in one file) and **Restore a full backup**. Back up before big changes.
|
||||
|
||||
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.md](plan-format.md).
|
||||
|
||||
## 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 *Other areas* or *No area*.
|
||||
- **Panel looks old after an update:** reload the tab; on the companion app reset the frontend cache and close the app completely. A Home Assistant restart does not help for this.
|
||||
- **Furniture shows as grey boxes:** its pack is not installed; import it again 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 in Settings.
|
||||
- **Slow on a tablet:** quality *Tablet*, weather and power flow off.
|
||||
- **Saving fails:** only administrators can save; the message names the field Home Assistant rejected.
|
||||
|
||||
Problems and ideas: [GitHub issues and discussions](https://github.com/therealMRBK/NextFloor).
|
||||
@@ -0,0 +1,219 @@
|
||||
# NextFloor 指南
|
||||
|
||||
这份指南按你实际做事的顺序走:安装、绘制、布置、连接,然后使用。从空白页面开始的完整安装视频链接在 [README](../README.md) 里;视频文稿随版本发布。英文版:[manual.md](manual.md),德文版:[anleitung.md](anleitung.md)。
|
||||
|
||||
**NextFloor 永久免费** —— 每一个功能、每一个家具包、每一次更新,都没有 Pro 版、没有付费插件、没有商店。新的家具包会持续到来,你也可以在[家具构建器](https://therealmrbk.github.io/NextFloor/builder/)里自己做并分享,插件还能继续扩展它。这个信念就是项目存在的原因:Home Assistant 里的实时 3D 之家,应该属于每一个人。
|
||||
|
||||
**跳转:** [安装](#安装) · [画房子](#画房子) · [布置家具](#布置家具) · [连接设备](#连接设备) · [室外、屋顶与能源](#室外屋顶与能源) · [指南针与地图](#指南针与地图) · [使用-3d-视图](#使用-3d-视图) · [实时功能](#实时功能) · [仪表盘卡片](#仪表盘卡片) · [墙上平板](#墙上平板) · [自己的模型与家具包](#自己的模型与家具包) · [备份](#备份) · [疑难排查](#疑难排查)
|
||||
|
||||
---
|
||||
|
||||
## 安装
|
||||
|
||||
需要 Home Assistant 2025.1 或更高版本。
|
||||
|
||||
- **HACS:** 把 `therealMRBK/NextFloor` 添加为自定义仓库(类别选「集成」),安装,重启 Home Assistant,然后在「设置 → 设备与服务」里添加集成。侧边栏会出现 *NextFloor* 入口。
|
||||
- **手动:** 把 `custom_components/nextfloor` 复制到你的配置目录,重启,添加集成。
|
||||
- **升级:** 通过 HACS 更新,然后重启 Home Assistant 并刷新浏览器标签页(伴侣 App 里:设置 → 伴侣 App → 重置前端缓存)。
|
||||
|
||||
平面图、图片和家具包都存在 Home Assistant 的 `.storage` 里。任何数据都不会离开你的安装。
|
||||
|
||||
## 画房子
|
||||
|
||||
打开**编辑器**标签页(仅管理员)。工具栏放工具,侧边面板始终显示当前选中的对象,底部的提示说明当前工具怎么用。**撤销**(Ctrl+Z)几乎能退回所有操作。
|
||||
|
||||
1. **添加楼层。** *添加楼层*会列出 Home Assistant 的楼层(让平面图和 Home Assistant 保持对应),也可以选*空楼层*。楼层表单里设置名称、标高、层高和对应的 Home Assistant 楼层。*移动*和*转 90°* 移动或旋转整个楼层;*带上所有楼层*会把该操作应用到整栋房子。*从 HA 区域添加房间*会按区域各放一个房间作为起点。*复制楼层*会在上面加一份副本,可以连同家具、设备标记和室外区域一起复制;副本与 Home Assistant 解除关联,并按新楼层配置好。
|
||||
2. **画房间。** *矩形*:拖拽。*自由形状*:逐个点角点,点回第一个角点或按回车闭合,Esc 取消。角点会吸附网格和已有墙体;按住 Alt 可在一次移动中关闭吸附。
|
||||
3. **描述每个房间。** 名称、*区域*(与 Home Assistant 设备的关联)和*地面*材质。位置和尺寸可以直接输入。拖动角点手柄改变形状;边上的 **+** 可以加角点。
|
||||
*+ 房间内的区域*用于添加属于这个房间但没有独立墙体的 Home Assistant 区域(阅读角、开放式厨房):它们的设备会算作这个房间的。*地暖*指定哪个温控器、阀门或开关在供暖时让地面发亮。矩形房间会显示墙到墙的内侧尺寸。
|
||||
4. **墙体。** 墙由房间的边生成。每条边有高度、厚度、一个把它拆成多段的剪刀按钮,以及用于开放边的*无墙*。降低高度就变成女儿墙或吧台。独立隔断用*墙*工具画(按住 Shift 保持直线)。拆开的边每一段可以有自己的厚度。楼层表单里的*闭合缝隙*能合上发丝级的缺口。边(或独立墙)上的 **◠ 弧形**会打开*拱度*输入框:输入中间凸出多少(负数向房间内弯),然后按*弯曲*。共用整面墙的房间会一起弯,门窗跟着走;只接触墙的一部分的房间,或立在这面墙上的独立墙,保持直。门窗太宽、弯得太深时,弯曲会停下并给出提示。
|
||||
5. **门窗。** *门窗*工具,点一下墙,选类型(门、入户门、双开门、窗、双窗、阳台门、法式门、车库门、玻璃墙)。设置宽度、距墙角的位置、窗台高度和高度;可以换合页侧或开启方向。样式选*自动*时,外面用入户门、里面用房门。
|
||||
6. **楼梯与洞口。** *楼梯*工具在你拖拽的位置画楼梯;它沿长边方向走。可以选形状(直跑、四分之一转、带平台的 L 形、半转、带平台的 U 形、螺旋),左右转向,结构可选实心、梁式、中柱或悬挑,有无踢面和栏杆。踏步跟随楼层高度;表单会显示踏步高、踏步宽和步距,楼梯不舒适时会提示。*向下通往*让楼梯通向一个不必画出来的地下室。楼梯只会在踏步净空不足 2.2 m 的地方打通上层楼板;*楼梯与栏杆*包里的楼梯会切掉整个占地范围。*楼板洞口*可以切出其他任何洞(中庭、井道)。
|
||||
7. **底图。** *底图(平面图图片)*在平面图后面放一张图片;可以移动、缩放、旋转和摆正,按已知长度设定比例,然后照着描。
|
||||
8. **锁定。** *平面图*锁可以防止房间、墙体、门窗和室外区域被误移动;单件物体可以用*固定*锁住。
|
||||
|
||||
**旁边的 3D** 会在你绘制时把 3D 模型显示在平面图旁边。*设为本层/本房间的起始视角*会把当前 3D 相机记下来供以后使用。
|
||||
|
||||
## 面积与纸质平面图
|
||||
|
||||
房间表单会显示该房间的*居住面积*(按德国《居住面积条例》计算:净高 2 m 以上全计,1–2 m 之间计一半,低于 1 m 不计);车库、地下室和设备间按名称排除,也可以用*计入居住面积*手动决定。楼层表单会汇总该层和整栋房子的面积,*🖨️ 打印平面图 / PDF* 会以 1:100 打开每一层,带尺寸标注和面积表——可以直接打印,或在打印对话框里存为 PDF。
|
||||
|
||||
## 便签
|
||||
|
||||
在平面图上右键(或长按)某个位置,选 *✎ 在此添加便签*:输入文字,也可以设定到期日。便签在所属楼层的 3D 视图里显示为黄色标记(到期后变橙色);点一下显示全文,搜索也能找到。
|
||||
|
||||
## 检查平面图
|
||||
|
||||
编辑器侧边面板顶部的 *✓ 检查平面图* 会按楼层列出缺失或不对的地方:房间没有区域、区域没有房间、房间里的设备还没放置、房间重叠、门窗不在墙上,以及指向 Home Assistant 已不存在实体的关联。蓝色按钮一键修复(照常可以撤销),*显示*定位到对应位置。
|
||||
|
||||
## 布置家具
|
||||
|
||||
用*家具*工具,点一个房间,从右侧素材库里选。新家具会出现在房间中央。
|
||||
|
||||
- 素材库有分类(灯具、客厅、餐厅、厨房、卧室、卫浴、工作、车位),然后是家具包。搜索支持德语和英语名称、包名,以及任意顺序的多个词。
|
||||
- **家具工作室:** 素材库顶部的 *🛠️ 自己做一件*。选模板(柜子、搁架、灯、设备),用厘米输入尺寸,设置门、抽屉、层板、拉手、底座和颜色;正视图会跟随每一次修改。*放入平面图*会把它存进*自有家具*包(素材库里也能看到)。选中工作室做的家具,按*在工作室中修改*可以之后再改——平面图里的每一个副本都会采用新尺寸。
|
||||
- 拖动移动,拖角点改尺寸,用旋转手柄或直接输入位置、尺寸和角度。*镜像*左右翻转,*复制*复制一份,*固定*锁定,*移到楼层*把家具放到另一层的同一位置。
|
||||
- 带电气符号的家具可以关联设备(见下文)。灯是背后有光源的家具;灯具分类里有十二种。
|
||||
- **点位布置:** 房间的*点位*会按行列铺一组灯,全部跟随同一个光源,一步即可撤销。
|
||||
- **素材库:** 家具按类型排序(座椅、床、厨房……),带图片和尺寸;同一模型的多个尺寸是一张卡片,用尺寸标签切换。选中房间后,能放进去的排在前面(*适合……*),*显示所有房间*可以取消这个筛选。可按 ⚡ 可关联、💡 带光、🌳 室外筛选;★ 收藏和最近使用排在最上面。
|
||||
- **改尺寸:** 桌腿、扶手、台面、拉手保持真实尺寸,只有中间部分伸缩。
|
||||
- **墙面视图(▣):** 在房间的墙列表里,*墙面视图*会正面显示这面墙及其门窗、靠墙的家具;可以拖动,或直接输入距离和高度。
|
||||
- **灯开关与插座**(智能家居包,1~4 联):每个按键各自绑定实体;它控制的东西亮着时按键会发光。
|
||||
- **雨棚、窗帘、卷帘、投影幕、平移门:** *随……移动*选择它们跟随的 cover 实体。
|
||||
- **沙发:** 内置沙发的*形状*可选直排、L 形(可镜像成另一侧)或 U 形。
|
||||
- **相框**(*相框与画*包):在表单里上传照片、填图片地址(/local/…),或选一个图片/摄像头实体;设置卡纸以及照片是否铺满。
|
||||
- **仅当……时显示:** 任何家具都能等某个实体——圣诞树只在某个辅助实体开启时出现。多个状态用逗号分隔,也可以反过来写;编辑时始终显示。
|
||||
- **移动标记:** 靠得太近的设备标记可以在表单里推开或抬高;设备本身不动。
|
||||
- **坡屋顶下:** 阁楼房间里的吊灯和悬挂物有 *📐 升到坡屋顶底*。
|
||||
- **图层:** 在表单里标为*图层*的楼层(树木、装饰)会在 3D 视图顶部多一只眼睛,控制显示或隐藏。
|
||||
- **楼层电表:** 楼层表单里的*楼层电表(功率)*可以为该层单独指定一个功率传感器。数值显示在楼层标签上,本层视图里的房屋卡片会显示它及其占全屋的比例。
|
||||
|
||||
## 连接设备
|
||||
|
||||
在房间表单的**设备**区域会列出该区域内的 Home Assistant 设备。标签页有*本区域*、*其他区域*、*无区域*;可按名称搜索。每一行有:眼睛(在 3D 房间面板里隐藏)、*Aa*(自定义名称)、星标(加入房间面板但不放置)、*放置*。
|
||||
|
||||
- 放置一个灯就把变成灯具。*灯或开关*指定光源;*颜色和亮度来自*用于继电器控制灯泡的情况;*3D 发光强度*调整光晕;*切换前询问*防止误触;*3D 标记*决定它上方的标记。
|
||||
- 电器家具(电视、冰箱、洗衣机……)会自动在同一区域找到对应实体("自动")。电视会显示正在播放的应用的颜色和标题;*电视背后的光*设置或关闭氛围灯。功率传感器会显示瓦数。每件电器都在状态旁显示功率,运行时状态灯会亮。
|
||||
- **多灯泡灯具:** *灯泡 2、3……* 添加同一个灯具的夜灯或氛围环;主灯关着时灯具用它们发光。
|
||||
- **卷帘:** 窗户的*卷帘类型*可选室外卷帘、叶片随倾斜角变化的百叶、或室内卷帘;*第二卷帘*覆盖宽窗的右半部分;*收藏位置"My"*会在卷帘快捷菜单里加一个 **My** 按钮。
|
||||
- **3D 打印机与热泵:** 把家具包里的打印机或热泵关联到其设备的任意实体;实时卡片会显示打印状态(图片、进度、剩余时间、层数、温度、耗材——打印件会在热床上长出来)或热泵状态(模式、出水/回水、功率、热量、COP)。
|
||||
- **割草机器人:** *Garden 2* 里的割草机或充电座关联到 `lawn_mower` 后,割草时会在草坪上按路线行进。
|
||||
- **宠物:** 宠物的*房间传感器*(Bermuda、ESPresense)让它只在真实所在的房间走动。
|
||||
- 实体输入框可搜索:输入名称的一部分再选。NextFloor 从不因为关联而切换任何东西。
|
||||
- **车位**(素材库*车位*分类):*车辆*选择车型,*"车在位"传感器*决定何时显示,关联车的任意实体后,NextFloor 会在车的设备上找到电量、续航、插枪、门锁和空调。
|
||||
- **收藏与自定义按钮**(设置区域的*收藏*):场景、脚本、自动化、开关和按钮,用于中央菜单;自定义按钮可以打开仪表盘路径、实体详情、服务调用或 browser_mod 弹窗。*电台或播放列表*添加音箱预设。预设可以限定只在某些音箱上。**自定义告警**能把任意实体变成告警栏的一行(状态、多个状态用逗号、或 `<20` / `>80`),带文字、房间和颜色。**"今日"的日历**决定*今日*卡片的内容。
|
||||
|
||||
## 室外、屋顶与能源
|
||||
|
||||
- **室外:** 拖出草坪、露台、小径、车道、泳池、花坛、野地、绿篱、围栏或凉棚。*高度偏移*升降,*坡度*倾斜,*显示轮廓*切换发光边线,*从下方区域挖空*可以挖洞(池塘)。区域可以关联 Home Assistant 的*区域*(设备会归入室外,标记点可打开它);泳池、池塘和花坛可以在标记上显示水温和水泵。绿篱和围栏可以设置高度。庭院灯和路径灯来自素材库,会照亮这些区域。
|
||||
- **室外面板:** 只要有设备位于房间之外,3D 视图上方的栏里就会在楼层按钮旁出现 **🌳 室外** 标签。它会打开房屋视图,并显示一个类似房间面板的面板,列出花园里的设备。位于屋顶上方或某个房间上方但属于室外的设备(比如气象站),在表单里选*属于室外*:它就不再计入下方房间,并出现在室外面板里。仪表盘卡片上也会显示这个标签及其房间按钮。
|
||||
- **屋顶:** *屋顶*工具从房间生成屋顶段(形状、屋脊方向、檐口、坡度;拖动移动,角点改尺寸)。简单屋顶形状在设置里。屋顶窗放在屋顶段上,可以带卷帘和门磁。山墙、四坡和半四坡的屋顶段在屋脊两端可以有不同的收头,斜着接入大屋顶的翼楼会形成天沟。屋顶段可以用*转向(°)*绕中点旋转(比如斜向的翼楼)。半四坡的端头有滑杆,决定坡从多高开始。平屋顶上的光伏板可以装在东西向支架上,坡屋顶上的可以装在自己带倾角的支架上。
|
||||
- **门窗(补充):** 门可以关联智能锁(点门即上锁/解锁,未上锁时发光);窗可以选择窗台和窗台板,可以排除在雨水告警之外,位于地面以下时会自动加采光井。
|
||||
- **能源:** 清单会要求一块光伏板阵、一个电表和一个逆变器(电池和并网可选)。光伏板阵放在朝向最好的屋面段(会用指南针)、花园里或墙上;设置行列、横向/纵向。电表、逆变器、电池、充电桩都是在这里放置的设备;能量平衡的字段默认"自动",*从能源仪表盘接管*会读取你已有的配置。**线缆路径**画出线缆真实走向(光伏到逆变器、电池、逆变器和电网到房子、分表):*画路径*,在平面图上点几个点,穿过楼板时切换楼层,然后*完成*;功率流动会沿着路径而不是弧线,*显示为线缆*会把它画成看得见的线缆。*燃气表*和*水表*会把读数加入平衡。
|
||||
|
||||
## 指南针与地图
|
||||
|
||||
在**设置**里:
|
||||
|
||||
- **指南针。** 一个表盘显示北在哪(从上方顺时针的度数)。阳光、风和屋顶朝向都跟随它。如果南北反了,按 **交换南 ↔ 北**;绘制、屋顶段和光伏板阵都保持不变,只改方向。也支持四分之一转和任意角度。
|
||||
- **真实地图。** 默认关闭。打开后,编辑器里平面图下方、3D 里房屋下方会垫一张淡化的地图(OpenStreetMap,或用你自己的 `https://…/{z}/{x}/{y}` 瓦片地址)。它从 Home Assistant 的位置开始;设置可见度和细节,用箭头移动,直到房子落在它自己的地块上。浏览器直接从地图服务器加载瓦片,而且只在地图打开时加载。
|
||||
- 这里还能设置:墙厚、网格、长度单位(米或英尺英寸)、屋顶形状、天气实体与效果、雨水告警(可选你自己的雨量传感器)、停电传感器、阳光光斑,以及房屋背后的自定义背景(颜色或图片)。
|
||||
|
||||
## 使用 3D 视图
|
||||
|
||||
- **移动:** 拖动旋转,滚轮缩放,右键或双指平移。顶部有楼层和房间按钮,点击相机飞过去;*返回*或 Esc 向上一层。
|
||||
- **外观:** 画质 *自动 / 平板 / 高*;主题 *Neon / Blueprint / Day* 加一个强调色;标记 *无 / 重要 / 全部*。
|
||||
- **底部开关:** *高墙 / 剖切 / 斜切*、*实心*、*分开 / 叠放*、*屋顶保留*、热图(*温度、湿度、CO₂、数值*)、*房间名*、*天气*、*功率流动*、*卡片*。
|
||||
- **热图:** 除温度、湿度、CO₂ 外,热图选择器还有**发霉**(每个房间最冷墙面的风险)、**数值**(含通风提示)和 **Wi-Fi**(每个接入点的覆盖、它带的设备、离线的网络设备)。温度色阶在 5 月到 9 月用夏季刻度。
|
||||
- **墙:** *斜切*会斜着切墙,前面半高、后面全高,像玩偶屋;切面随相机转动。*实心*用不透明的彩色墙代替玻璃;在开敞房间里,相机前方的墙会降低。颜色在编辑器里设:*设置 → 外墙颜色 / 内墙颜色*,以及每个房间的*内墙颜色(本房间)*。*实心*和*斜切*可以同时开。
|
||||
- **房间面板:** 灯(开关、亮度、色温、色点、*全部关闭*)、卷帘、媒体、传感器、场景。点灯标记即开关,长按打开快捷菜单,卷帘打开自己的菜单。音箱和电视打开带播放/暂停、跳过、音量、输入源和预设的快捷菜单。场景排在最前;*+ 保存氛围*把房间当前的灯光存成一个氛围,可再次套用或(→)套用到别的房间。面板还会显示房间最近 24 小时的温度和什么时候该通风。
|
||||
- **中央菜单(星标):** 本层或全屋的所有灯和卷帘,加上你的收藏。⚙ 里的 *★ 菜单常开* 会让它在这台设备上保持展开且更大;自定义按钮在对应实体开启时发亮。**搜索(放大镜):** 输入设备或房间名,相机飞过去。
|
||||
- **告警:** 烟雾、燃气、CO、漏水、报警面板,以及下雨时开着的窗,会以横幅提示;点一下跳进对应房间。报警触发时会指出是哪个传感器触发的,并让那个房间脉动。
|
||||
- **小屏幕:** ⚙ 里的 🔍 让自适应视图更近;*🎥 保持相机*在切换楼层时保持方位、高度和距离。
|
||||
- **今日:** 选好日历后,右上角的卡片会列出今天的日程和今明两天要收的垃圾桶。
|
||||
|
||||
## 实时功能
|
||||
|
||||
内置且免费,只需要你已经有的设备。
|
||||
|
||||
- **房屋外的天气:** 雨、雪、冰雹、雨夹雪、雾、带阴影的云、闪电、日月,由天气实体和指南针驱动。晴朗的夜晚会出现星星;下雪时地面会积白,下雨时地面会变湿。
|
||||
- **阳光与阴影:** 房子按真实太阳投下阴影(设置里的*阳光与阴影*,在*平板*画质下默认关闭)。在视图选项(⚙)里打开 *☀ 时刻* 后,3D 视图下方的 **☀** 开关会打开一个今天各时刻的滑杆:阳光光斑、阴影、天空和 *Auto* 外观都跟随所选时刻;再点一下回到当前。
|
||||
- **功率流动:** 粒子从光伏板到逆变器、房子、电池和电网;一张玻璃卡片显示能量平衡和自给率。
|
||||
- **电视屏幕:** 正在播放的内容,用应用的颜色,加氛围灯。
|
||||
- **声音:** 每个正在播放的音箱或电视上方有一张带封面和控制的卡片;声波用应用的颜色;多房间组合用一条线连起来。
|
||||
- **汽车:** 车位上方一张卡片,带电量环、续航、充电功率、插枪状态、车内温度,以及门锁、空调和充电按钮。离家时会显示距家多远;显示出发时间,并对开着的门和后备箱告警;插在充电桩上时会挂在充电线上。
|
||||
- **能源:** 房屋卡片用柱状显示最近七天,并固定在打开的楼层上方;家用储能在正面显示电量。
|
||||
- **一键全关:** 房间面板里的 *⏻ 全部关闭*,或顶部栏里针对当前楼层的 *⏻*,会关掉灯、开关、风扇和媒体。*↶ 撤销*可以在十秒内全部恢复。
|
||||
- **扫地机器人:** 放在平面图里的 `robot_vacuum` 以前只会沿 3D 视图为它所在房间编造的路线行驶。当机器人所在的集成把地图挂到相机上(`vacuum_position`、`charger`、`path`,NarwalIntegration 的地图卡片就是这样),它显示的就是真相:机器人站在它报告的位置、朝向它报告的朝向,地面上留下它真正走过的轨迹;基站也画在机器人报告的位置。详见下方「扫地机器人上平面图」。
|
||||
|
||||
### 扫地机器人上平面图
|
||||
|
||||
相机是自动找到的——任何属性里带 `vacuum_position` 的 `camera` 都行,不需要选择。视图无法知道的是机器人的网格怎么落在你的平面图上:机器人按自己的格子计数,平面图按米。
|
||||
|
||||
把两个坐标系绑起来:在平面图上选中机器人的基站,按「用机器人现在的位置标定」,让机器人开出 1.5 m 以上,然后在平面图上点一下它此刻站的地方。基站是锚点——平面图知道它站在哪,相机知道它和机器人在网格里的坐标——所以点一次就够,其余(位姿、轨迹、基站)都会跟着算出来。
|
||||
|
||||
只有两个点无法区分镜像和旋转(两种都能让它们准确落位),所以当地图的 y 轴沿平面图 −z 方向增长时,要勾上「镜像」,否则房间会反过来。这两个点存在 `settings.vacuum_map` 里(`a`/`ga` 与 `b`/`gb`,外加 `mirror`);没有它,视图仍然画自己编的路线。
|
||||
|
||||
轨迹的精细程度取决于集成发多少点:把 `path` 裁到几百点的地图卡片只能给出粗糙轨迹,发得多的就细。
|
||||
|
||||
机器人回充十分钟后轨迹会淡出,地面上不会一直留着昨晚的清洁痕迹——已经扫完的记录留在时间线(⏪)里,它保存一整天的变化。\n\n这些属性名来自「扫地机地图卡」这套既成约定,不属于某个品牌:小米系地图提取器(Roborock、Viomi、Roidmi、Dreame、Ijai)、Roborock 集成、NarwalIntegration 都用它;机器人按毫米而不是按地图格子报坐标也一样能用——尺度由那两个点定。前提是集成要把它们作为属性暴露出来,有些需要你显式配置(地图提取器要在 `attributes:` 里列出 `vacuum_position` 和 `path`)。
|
||||
|
||||
## 四处走动
|
||||
|
||||
- **在屋里走(🚶):** 在打开的楼层上以视线高度行走。拖动环顾,W A S D 或方向键行走(Q/E 转向),滚轮走一步,平板上用右下角的摇杆。✕ 结束。
|
||||
- **时光回溯(⏪):** 从 Home Assistant 的历史回放最近 24 小时或 7 天:灯、卷帘、门窗、门锁、媒体、机器人。时间条标出每一次变化;按每秒 1 分钟、10 分钟或 1 小时播放,或拖到某个时刻。*实时*回到现在;在过去时不会切换任何设备。
|
||||
- **3D 锁定(🔒):** 在这台设备上关闭旋转、缩放和平移;点击设备仍然有效。
|
||||
- **时钟:** 顶栏的 🕒 会在视图一角放一个大时钟。
|
||||
- **外观 *Auto*:** 太阳在时用白天外观,日落后用霓虹。
|
||||
- **房屋卡片:** 屋顶上方的能源卡用曲线显示最近 24 小时(光伏为面积,用电为线)。
|
||||
|
||||
## 家务与宠物
|
||||
|
||||
- **垃圾桶**(花园包,四色,120 和 240 升):在表单里选*收运日期(传感器)*,例如来自 Waste Collection Schedule,或一个带天数或日期的传感器。前一天和当天垃圾桶会发光并显示标记。
|
||||
- **信箱:** 选*邮件传感器*(例如投信口的门磁);有信时发光。
|
||||
- **植物:** *土壤湿度(传感器)*和*低于多少算缺水(%)*;低于该值时植物发光。
|
||||
- **洗衣机、干衣机、洗碗机:** 如果设备在 Home Assistant 里有剩余时间传感器,标记上会显示"还剩 25 分钟"。
|
||||
- **宠物**(宠物包:猫、狗、兔子):在自己的房间里走动,绕过家具,中间会休息。
|
||||
|
||||
## 播报
|
||||
|
||||
*"开饭了!"* —— 该听到的房间就会听到。
|
||||
|
||||
- **从房间发:** 房间有音箱时,房间面板会有 **📢 播报** 区域。点一句预设,或自己输入;房间的音箱会念出来。自定义句子在*编辑器 → 设置*里(每行一句)。
|
||||
- **房间的音箱:** 优先用房间表单里指定的,其次是放在房间里的音箱,再其次是语音助手(Voice PE 等卫星设备)、Echo,或该区域的音箱。关着的电视或音箱不会被自动选中。语音卫星会用自己的提示音播报,Echo 以真正的播报方式(Alexa Devices 或 Alexa Media Player),支持的音乐箱(Sonos 等)会压低音乐并在之后继续播放;其他音箱通过 Home Assistant 的文字转语音朗读。
|
||||
- **按房间设静音时段:** 在房间表单里设,例如婴儿房 20:00–07:00。发往多个房间的播报会跳过该房间;只发给它的播报仍会通过。
|
||||
- **在屏幕上:** 每个打开的 NextFloor 页面(面板或卡片)都会在大字显示消息、播放柔和提示音并朗读——旧平板就变成了播报音箱。在 ⚙ → 📢 里给屏幕起个名字(比如*走廊*),就能单独给它发;也可以在那里取消勾选让它保持安静。浏览器只有在页面被点过一次之后才允许播放声音;在 Fully Kiosk 里打开 *Autoplay Audio*(Web Content Settings)。
|
||||
- **在自动化里:** 动作 **NextFloor:播报**。
|
||||
|
||||
```yaml
|
||||
action: nextfloor.announce
|
||||
data:
|
||||
message: "有人按门铃!"
|
||||
rooms: [Kitchen, Living room] # 按名称、房间 id 或区域 id;省略则发给所有带音箱的房间
|
||||
on_screens: true # 打开的 NextFloor 屏幕也会显示并朗读
|
||||
screens: [Hallway] # 可选:只发给这些屏幕
|
||||
```
|
||||
|
||||
`floor` 限定某一层,`on_speakers: false` 让音箱保持安静,`tts_entity` 指定声音。该动作会返回哪个音箱说了、哪些房间被跳过(以及原因)。
|
||||
|
||||
## 给自动化用的传感器
|
||||
|
||||
NextFloor 会向 Home Assistant 添加传感器:*开着的门窗*和*开着的灯*,有全屋和每层两种(在设备 *NextFloor* 下)。它们统计平面图里的门磁、车库门、设备标记和灯具,属性 `entities` 列出哪些开着——例如布防时发通知 `{{ state_attr('sensor.nextfloor_open_windows_and_doors', 'entities') | join(', ') }}`。
|
||||
|
||||
## 仪表盘卡片
|
||||
|
||||
在仪表盘的卡片对话框里添加 *NextFloor*(`type: custom:nextfloor-card`)。可视化编辑器可设置楼层、尺寸、外观、强调色、墙体、画质、下方楼层、标记、热图、功率流动、卡片、卡片内开关、房间按钮、中央星标、房间名、能源数值、点击看房间详情、全屏、楼楼层分开、屋顶淡出、告警、场景按钮和天气。较新的选项:`central_open`(星标菜单常开且更大)、`keep_camera`、`readable`(更高对比度和更大字号)、`zoom`(0.6–2.5)和 `today`(今日卡片,默认开)。YAML 里用与编辑器显示相同的名字。
|
||||
|
||||
## 墙上平板
|
||||
|
||||
卡片的展示模式部分会在空闲后回到起始视图,夜间调暗(按太阳或时间段,彩色效果休息),可以像屏保一样缓慢转动相机,还能显示跳转到其他仪表盘的按钮。Fire 平板一类的设备请用*平板*画质。
|
||||
|
||||
## 自己的模型与家具包
|
||||
|
||||
- **扩展标签 → 家具包:** 以文件形式导入自己的家具包,或直接粘贴 JSON,也可以删除自己导入的包。格式见 [packs.md](packs.md)(德语)。
|
||||
- **扩展标签:** 为车辆位置上传自己的 `.glb` 模型。浏览器会把它转正、减重、去掉贴图并标记漆面;文件保存在你的 Home Assistant 上(仅管理员,最大 12 MB)。见 [models.md](models.md)。
|
||||
- **家具包**随集成自带(41 个包、近 800 个模型),无需配置。自己的包是 JSON 文件,格式见 [packs.md](packs.md)。演示站有一个模型展厅,可以实时查看每个模型。
|
||||
|
||||
## 备份
|
||||
|
||||
*🔗 分享视图*会把房子保存成一个小 HTML 文件,在没有 Home Assistant 的任意浏览器里都能打开(通过在线演示,不含设备和实体)——用来给别人看。
|
||||
|
||||
*📌 保存当前状态……*用名字保存平面图(自动恢复点被清理时,命名的版本会保留)。恢复点上的*对比*会按楼层列出它与当前平面图的差异。
|
||||
|
||||
**Sweet Home 3D** 的平面图(.sh3d,5.3 及更新版本)可以在*备份 → 导入*里直接载入:层级变成楼层,房间变成房间,门窗落在它们各自的墙上,独立墙保持独立。家具不会被导入。CAD 导出的 **DXF** 图纸(.dxf)同理:闭合多段线变成房间,线条变成独立墙。
|
||||
|
||||
编辑器*备份*下方:平面图的**导出** / **导入**、**作为模板分享**(不含个人设备数据)、**完整备份**(平面图、图片、家具包打成一个文件)和**恢复完整备份**。做大改动前先备份。
|
||||
|
||||
平面图也可以手写、从其他程序转换,或让 AI 照着你的户型图生成:格式说明和现成的提示词在 [plan-format.md](plan-format.md)。
|
||||
|
||||
## 疑难排查
|
||||
|
||||
- **房间里缺设备:** 房间需要设置区域,且设备要属于它(设备或实体)。否则用*其他区域*或*无区域*。
|
||||
- **升级后面板还是旧的:** 刷新标签页;伴侣 App 里重置前端缓存并完全关闭 App。重启 Home Assistant 对这种情况没用。
|
||||
- **家具显示成灰盒子:** 它的家具包没装;重新导入即可恢复。
|
||||
- **汽车不显示:** 检查*"车在位"传感器*;没有传感器时会一直显示。
|
||||
- **光伏板落到屋顶的另一侧:** 检查设置里的指南针。
|
||||
- **平板卡顿:** 画质调*平板*,关掉天气和功率流动。
|
||||
- **保存失败:** 只有管理员能保存;提示会指出 Home Assistant 拒绝的字段。
|
||||
|
||||
问题与建议:[GitHub issues 与 discussions](https://github.com/therealMRBK/NextFloor)。
|
||||
@@ -0,0 +1,72 @@
|
||||
# Your own 3D models
|
||||
|
||||
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.
|
||||
@@ -0,0 +1,102 @@
|
||||
# Möbel-Packs
|
||||
|
||||
Möbel-Packs bringen zusätzliche Möbel in NextFloor. Sie werden wie die eingebauten Möbel aus
|
||||
Quadern, Zylindern und Lofts gebaut und laufen deshalb genauso flüssig auf schwachen Tablets.
|
||||
|
||||
Ein Pack ist eine einfache JSON-Datei. Jeder kann eigene Packs bauen, weitergeben und importieren.
|
||||
|
||||
## Möbel-Baukasten und Community-Möbel
|
||||
|
||||
Am einfachsten baust du Möbel im **[Möbel-Baukasten](https://therealmrbk.github.io/NextFloor/builder/)** im Browser:
|
||||
Teile hinzufügen, Maße in Zentimetern eintragen, Farben wählen – die 3D-Vorschau zeichnet das Möbel genau so wie
|
||||
NextFloor. Der Baukasten prüft das Pack wie der Import, speichert es als Datei und teilt es mit einem Knopf im
|
||||
**Community-Store** ([NextFloor-Plugins](https://github.com/therealMRBK/NextFloor-Plugins#community-furniture)). Geteilte
|
||||
Packs stehen danach in NextFloor unter **Erweiterungen → Community-Möbel** zum Installieren bereit.
|
||||
|
||||
## Mitgelieferte Packs
|
||||
|
||||
26 Packs kommen mit der Integration (`custom_components/nextfloor/packs/nextfloor.*.json`) und sind
|
||||
immer da; Übersicht in der [Anleitung](anleitung.md#71-mitgelieferte-packs). Sie werden mit
|
||||
`python3 tools/build_packs.py` aus den Definitionen in `tools/` erzeugt (`build_packs.py` und die
|
||||
`area_*.py`-Module); nach einer Änderung dort das Skript laufen lassen, mit `python3 tools/check_packs.py`
|
||||
prüfen und die JSON-Dateien mit committen. Mitgelieferte Packs lassen sich nicht
|
||||
entfernen, und ein importiertes Pack darf nicht dieselbe ID haben.
|
||||
|
||||
## Eigenes Pack
|
||||
|
||||
1. Pack schreiben (JSON, Format unten). Die `id` sollte mit deinem Namen beginnen (`meinname.kueche`),
|
||||
damit sie mit niemandem kollidiert; `nextfloor.*` ist für die mitgelieferten Packs reserviert.
|
||||
2. Import in Home Assistant unter **Erweiterungen → Möbel-Packs**: mit **Pack-Dateien importieren …**
|
||||
(mehrere Dateien auf einmal gehen) oder das JSON ins Textfeld einfügen und **JSON importieren**.
|
||||
Dort lassen sich eigene Packs auch wieder entfernen.
|
||||
3. Eine neuere Version mit derselben `id` ersetzt die alte; Möbel im Plan bleiben erhalten. Wird ein
|
||||
Pack entfernt, bleiben seine Möbel als einfache Kästen im Plan und kommen mit einem erneuten Import
|
||||
zurück.
|
||||
|
||||
## Format
|
||||
|
||||
```json
|
||||
{
|
||||
"format": "nfpack",
|
||||
"version": 1,
|
||||
"id": "meinname.kueche",
|
||||
"name": "Küchen-Pack",
|
||||
"publisher": "Mein 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`: Standardgröße in Metern (Breite, Tiefe, Höhe). Im Plan lässt sich jedes Möbel danach frei
|
||||
skalieren. Dabei behalten Teile bis 22 cm vor jedem Ende ihre echte Größe und ihren Abstand zum Rand
|
||||
(Armlehnen, Beine, Platten, Griffe), nur die Mitte wird gestreckt. `"stretch": true` am Möbel lässt
|
||||
stattdessen alle Teile gleichmäßig mitwachsen; Fahrzeuge wachsen immer gleichmäßig.
|
||||
- `parts` (max. 60): `box`, `cyl`, `loft` oder `sweep`. Alle Maße sind **Anteile der Möbelgröße**: `x`/`z`
|
||||
Mitte (−0,5 … 0,5, vorne ist +z), `w`/`d` Breite/Tiefe (0 … 1), `y` Unterkante und `h` Höhe (0 … 1
|
||||
der Höhe). Ein Zylinder hat den kleineren Wert von `w` und `d` als Durchmesser; mit `axis: "x"` oder
|
||||
`"z"` liegt er (Räder, Rollen – die Länge ist die Ausdehnung entlang der Achse, der Durchmesser der
|
||||
kleinere Wert aus Querausdehnung und `h`). Ein `loft` ist ein Quader, dessen Oberseite ein anderes
|
||||
Rechteck ist (`tx`/`tz` Mitte, `tw`/`td` Größe; Standard wie unten) – für schräge Flächen wie
|
||||
Motorhauben, Windschutzscheiben oder Lampenschirme.
|
||||
Ein Teil mit `rot` (Grad) ist um seine eigene Mitte um die Hochachse gedreht – für Wendeltreppen
|
||||
oder diagonale Streben; ein schmaler `loft` mit versetzter Oberseite ergibt eine schräge Stange
|
||||
(Handlauf).
|
||||
- `sweep` (glatter Körper): Querschnitte entlang der Tiefe (z), zwischen denen die Haut gespannt wird – für alles
|
||||
Runde wie Autos, Boote oder Kotflügel. `stations` ist eine Liste von `[z, unten, oben, breite]`: `z` Mitte des
|
||||
Querschnitts (−0,5 … 0,5), `unten` und `oben` als Anteil der Höhe, `breite` als Anteil der Breite. `x` verschiebt den
|
||||
Körper seitlich. `exp` formt den Querschnitt (2 = Ellipse, höhere Werte werden kantiger, Standard 2,6) und `n` ist die
|
||||
Zahl der Punkte rundherum (6 … 32, Standard 16). Die Fahrzeuge des Packs „Fahrzeuge“ sind so gebaut, siehe
|
||||
`tools/build_packs.py`.
|
||||
- `color`: `#rrggbb` oder eine Rolle der eingebauten Palette (`body`, `fabric`, `cushion`, `wood`,
|
||||
`white`, `metal`, `dark`, `glass`, `plant`, `pot`, `accent`) – Rollen passen zum Look. `top` setzt
|
||||
eine eigene Farbe für die Oberseite, `edges` zeichnet leuchtende Kanten (`true`: dezent blau,
|
||||
`"glow"`: cyan wie die Wände, `"faint"`: sehr zart).
|
||||
- `symbol` (optional, max. 40): Draufsicht im Plan aus `rect` (`fill` für gefüllt), `circle` (`r` als
|
||||
Anteil der kleineren Seite) und `line` (`x1`, `z1`, `x2`, `z2`). Ohne Symbol zeichnet der Plan die
|
||||
Teile von oben.
|
||||
- `electric`: das Möbel lässt sich mit einem Schalter und Leistungssensor verknüpfen.
|
||||
- `climate`: kennzeichnet das Möbel als Klimagerät (z. B. Klimaanlage oder Wärmepumpe).
|
||||
Es lässt sich mit einer `climate`-Entität und optional einem Leistungssensor verknüpfen.
|
||||
Die automatische Zuordnung sucht passende `climate`-Entitäten im
|
||||
Home-Assistant-Bereich des Raums. Diese Option fügt noch keine 3D-Animation hinzu.
|
||||
- `mount`: wo das Möbel sitzt – `floor` (Standard), `surface` (auf dem Möbel darunter, z. B.
|
||||
Kaffeemaschine auf der Arbeitsplatte), `wall` (Unterkante bei `wall_y` Metern, z. B. Wallbox) oder
|
||||
`ceiling` (hängt von der Decke, z. B. Dunstabzug, Pendelleuchten).
|
||||
- `surface`: die Oberseite trägt andere Möbel (Tisch, Kücheninsel, Werkbank).
|
||||
- `hole`: eine Treppe – reicht sie bis zur Etage darüber, schneidet sie dort die Treppenöffnung in den
|
||||
Boden (wie die eingebaute Treppe); die Stufen steigen von der Vorderkante (+z) nach hinten an.
|
||||
- `light`: das Möbel ist eine Leuchte und wird mit einem Licht (oder Schalter) verknüpft. Der Wert sagt,
|
||||
wie das Licht den Raum ausleuchtet (`ceiling`, `pendant`, `floor`, `table`, `wall`, `spot`, `garden` …).
|
||||
Teile mit `"glow": true` leuchten in Farbe und Helligkeit des Lichts.
|
||||
- `screen`: ein Teil mit `"screen": true` ist ein Bildschirm (Fernseher, Monitor). Das Möbel lässt sich
|
||||
dann mit einem Media Player verknüpfen; die Vorderseite (+z) zeigt die Farbe der laufenden App und
|
||||
ihr Bild, wie die eingebauten Fernseher.
|
||||
@@ -0,0 +1,103 @@
|
||||
# Plan format (and how to let an AI draw your 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.
|
||||
@@ -0,0 +1,139 @@
|
||||
# Writing NextFloor plugins
|
||||
|
||||
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({...})`.
|
||||
|
||||
> **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`](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.
|
||||