first push

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

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
MIT License
Copyright (c) 2026 Mastershort
Copyright (c) 2026 therealMRBK
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,76 @@
# Third-party notices
NextFloor ships the following third-party software inside its bundles
(`custom_components/nextfloor/frontend/`). Their licence texts are reproduced here, as they require.
NextFloor itself is released under the MIT licence (see `LICENSE`).
## three.js 0.186.1 (MIT)
<https://threejs.org>
```
The MIT License
Copyright © 2010-2026 three.js authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```
## Lit 3.3.3 (BSD-3-Clause)
Includes `lit-html` 3.3.3, `lit-element` 4.2.2 and `@lit/reactive-element` 2.1.2, all by Google LLC under the same licence.
<https://lit.dev>
```
BSD 3-Clause License
Copyright (c) 2017 Google LLC. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
```
## Build and development tools
TypeScript (Apache-2.0), esbuild (MIT) and puppeteer-core (Apache-2.0) are used to build and test the project.
They are not part of what is distributed.
+115
View File
@@ -0,0 +1,115 @@
"""NextFloor: draw your home in Home Assistant and control it in 3D."""
from __future__ import annotations
import hashlib
from pathlib import Path
from homeassistant.components import frontend, panel_custom
from homeassistant.components.http import StaticPathConfig
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.typing import ConfigType
from homeassistant.loader import async_get_integration
from .announce import async_register_announce
from .card_resource import async_remove_card_resource, async_schedule_card_resource
from .const import (
DOMAIN,
MAIN_BUNDLE,
PANEL_COMPONENT,
PANEL_ICON,
PANEL_TITLE,
PANEL_URL_PATH,
URL_BASE,
)
from .meshes import async_register_mesh_view
from .storage import NextFloorData
from .store_notice import async_notify_official_store
from .websocket import async_register_commands
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
_STATIC_REGISTERED = f"{DOMAIN}_static_registered"
# sensors from the plan: open windows and doors, lights on (per floor and for the house)
PLATFORMS = [Platform.SENSOR]
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Register the websocket commands and the actions once."""
async_register_commands(hass)
async_register_mesh_view(hass)
async_register_announce(hass)
return True
_MAIN_URL = f"{DOMAIN}_main_url"
def _bundle_hash() -> str:
"""A short hash of the main bundle: a rebuilt bundle gets a new URL even when the version stays."""
path = Path(__file__).parent / "frontend" / MAIN_BUNDLE
try:
return hashlib.sha256(path.read_bytes()).hexdigest()[:10]
except OSError:
return "0"
async def _async_main_url(hass: HomeAssistant) -> str:
# computed once per run, so adding and removing the script use the same URL
if url := hass.data.get(_MAIN_URL):
return url
integration = await async_get_integration(hass, DOMAIN)
digest = await hass.async_add_executor_job(_bundle_hash)
url = f"{URL_BASE}/{MAIN_BUNDLE}?v={integration.version}-{digest}"
hass.data[_MAIN_URL] = url
return url
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Load the stores and register the frontend (panel and card)."""
data = NextFloorData(hass)
await data.async_load()
hass.data[DOMAIN] = data
# static paths cannot be unregistered, so they are registered once per run
if not hass.data.get(_STATIC_REGISTERED):
await hass.http.async_register_static_paths(
[StaticPathConfig(URL_BASE, str(Path(__file__).parent / "frontend"), cache_headers=False)]
)
hass.data[_STATIC_REGISTERED] = True
url = await _async_main_url(hass)
frontend.add_extra_js_url(hass, url)
# and as a dashboard resource, so a dashboard never draws the card before its script is there (#252)
async_schedule_card_resource(hass, url)
await panel_custom.async_register_panel(
hass,
frontend_url_path=PANEL_URL_PATH,
webcomponent_name=PANEL_COMPONENT,
sidebar_title=PANEL_TITLE,
sidebar_icon=PANEL_ICON,
module_url=url,
require_admin=False,
config={},
)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
await async_notify_official_store(hass, entry)
return True
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Remove panel, card and sensors."""
await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
frontend.async_remove_panel(hass, PANEL_URL_PATH)
frontend.remove_extra_js_url(hass, await _async_main_url(hass))
hass.data.pop(DOMAIN, None)
return True
async def async_remove_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""The plan, its pictures and packs stay in .storage when the integration is removed: they are the
user's work, and removing and re-adding the integration must never cost it."""
await async_remove_card_resource(hass)
+347
View File
@@ -0,0 +1,347 @@
"""Announcements: the action nextfloor.announce speaks a message in rooms of the plan and on the open NextFloor screens.
Each room speaks through its own speaker: the one chosen for the room in the plan, else one placed in the room, else
one of the room's area. A voice satellite announces with its chime, an Echo through its announce entity (Alexa Devices)
or as an announcement (Alexa Media Player), a speaker that can announce (Sonos and others) lowers its music for it, any
other speaker plays it through text-to-speech. TVs and speakers that are off are never picked by themselves. Rooms
with a quiet time are left out while it runs, unless the announcement names only that room.
"""
from __future__ import annotations
from datetime import time as dtime
import logging
from typing import Any
from homeassistant.core import HomeAssistant, ServiceCall, SupportsResponse, callback
from homeassistant.exceptions import ServiceValidationError
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers import device_registry as dr
from homeassistant.helpers import entity_registry as er
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.util import dt as dt_util
import voluptuous as vol
from .const import DOMAIN, SIGNAL_ANNOUNCE
_LOGGER = logging.getLogger(__name__)
SERVICE_ANNOUNCE = "announce"
ANNOUNCE_SCHEMA = vol.Schema(
{
vol.Required("message"): vol.All(cv.string, vol.Length(min=1, max=500)),
# rooms by name, room id or area id; none and no floor: every room with a speaker
vol.Optional("rooms"): vol.All(cv.ensure_list, [cv.string]),
vol.Optional("floor"): cv.string,
vol.Optional("on_speakers", default=True): cv.boolean,
vol.Optional("on_screens", default=True): cv.boolean,
# only the NextFloor screens with these names (set on each screen); none: every screen
vol.Optional("screens"): vol.All(cv.ensure_list, [cv.string]),
# a text-to-speech entity instead of the one chosen in the plan (or the first one)
vol.Optional("tts_entity"): cv.entity_id,
}
)
_TV_CLASSES = {"tv"}
# MediaPlayerEntityFeature.MEDIA_ANNOUNCE: the speaker lowers what it plays for the announcement and carries on after
_MEDIA_ANNOUNCE = 1048576
class NoSpeech(Exception):
"""A speaker that needs text-to-speech while there is no text-to-speech entity."""
def _point_in(points: list[list[float]], x: float, z: float) -> bool:
"""Ray casting: whether (x, z) lies inside the polygon."""
inside = False
j = len(points) - 1
for i, (xi, zi) in enumerate(points):
xj, zj = points[j]
if (zi > z) != (zj > z) and x < (xj - xi) * (z - zi) / ((zj - zi) or 1e-12) + xi:
inside = not inside
j = i
return inside
def _parse_time(text: Any) -> dtime | None:
try:
hours, minutes = str(text).split(":")[:2]
return dtime(int(hours), int(minutes))
except (ValueError, TypeError):
return None
def in_quiet_time(room: dict[str, Any], now: dtime) -> bool:
"""Whether the room's quiet time runs at `now` (a time span over midnight works too)."""
quiet = room.get("announce_quiet") or {}
start, end = _parse_time(quiet.get("from")), _parse_time(quiet.get("to"))
if start is None or end is None or start == end:
return False
return start <= now < end if start < end else now >= start or now < end
def _matches(room: dict[str, Any], wanted: str) -> bool:
key = wanted.strip().casefold()
return key in (
str(room.get("id", "")).casefold(),
str(room.get("area_id") or "").casefold(),
str(room.get("name", "")).strip().casefold(),
)
def target_rooms(
building: dict[str, Any], rooms: list[str] | None, floor: str | None
) -> tuple[list[tuple[dict, dict]], bool]:
"""The (floor, room) pairs an announcement goes to, and whether exactly the rooms asked for were named."""
pairs = [(f, r) for f in building.get("floors", []) for r in f.get("rooms", [])]
if floor:
key = floor.strip().casefold()
pairs = [
(f, r)
for f, r in pairs
if key
in (
str(f.get("id", "")).casefold(),
str(f.get("name", "")).strip().casefold(),
str(f.get("ha_floor") or "").casefold(),
)
]
if rooms:
pairs = [(f, r) for f, r in pairs if any(_matches(r, w) for w in rooms)]
return pairs, True
return pairs, False
def _area_entities(hass: HomeAssistant, area_id: str | None) -> list[str]:
if not area_id:
return []
ent_reg = er.async_get(hass)
dev_reg = dr.async_get(hass)
found = []
for entry in ent_reg.entities.values():
if entry.disabled_by or entry.hidden_by:
continue
area = entry.area_id
if area is None and entry.device_id and (device := dev_reg.async_get(entry.device_id)):
area = device.area_id
if area == area_id:
found.append(entry.entity_id)
return found
def _is_echo_announce(hass: HomeAssistant, entity_id: str) -> bool:
"""The announce entity of an Echo (Alexa Devices: a notify entity whose unique id ends in "-announce")."""
if not entity_id.startswith("notify."):
return False
entry = er.async_get(hass).async_get(entity_id)
return entry is not None and str(entry.unique_id).endswith("-announce")
def _usable_speaker(hass: HomeAssistant, entity_id: str) -> bool:
"""A speaker that may be picked by itself: no TV, not off or gone. An Echo's announce entity has no state to ask."""
st = hass.states.get(entity_id)
if st is None or st.state == "unavailable":
return False
if entity_id.startswith("notify."):
return _is_echo_announce(hass, entity_id)
if st.state in ("off", "unknown"):
return False
return st.attributes.get("device_class") not in _TV_CLASSES
def room_speaker(hass: HomeAssistant, floor: dict[str, Any], room: dict[str, Any]) -> str | None:
"""A room's speaker: chosen in the plan, else placed in the room, else a voice satellite or speaker of its area."""
chosen = room.get("announce_speaker")
if chosen == "none":
return None
if chosen:
return chosen
points = room.get("points") or []
if len(points) >= 3:
placed = [
p["entity_id"]
for p in floor.get("placements", [])
if str(p.get("entity_id", "")).startswith(("media_player.", "assist_satellite."))
and _point_in(points, float(p.get("x", 0)), float(p.get("z", 0)))
]
placed += [
f["entity"]
for f in floor.get("furniture", [])
if str(f.get("entity") or "").startswith(("media_player.", "assist_satellite."))
and _point_in(points, float(f.get("x", 0)), float(f.get("z", 0)))
]
for entity_id in placed:
if _usable_speaker(hass, entity_id):
return entity_id
area = _area_entities(hass, room.get("area_id"))
for domain in ("assist_satellite.", "notify.", "media_player."):
for entity_id in sorted(e for e in area if e.startswith(domain)):
if _usable_speaker(hass, entity_id):
return entity_id
return None
def _announce_entity(hass: HomeAssistant, media_player: str) -> str | None:
"""The announce entity of the same device (an Echo of the Alexa Devices integration)."""
ent_reg = er.async_get(hass)
entry = ent_reg.async_get(media_player)
if entry is None or entry.device_id is None:
return None
for other in er.async_entries_for_device(ent_reg, entry.device_id):
if other.domain == "notify" and str(other.unique_id).endswith("-announce"):
return other.entity_id
return None
def _platform(hass: HomeAssistant, entity_id: str) -> str | None:
entry = er.async_get(hass).async_get(entity_id)
return entry.platform if entry else None
def _tts_entity(hass: HomeAssistant, building: dict[str, Any], wanted: str | None) -> str | None:
"""The text-to-speech entity: asked for, chosen in the plan, else the first one."""
for candidate in (wanted, (building.get("settings") or {}).get("announce_tts")):
if candidate and candidate != "none" and hass.states.get(candidate):
return candidate
entities = sorted(hass.states.async_entity_ids("tts"))
return entities[0] if entities else None
async def _speak(hass: HomeAssistant, speaker: str, message: str, tts: str | None) -> str:
"""Say the message on one speaker; returns how (for the response). Raises NoSpeech when it needs text-to-speech."""
if speaker.startswith("assist_satellite."):
await hass.services.async_call(
"assist_satellite", "announce", {"entity_id": speaker, "message": message}, blocking=True
)
return "satellite"
announce = speaker if speaker.startswith("notify.") else _announce_entity(hass, speaker)
if announce:
await hass.services.async_call(
"notify", "send_message", {"entity_id": announce, "message": message}, blocking=True
)
return "echo"
if _platform(hass, speaker) == "alexa_media" and hass.services.has_service("notify", "alexa_media"):
await hass.services.async_call(
"notify",
"alexa_media",
{"message": message, "target": [speaker], "data": {"type": "announce"}},
blocking=True,
)
return "echo"
if tts is None:
raise NoSpeech
st = hass.states.get(speaker)
features = int(st.attributes.get("supported_features", 0)) if st else 0
if features & _MEDIA_ANNOUNCE:
media_id = tts_media_id(hass, message, tts)
await hass.services.async_call(
"media_player",
"play_media",
{"entity_id": speaker, "media_content_id": media_id, "media_content_type": "music", "announce": True},
blocking=True,
)
return "announce"
await hass.services.async_call(
"tts",
"speak",
{"entity_id": tts, "media_player_entity_id": speaker, "message": message, "cache": True},
blocking=True,
)
return "tts"
def tts_media_id(hass: HomeAssistant, message: str, tts: str) -> str:
"""The media source id of the spoken message (text-to-speech is loaded only when it is needed)."""
from homeassistant.components.tts import generate_media_source_id
return generate_media_source_id(hass, message, engine=tts, cache=True)
async def screen_audio(hass: HomeAssistant, tts: str | None, message: str) -> str | None:
"""A URL with the spoken message for the screens (None: they speak with the browser's own voice)."""
if tts is None:
return None
try:
from homeassistant.components import media_source
resolved = await media_source.async_resolve_media(hass, tts_media_id(hass, message, tts), None)
except Exception as err: # any engine error just leaves the screens to the browser's voice
_LOGGER.debug("No text-to-speech audio for the screens: %s", err)
return None
return resolved.url
async def async_announce(hass: HomeAssistant, building: dict[str, Any], data: dict[str, Any]) -> dict[str, Any]:
"""Speak an announcement on the rooms' speakers and send it to the NextFloor screens."""
message: str = data["message"]
tts = _tts_entity(hass, building, data.get("tts_entity"))
spoken: dict[str, str] = {}
skipped: dict[str, str] = {}
if data.get("on_speakers", True):
pairs, named = target_rooms(building, data.get("rooms"), data.get("floor"))
if data.get("rooms") and not pairs:
raise ServiceValidationError(translation_domain=DOMAIN, translation_key="no_rooms")
now = dt_util.now().time()
done: set[str] = set()
for floor, room in pairs:
name = room.get("name") or room.get("id", "")
# a quiet room only hears what is meant for it alone
if in_quiet_time(room, now) and not (named and len(pairs) == 1):
skipped[name] = "quiet"
continue
speaker = room_speaker(hass, floor, room)
if speaker is None:
if named:
skipped[name] = "no_speaker"
continue
if speaker in done:
continue
done.add(speaker)
try:
spoken[speaker] = await _speak(hass, speaker, message, tts)
except NoSpeech:
skipped[name] = "no_tts"
except Exception as err: # one speaker failing must not stop the others
_LOGGER.warning("Announcement on %s failed: %s", speaker, err)
skipped[name] = "failed"
on_screens = bool(data.get("on_screens", True))
if on_screens:
audio = await screen_audio(hass, tts, message)
payload = {
"message": message,
"screens": data.get("screens") or [],
"audio": audio,
"time": dt_util.utcnow().isoformat(),
}
async_dispatcher_send(hass, SIGNAL_ANNOUNCE, payload)
# nobody heard it because no speaker could talk: say why instead of failing silently
if not spoken and not on_screens and skipped and all(why == "no_tts" for why in skipped.values()):
raise ServiceValidationError(translation_domain=DOMAIN, translation_key="no_tts")
return {"speakers": spoken, "skipped": skipped, "screens": on_screens}
RELOAD_SCHEMA = vol.Schema({vol.Optional("template"): vol.All(cv.string, vol.Length(max=64))})
@callback
def async_register_announce(hass: HomeAssistant) -> None:
"""Register the actions nextfloor.announce and nextfloor.reload_screens."""
async def reload_screens(call: ServiceCall) -> None:
# the open screens load their page again, some seconds apart; with a template only the cards that use it
payload = {"reload": True, "template": call.data.get("template"), "time": dt_util.utcnow().isoformat()}
async_dispatcher_send(hass, SIGNAL_ANNOUNCE, payload)
hass.services.async_register(DOMAIN, "reload_screens", reload_screens, schema=RELOAD_SCHEMA)
async def handle(call: ServiceCall) -> dict[str, Any] | None:
data = hass.data.get(DOMAIN)
if data is None:
raise ServiceValidationError(translation_domain=DOMAIN, translation_key="not_loaded")
result = await async_announce(hass, data.building, call.data)
return result if call.return_response else None
hass.services.async_register(
DOMAIN, SERVICE_ANNOUNCE, handle, schema=ANNOUNCE_SCHEMA, supports_response=SupportsResponse.OPTIONAL
)
+167
View File
@@ -0,0 +1,167 @@
"""Locate a Bluetooth tag by room, learned by walking.
Every Bluetooth scanner Home Assistant knows (ESPHome Bluetooth proxies, Shelly devices with Bluetooth scanning on, the
host's own adapters) hears a tag with a different signal strength. While you walk from room to room with the tag, the
editor records that pattern per room (a fingerprint). Later the current pattern is compared with the fingerprints and
the nearest room wins. Nothing here talks to the tag; it only reads what the scanners already report.
"""
from __future__ import annotations
from collections.abc import Iterable, Mapping
import math
import statistics
from typing import Any
from homeassistant.core import HomeAssistant
# a scanner that does not hear the tag counts as this (dBm); differences are capped, so one odd scanner cannot decide
MISSING = -100.0
MAX_DIFF = 40.0
# above this distance (RMS over the scanners, in dB) no room is a good match
UNKNOWN_DISTANCE = 18.0
# a new room has to win this many readings in a row before the sensor switches
SWITCH_VOTES = 3
Reading = Mapping[str, float]
def distance(a: Reading, b: Reading) -> float:
"""The distance between two signal patterns: RMS of the per-scanner differences in dB."""
keys = set(a) | set(b)
if not keys:
return math.inf
total = sum(min(abs(a.get(k, MISSING) - b.get(k, MISSING)), MAX_DIFF) ** 2 for k in keys)
return math.sqrt(total / len(keys))
def locate(prints: Iterable[Mapping[str, Any]], reading: Reading) -> tuple[str | None, float, float]:
"""The room that fits a reading best: (room id, its distance in dB, how far the runner-up is behind).
`prints` are {"room": id, "rssi": {scanner: dBm}}; a room may have several (one per spot you recorded there).
No room is returned when nothing is heard or no fingerprint is close enough.
"""
if not reading:
return None, math.inf, 0.0
best: dict[str, float] = {}
for fp in prints:
d = distance(fp.get("rssi") or {}, reading)
room = fp.get("room")
if isinstance(room, str) and d < best.get(room, math.inf):
best[room] = d
if not best:
return None, math.inf, 0.0
ranked = sorted(best.items(), key=lambda kv: kv[1])
room, dist = ranked[0]
if dist > UNKNOWN_DISTANCE:
return None, dist, 0.0
margin = ranked[1][1] - dist if len(ranked) > 1 else UNKNOWN_DISTANCE
return room, dist, margin
def median_reading(samples: Iterable[Reading]) -> dict[str, float]:
"""The median signal per scanner over several samples. A scanner that missed the tag in most samples is left out."""
samples = list(samples)
if not samples:
return {}
out: dict[str, float] = {}
for key in {k for s in samples for k in s}:
values = [s[key] for s in samples if key in s]
if len(values) * 2 > len(samples):
out[key] = round(statistics.median(values), 1)
return out
class Smoother:
"""Keeps the answer from flickering: a different room has to win several readings in a row."""
def __init__(self, votes: int = SWITCH_VOTES) -> None:
self.votes = votes
self.room: str | None = None
self._candidate: str | None = None
self._count = 0
def update(self, room: str | None) -> str | None:
"""Take one reading's room and return the room to show."""
if room == self.room:
self._candidate, self._count = None, 0
return self.room
if room == self._candidate:
self._count += 1
else:
self._candidate, self._count = room, 1
if self._count >= self.votes:
self.room, self._candidate, self._count = room, None, 0
return self.room
def smooth_reading(history: list[dict[str, float]], reading: Reading, size: int = 5) -> dict[str, float]:
"""Adds a reading to the history (newest last, `size` kept) and returns the median over it."""
history.append(dict(reading))
del history[:-size]
return median_reading(history)
def rooms_of(building: Mapping[str, Any]) -> dict[str, dict[str, str]]:
"""Room id -> {"name", "floor"} of every room of the plan."""
out: dict[str, dict[str, str]] = {}
for floor in building.get("floors", []):
for room in floor.get("rooms", []):
out[room["id"]] = {"name": room.get("name") or room["id"], "floor": floor.get("name") or floor["id"]}
return out
def tags_of(building: Mapping[str, Any]) -> list[dict[str, Any]]:
"""The Bluetooth tags set up in the plan."""
ble = building.get("settings", {}).get("ble") or {}
return list(ble.get("tags") or [])
# --- Home Assistant side ---------------------------------------------------------------------------------------------
def available(hass: HomeAssistant) -> bool:
"""Whether Home Assistant's Bluetooth integration is running."""
return "bluetooth" in hass.config.components
def tag_address(hass: HomeAssistant, tag: Mapping[str, Any]) -> str | None:
"""The address to listen for: the fixed one, or the current one of a Private BLE Device tracker."""
if entity := tag.get("entity"):
state = hass.states.get(entity)
current = state.attributes.get("current_address") if state else None
return str(current).upper() if current else None
address = tag.get("address")
return str(address).upper() if address else None
def scanner_readings(hass: HomeAssistant, address: str) -> dict[str, tuple[str, float]]:
"""What every scanner last heard of an address: source -> (scanner name, RSSI in dBm)."""
if not available(hass):
return {}
from homeassistant.components import bluetooth # imported late: Bluetooth is optional
out: dict[str, tuple[str, float]] = {}
for device in bluetooth.async_scanner_devices_by_address(hass, address.upper(), False):
rssi = device.advertisement.rssi
if rssi is not None and rssi > -127:
out[device.scanner.source] = (device.scanner.name, float(rssi))
return out
def discovered(hass: HomeAssistant, limit: int = 80) -> dict[str, Any]:
"""The scanners and the devices they hear, strongest first, for choosing a tag in the editor."""
if not available(hass):
return {"available": False, "scanners": [], "devices": []}
from homeassistant.components import bluetooth
scanners = [{"source": s.source, "name": s.name} for s in bluetooth.async_current_scanners(hass)]
seen: dict[str, dict[str, Any]] = {}
for info in bluetooth.async_discovered_service_info(hass, False):
row = seen.setdefault(info.address, {"address": info.address, "name": info.name, "rssi": -200, "named": False})
row["rssi"] = max(row["rssi"], info.rssi)
# a device without a name shows up with its address as the name
row["named"] = info.name != info.address
row["name"] = info.name
devices = sorted(seen.values(), key=lambda r: (not r["named"], -r["rssi"]))[:limit]
return {"available": True, "scanners": scanners, "devices": devices}
Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

@@ -0,0 +1,83 @@
"""The dashboard card as a Lovelace resource.
The main bundle is also loaded as an extra frontend module, but in the companion app a dashboard may be drawn
before that module has arrived; the card then stays "Custom element doesn't exist: nextfloor-card" until the
sidebar page is opened (#252). Lovelace waits for its resources before it draws cards, so the card's bundle is
kept in the resource list as well, in storage mode only (YAML resources belong to the user).
"""
from __future__ import annotations
import logging
from typing import Any
from homeassistant.const import EVENT_HOMEASSISTANT_STARTED
from homeassistant.core import CoreState, Event, HomeAssistant
from .const import MAIN_BUNDLE, URL_BASE
_LOGGER = logging.getLogger(__name__)
def _resources(hass: HomeAssistant) -> Any | None:
"""Lovelace's resource collection when it can be changed (storage mode), else None."""
data = hass.data.get("lovelace")
if data is None:
return None
# since 2025.2 a LovelaceData object, before a dict
resources = data.get("resources") if isinstance(data, dict) else getattr(data, "resources", None)
if resources is None or not hasattr(resources, "async_create_item"):
return None
return resources
def _is_ours(url: str) -> bool:
"""A resource that loads our main bundle: ours, or an older copy of it (another path, an old hand install)."""
return url.split("?")[0].endswith(f"/{MAIN_BUNDLE}")
async def async_ensure_card_resource(hass: HomeAssistant, url: str) -> None:
"""Keep exactly our current bundle URL in the dashboard resources (added once, updated after an update)."""
resources = _resources(hass)
if resources is None:
return
try:
await resources.async_get_info() # loads the collection
ours = [item for item in resources.async_items() if _is_ours(str(item.get("url", "")))]
if not ours:
await resources.async_create_item({"res_type": "module", "url": url})
_LOGGER.debug("Added the dashboard card resource %s", url)
return
for item in ours:
if item.get("url") != url:
# an older version or an old copy of the bundle: it would define the card first, so it points to ours
await resources.async_update_item(item["id"], {"res_type": "module", "url": url})
_LOGGER.debug("Updated dashboard resource %s to %s", item.get("url"), url)
except Exception: # the card still loads as an extra module, this is only a help
_LOGGER.debug("Could not update the dashboard resources", exc_info=True)
def async_schedule_card_resource(hass: HomeAssistant, url: str) -> None:
"""Run once Home Assistant has started (Lovelace and its resources are set up by then)."""
if hass.state is CoreState.running:
hass.async_create_task(async_ensure_card_resource(hass, url))
return
async def _started(_event: Event) -> None:
await async_ensure_card_resource(hass, url)
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STARTED, _started)
async def async_remove_card_resource(hass: HomeAssistant) -> None:
"""When the integration is removed: drop the resources that point to our own static path."""
resources = _resources(hass)
if resources is None:
return
try:
await resources.async_get_info()
for item in list(resources.async_items()):
if str(item.get("url", "")).startswith(f"{URL_BASE}/"):
await resources.async_delete_item(item["id"])
except Exception:
_LOGGER.debug("Could not remove the dashboard resource", exc_info=True)
@@ -0,0 +1,21 @@
"""Config flow for NextFloor (no options: everything is set up in the panel)."""
from __future__ import annotations
from typing import Any
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
from .const import DOMAIN, PANEL_TITLE
class NextFloorConfigFlow(ConfigFlow, domain=DOMAIN):
"""Single-step flow."""
VERSION = 1
async def async_step_user(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult:
"""Confirm and create the entry."""
if user_input is not None:
return self.async_create_entry(title=PANEL_TITLE, data={})
return self.async_show_form(step_id="user")
+27
View File
@@ -0,0 +1,27 @@
"""Constants for NextFloor."""
from __future__ import annotations
DOMAIN = "nextfloor"
STORAGE_VERSION = 1
# minor versions of the building store; each step has a migration in storage.py
STORAGE_MINOR_VERSION = 2
STORAGE_KEY_BUILDING = f"{DOMAIN}.building"
STORAGE_KEY_IMAGES = f"{DOMAIN}.images"
STORAGE_KEY_HISTORY = f"{DOMAIN}.history"
STORAGE_KEY_PACKS = f"{DOMAIN}.packs"
# restore points: at most this many, and a new one only after this pause since the last one
HISTORY_MAX = 20
HISTORY_INTERVAL = 600
URL_BASE = "/nextfloor_static"
MAIN_BUNDLE = "nextfloor.js"
PANEL_URL_PATH = "nextfloor"
PANEL_COMPONENT = "nextfloor-panel"
PANEL_ICON = "mdi:floor-plan"
PANEL_TITLE = "NextFloor"
SIGNAL_BUILDING_UPDATED = f"{DOMAIN}_building_updated"
SIGNAL_ANNOUNCE = f"{DOMAIN}_announce"
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,153 @@
{
"accent": "Accentfarve",
"accent_reset": "Tilbage til cyan",
"alert_alarm_by": "Alarm udløst af {cause}",
"all_floors": "Alle etager",
"all_off_done": "Alt slukket.",
"all_off_floor": "Alt slukket på {floor} ({n} enheder), fortryd i ti sekunder",
"all_off_n": "Alt slukket ({n})",
"all_off_undo": "Fortryd",
"announce_failed": "Meddelelsen mislykkedes: {error}",
"announce_on": "Meddelelser på denne skærm er slået til",
"announce_placeholder": "Din egen besked …",
"announce_send": "Sig det",
"announce_sent": "Sagt: \"{message}\"",
"back": "Tilbage",
"bars_fold": "Fold kontakterne væk",
"bars_unfold": "Kontakter",
"battery_low_n": "Lavt batteri: {names}",
"brightness": "Lysstyrke",
"card_description": "Dit hjem i 3D (neon).",
"card_floor_stack": "Etager nedenunder",
"card_room_buttons": "Rumknapper",
"care_bin_days": "Om {n} dage",
"care_bin_today": "Hentes i dag",
"care_bin_tomorrow": "Hentes i morgen",
"care_time_left": "{time} tilbage",
"central": "Central: alle lys, persienner og favoritter",
"central_covers": "Persienner",
"central_favorites": "Favoritter",
"central_house": "Hele huset",
"central_lights": "Lys",
"central_sure": "Sikker?",
"clock": "Ur",
"close": "Luk",
"color": "Farve",
"color_temp": "Farvetemperatur",
"comfort_n": "Komfort {n}",
"confirm_switch": "Vil du virkelig skifte {name}?",
"cover_close": "Luk",
"cover_my_go": "Til favoritposition ({p} %)",
"cover_open": "Åbn",
"cover_stop": "Stop",
"cover_tilt": "Lameller",
"cover_tilt_close": "Lameller lukket",
"cover_tilt_open": "Lameller åbne",
"delete": "Slet",
"details": "Detaljer",
"draft_discard": "Kassér",
"draft_found": "Ikke-gemte ændringer fra {time} fundet.",
"draft_restore": "Gendan og gem",
"empty_lights_hint": "{n} lys tændt, ingen her i {min} min.",
"empty_lights_off": "Sluk lys",
"energy_battery": "Batteri",
"energy_consumption": "Forbrug",
"energy_rest": "Fælles (rest)",
"energy_solar": "Sol",
"energy_tariff": "Takst",
"ext_tab": "Udvidelser",
"find": "Søg",
"find_none": "Intet fundet",
"find_placeholder": "Hvor er …? Enhed eller rum",
"floor_layer": "Lag (kan vises og skjules)",
"floor_power_share": "{n} % af huset",
"floor_rooms": "{n} rum",
"floor_rooms_one": "1 rum",
"floors": "Etager",
"floors_apart": "Fra hinanden",
"floors_stacked": "Stablet",
"flows": "Strømflow",
"fps_title": "Ydelsesvisning (billeder i sekundet)",
"glass_walls": "Glasvægge",
"heat_none_found": "Ingen passende sensorer i rummenes områder.",
"heat_wifi": "Wi-Fi",
"heatmap": "Varmekort",
"holos": "Kort",
"keep_camera": "Behold kamera",
"load_error": "Indlæsning mislykkedes",
"loading": "Indlæser …",
"markers": "Markører",
"media_next": "Næste",
"media_previous": "Forrige",
"media_sources": "Kilder",
"media_volume": "Lydstyrke",
"menu_open": "Menu åben",
"meter_unmetered": "{w} umålt",
"mood_carry": "Overfør til et andet rum",
"mood_new": "Stemning",
"mood_save": "Gem stemning",
"mood_set": "Brug denne stemning",
"next": "Næste",
"no_building": "Ingen plantegning endnu.",
"open_editor": "Åbn editor",
"open_heating_hint": "{n} vinduer er åbne, mens varmen kører.",
"open_heating_off": "Sluk varmen",
"open_since": "åben i {time}",
"outside_area": "Udenfor",
"panel_all_close": "Alle ned",
"panel_all_off": "Alle fra",
"panel_all_on": "Alle til",
"panel_all_open": "Alle op",
"panel_less": "Vis mindre",
"panel_more": "Flere enheder i området ({n})",
"plain": "Kun plantegning",
"play_pause": "Afspil/pause",
"pool_pump_on": "pumpe til",
"position": "Position",
"presence_last": "sidst set for {time} siden",
"presence_now": "nogen er her",
"presets": "Stationer og afspilningslister (lyd)",
"previous": "Forrige",
"qm_off": "Fra",
"readable": "Letlæselig",
"reload_page": "Genindlæs",
"right_back": "Højreklik = tilbage",
"roof_keep": "Taget bliver",
"room_clean_run": "Støvsug",
"room_clean_run_hint": "Sender robotstøvsugeren til dette rum.",
"room_curve_hint": "Rummets temperatur de sidste 24 timer",
"room_energy": "i dag {today} · måned {month}",
"room_sun_hours": "{h} t sol i dag ({facing})",
"room_sun_year": "Sol over året",
"save_failed_detail": "Det mislykkedes at gemme: {error}. Dine ændringer bevares i denne browser.",
"screen_name": "Navn på denne skærm",
"shade_close": "Sænk",
"shade_hint": "Sol på {n} vinduer ved {temp} – sænk persiennerne?",
"stats_idle": "I hvile (0 fps)",
"stl": "3D-print (STL)",
"swipe_off": "Fra",
"target_temp": "Mål",
"temp_down": "Køligere",
"temp_up": "Varmere",
"time_of_day": "Tid på dagen",
"today": "I dag",
"today_none": "Intet i dag.",
"travel": "Tidsrejse: afspil de sidste 24 timer eller 7 dage",
"travel_days": "dage",
"travel_failed": "Historikken kunne ikke indlæses.",
"travel_live": "Live",
"travel_loading": "Indlæser historik …",
"travel_speed": "Hastighed",
"view_options": "Visning: kvalitet, look, markører, FPS",
"view_zoom": "Zoom",
"volume": "Lydstyrke",
"wallbox_charging": "oplader",
"wallbox_plugged": "tilsluttet",
"walls_auto": "Høje vægge",
"walls_cut": "Snit",
"walls_slope": "Skrå",
"walls_solid": "Massive",
"wifi_aps": "{n} adgangspunkter · {clients} enheder",
"wifi_clients": "{n} enheder",
"wifi_network": "Netværk: {online} online · {offline} offline"
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,153 @@
{
"accent": "Korostusväri",
"accent_reset": "Takaisin syaaniin",
"alert_alarm_by": "Hälytyksen laukaisi {cause}",
"all_floors": "Kaikki kerrokset",
"all_off_done": "Kaikki pois päältä.",
"all_off_floor": "Kaikki pois päältä: {floor} ({n} laitetta), kumoa kymmenen sekuntia",
"all_off_n": "Kaikki pois ({n})",
"all_off_undo": "Kumoa",
"announce_failed": "Ilmoitus epäonnistui: {error}",
"announce_on": "Ilmoitukset tällä näytöllä ovat päällä",
"announce_placeholder": "Oma viestisi …",
"announce_send": "Sano se",
"announce_sent": "Sanottu: \"{message}\"",
"back": "Takaisin",
"bars_fold": "Piilota kytkimet",
"bars_unfold": "Kytkimet",
"battery_low_n": "Akku vähissä: {names}",
"brightness": "Kirkkaus",
"card_description": "Kotisi 3D:nä (neon).",
"card_floor_stack": "Alla olevat kerrokset",
"card_room_buttons": "Huonepainikkeet",
"care_bin_days": "{n} päivän päästä",
"care_bin_today": "Tyhjennetään tänään",
"care_bin_tomorrow": "Tyhjennetään huomenna",
"care_time_left": "{time} jäljellä",
"central": "Keskus: kaikki valot, jalousiet ja suosikit",
"central_covers": "Jalousiet",
"central_favorites": "Suosikit",
"central_house": "Koko talo",
"central_lights": "Valot",
"central_sure": "Varmasti?",
"clock": "Kello",
"close": "Sulje",
"color": "Väri",
"color_temp": "Värilämpötila",
"comfort_n": "Mukavuus {n}",
"confirm_switch": "Vaihdetaanko varmasti {name}?",
"cover_close": "Sulje",
"cover_my_go": "Suosikkiasentoon ({p} %)",
"cover_open": "Avaa",
"cover_stop": "Pysäytä",
"cover_tilt": "Lamellit",
"cover_tilt_close": "Lamellit kiinni",
"cover_tilt_open": "Lamellit auki",
"delete": "Poista",
"details": "Tiedot",
"draft_discard": "Hylkää",
"draft_found": "Tallentamattomia muutoksia löytyi kohdasta {time}.",
"draft_restore": "Palauta ja tallenna",
"empty_lights_hint": "{n} valoa päällä, ei ketään paikalla {min} min.",
"empty_lights_off": "Sammuta valot",
"energy_battery": "Akku",
"energy_consumption": "Kulutus",
"energy_rest": "Yhteinen (loput)",
"energy_solar": "Aurinko",
"energy_tariff": "Hinnasto",
"ext_tab": "Laajennukset",
"find": "Etsi",
"find_none": "Ei tuloksia",
"find_placeholder": "Missä on …? Laite tai huone",
"floor_layer": "Taso (voi näyttää ja piilottaa)",
"floor_power_share": "{n} % talosta",
"floor_rooms": "{n} huonetta",
"floor_rooms_one": "1 huone",
"floors": "Kerrokset",
"floors_apart": "Erillään",
"floors_stacked": "Päällekkäin",
"flows": "Sähkövirta",
"fps_title": "Suorituskykynäyttö (kuvaa sekunnissa)",
"glass_walls": "Lasiseinät",
"heat_none_found": "Sopivia antureita ei löytynyt huoneiden alueilta.",
"heat_wifi": "Wi-Fi",
"heatmap": "Lämpökartta",
"holos": "Kortit",
"keep_camera": "Säilytä kamera",
"load_error": "Lataus epäonnistui",
"loading": "Ladataan …",
"markers": "Merkit",
"media_next": "Seuraava",
"media_previous": "Edellinen",
"media_sources": "Lähteet",
"media_volume": "Äänenvoimakkuus",
"menu_open": "Valikko auki",
"meter_unmetered": "{w} mittaamatta",
"mood_carry": "Siirrä toiseen huoneeseen",
"mood_new": "Tunnelma",
"mood_save": "Tallenna tunnelma",
"mood_set": "Käytä tätä tunnelmaa",
"next": "Seuraava",
"no_building": "Ei pohjapiirrosta vielä.",
"open_editor": "Avaa editori",
"open_heating_hint": "{n} ikkunaa auki lämmityksen ollessa päällä.",
"open_heating_off": "Sammuta lämmitys",
"open_since": "auki {time}",
"outside_area": "Ulkona",
"panel_all_close": "Kaikki alas",
"panel_all_off": "Kaikki pois",
"panel_all_on": "Kaikki päälle",
"panel_all_open": "Kaikki ylös",
"panel_less": "Näytä vähemmän",
"panel_more": "Lisää alueen laitteita ({n})",
"plain": "Vain pohjapiirros",
"play_pause": "Toista/tauko",
"pool_pump_on": "pumppu päällä",
"position": "Asento",
"presence_last": "nähty viimeksi {time} sitten",
"presence_now": "joku on täällä",
"presets": "Kanavat ja soittolistat (ääni)",
"previous": "Edellinen",
"qm_off": "Pois",
"readable": "Helppolukuinen",
"reload_page": "Lataa uudelleen",
"right_back": "Oikea napsautus = takaisin",
"roof_keep": "Katto pysyy",
"room_clean_run": "Imuroi",
"room_clean_run_hint": "Lähettää robotti-imurin tähän huoneeseen.",
"room_curve_hint": "Huoneen lämpötila viimeisen 24 tunnin ajalta",
"room_energy": "tänään {today} · kuukausi {month}",
"room_sun_hours": "{h} h aurinkoa tänään ({facing})",
"room_sun_year": "Aurinko vuoden aikana",
"save_failed_detail": "Tallennus epäonnistui: {error}. Muutokset säilyvät tässä selaimessa.",
"screen_name": "Tämän näytön nimi",
"shade_close": "Laske",
"shade_hint": "Aurinko paistaa {n} ikkunaan, {temp} – lasketaanko jalousiet?",
"stats_idle": "Lepotilassa (0 fps)",
"stl": "3D-tulostus (STL)",
"swipe_off": "Pois",
"target_temp": "Tavoite",
"temp_down": "Viileämpää",
"temp_up": "Lämpimämpää",
"time_of_day": "Vuorokaudenaika",
"today": "Tänään",
"today_none": "Ei mitään tänään.",
"travel": "Aikamatka: toista viimeiset 24 tuntia tai 7 päivää",
"travel_days": "päivää",
"travel_failed": "Historiaa ei voitu ladata.",
"travel_live": "Livenä",
"travel_loading": "Ladataan historiaa …",
"travel_speed": "Nopeus",
"view_options": "Näkymä: laatu, ulkoasu, merkit, FPS",
"view_zoom": "Zoom",
"volume": "Äänenvoimakkuus",
"wallbox_charging": "lataa",
"wallbox_plugged": "kytketty",
"walls_auto": "Korkeat seinät",
"walls_cut": "Leikkaus",
"walls_slope": "Viistetty",
"walls_solid": "Umpinaiset",
"wifi_aps": "{n} tukiasemaa · {clients} laitetta",
"wifi_clients": "{n} laitetta",
"wifi_network": "Verkko: {online} verkossa · {offline} ei yhteyttä"
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,153 @@
{
"accent": "Kiemelő szín",
"accent_reset": "Vissza ciánra",
"alert_alarm_by": "Riasztást kiváltotta: {cause}",
"all_floors": "Minden szint",
"all_off_done": "Minden kikapcsolva.",
"all_off_floor": "Minden kikapcsolva: {floor} ({n} eszköz), visszavonás tíz másodpercig",
"all_off_n": "Minden ki ({n})",
"all_off_undo": "Visszavonás",
"announce_failed": "A közlemény nem sikerült: {error}",
"announce_on": "A közlemények ezen a képernyőn be vannak kapcsolva",
"announce_placeholder": "Saját üzeneted …",
"announce_send": "Mondd ki",
"announce_sent": "Kimondva: \"{message}\"",
"back": "Vissza",
"bars_fold": "Kapcsolók elrejtése",
"bars_unfold": "Kapcsolók",
"battery_low_n": "Gyenge elem: {names}",
"brightness": "Fényerő",
"card_description": "Otthonod 3D-ben (neon).",
"card_floor_stack": "Alatta lévő szintek",
"card_room_buttons": "Szobagombok",
"care_bin_days": "{n} nap múlva",
"care_bin_today": "Ma szállítják el",
"care_bin_tomorrow": "Holnap szállítják el",
"care_time_left": "{time} van hátra",
"central": "Központ: minden lámpa, redőny és kedvenc",
"central_covers": "Redőnyök",
"central_favorites": "Kedvencek",
"central_house": "Az egész ház",
"central_lights": "Lámpák",
"central_sure": "Biztos?",
"clock": "Óra",
"close": "Bezár",
"color": "Szín",
"color_temp": "Színhőmérséklet",
"comfort_n": "Komfort {n}",
"confirm_switch": "Tényleg átkapcsolod: {name}?",
"cover_close": "Zár",
"cover_my_go": "A kedvenc helyzetbe ({p} %)",
"cover_open": "Nyit",
"cover_stop": "Megállít",
"cover_tilt": "Lamellák",
"cover_tilt_close": "Lamellák zárva",
"cover_tilt_open": "Lamellák nyitva",
"delete": "Törlés",
"details": "Részletek",
"draft_discard": "Elvet",
"draft_found": "Mentetlen módosítások találhatók ({time}).",
"draft_restore": "Visszaállít és ment",
"empty_lights_hint": "{n} lámpa ég, {min} perce nincs itt senki.",
"empty_lights_off": "Lámpák ki",
"energy_battery": "Akkumulátor",
"energy_consumption": "Fogyasztás",
"energy_rest": "Közös (maradék)",
"energy_solar": "Nap",
"energy_tariff": "Tarifa",
"ext_tab": "Bővítmények",
"find": "Keresés",
"find_none": "Nincs találat",
"find_placeholder": "Hol van …? Eszköz vagy szoba",
"floor_layer": "Réteg (megjeleníthető és elrejthető)",
"floor_power_share": "A ház {n} %-a",
"floor_rooms": "{n} szoba",
"floor_rooms_one": "1 szoba",
"floors": "Szintek",
"floors_apart": "Szétválasztva",
"floors_stacked": "Egymáson",
"flows": "Energiaáramlás",
"fps_title": "Teljesítménykijelzés (képkocka/mp)",
"glass_walls": "Üvegfalak",
"heat_none_found": "Nincs megfelelő érzékelő a szobák területein.",
"heat_wifi": "Wi-Fi",
"heatmap": "Hőtérkép",
"holos": "Kártyák",
"keep_camera": "Kamera megtartása",
"load_error": "A betöltés sikertelen",
"loading": "Betöltés …",
"markers": "Jelölők",
"media_next": "Következő",
"media_previous": "Előző",
"media_sources": "Források",
"media_volume": "Hangerő",
"menu_open": "Menü nyitva",
"meter_unmetered": "{w} mérés nélkül",
"mood_carry": "Átvitel másik szobába",
"mood_new": "Hangulat",
"mood_save": "Hangulat mentése",
"mood_set": "Hangulat beállítása",
"next": "Következő",
"no_building": "Még nincs alaprajz.",
"open_editor": "Szerkesztő megnyitása",
"open_heating_hint": "{n} ablak nyitva, miközben fűt a fűtés.",
"open_heating_off": "Fűtés ki",
"open_since": "nyitva {time} óta",
"outside_area": "Kint",
"panel_all_close": "Mind le",
"panel_all_off": "Mind ki",
"panel_all_on": "Mind be",
"panel_all_open": "Mind fel",
"panel_less": "Kevesebb",
"panel_more": "Több eszköz a területről ({n})",
"plain": "Csak alaprajz",
"play_pause": "Lejátszás/szünet",
"pool_pump_on": "szivattyú be",
"position": "Pozíció",
"presence_last": "utoljára {time} ezelőtt látva",
"presence_now": "valaki itt van",
"presets": "Állomások és lejátszási listák (hang)",
"previous": "Előző",
"qm_off": "Ki",
"readable": "Jól olvasható",
"reload_page": "Újratöltés",
"right_back": "Jobb klikk = vissza",
"roof_keep": "A tető marad",
"room_clean_run": "Takarítás",
"room_clean_run_hint": "Ide küldi a robotporszívót.",
"room_curve_hint": "A szoba hőmérséklete az elmúlt 24 órában",
"room_energy": "ma {today} · hónap {month}",
"room_sun_hours": "{h} óra napsütés ma ({facing})",
"room_sun_year": "Nap az év során",
"save_failed_detail": "A mentés nem sikerült: {error}. A módosítások megmaradnak ebben a böngészőben.",
"screen_name": "A képernyő neve",
"shade_close": "Leenged",
"shade_hint": "Nap süt {n} ablakra, {temp} – lehúzzuk a redőnyt?",
"stats_idle": "Nyugalomban (0 fps)",
"stl": "3D nyomtatás (STL)",
"swipe_off": "Ki",
"target_temp": "Cél",
"temp_down": "Hűvösebb",
"temp_up": "Melegebb",
"time_of_day": "Napszak",
"today": "Ma",
"today_none": "Ma nincs semmi.",
"travel": "Időutazás: az elmúlt 24 óra vagy 7 nap lejátszása",
"travel_days": "nap",
"travel_failed": "Az előzményeket nem sikerült betölteni.",
"travel_live": "Élő",
"travel_loading": "Előzmények betöltése …",
"travel_speed": "Sebesség",
"view_options": "Nézet: minőség, megjelenés, jelölők, FPS",
"view_zoom": "Nagyítás",
"volume": "Hangerő",
"wallbox_charging": "tölt",
"wallbox_plugged": "csatlakoztatva",
"walls_auto": "Magas falak",
"walls_cut": "Metszet",
"walls_slope": "Ferde",
"walls_solid": "Tömör",
"wifi_aps": "{n} hozzáférési pont · {clients} eszköz",
"wifi_clients": "{n} eszköz",
"wifi_network": "Hálózat: {online} online · {offline} offline"
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,153 @@
{
"accent": "Aksentfarge",
"accent_reset": "Tilbake til cyan",
"alert_alarm_by": "Alarm utløst av {cause}",
"all_floors": "Alle etasjer",
"all_off_done": "Alt slått av.",
"all_off_floor": "Alt slått av på {floor} ({n} enheter), angre i ti sekunder",
"all_off_n": "Alt av ({n})",
"all_off_undo": "Angre",
"announce_failed": "Kunngjøringen mislyktes: {error}",
"announce_on": "Kunngjøringer på denne skjermen er slått på",
"announce_placeholder": "Din egen melding …",
"announce_send": "Si det",
"announce_sent": "Sagt: \"{message}\"",
"back": "Tilbake",
"bars_fold": "Skjul bryterne",
"bars_unfold": "Brytere",
"battery_low_n": "Lavt batteri: {names}",
"brightness": "Lysstyrke",
"card_description": "Hjemmet ditt i 3D (neon).",
"card_floor_stack": "Etasjer under",
"card_room_buttons": "Romknapper",
"care_bin_days": "Om {n} dager",
"care_bin_today": "Hentes i dag",
"care_bin_tomorrow": "Hentes i morgen",
"care_time_left": "{time} igjen",
"central": "Sentralt: alle lys, persienner og favoritter",
"central_covers": "Persienner",
"central_favorites": "Favoritter",
"central_house": "Hele huset",
"central_lights": "Lys",
"central_sure": "Sikker?",
"clock": "Klokke",
"close": "Lukk",
"color": "Farge",
"color_temp": "Fargetemperatur",
"comfort_n": "Komfort {n}",
"confirm_switch": "Vil du virkelig bytte {name}?",
"cover_close": "Lukk",
"cover_my_go": "Til favorittposisjon ({p} %)",
"cover_open": "Åpne",
"cover_stop": "Stopp",
"cover_tilt": "Lameller",
"cover_tilt_close": "Lameller lukket",
"cover_tilt_open": "Lameller åpne",
"delete": "Slett",
"details": "Detaljer",
"draft_discard": "Forkast",
"draft_found": "Fant ulagrede endringer fra {time}.",
"draft_restore": "Gjenopprett og lagre",
"empty_lights_hint": "{n} lys på, ingen her på {min} min.",
"empty_lights_off": "Slå av lys",
"energy_battery": "Batteri",
"energy_consumption": "Forbruk",
"energy_rest": "Felles (rest)",
"energy_solar": "Sol",
"energy_tariff": "Tariff",
"ext_tab": "Utvidelser",
"find": "Søk",
"find_none": "Ingenting funnet",
"find_placeholder": "Hvor er …? Enhet eller rom",
"floor_layer": "Lag (kan vises og skjules)",
"floor_power_share": "{n} % av huset",
"floor_rooms": "{n} rom",
"floor_rooms_one": "1 rom",
"floors": "Etasjer",
"floors_apart": "Fra hverandre",
"floors_stacked": "Stablet",
"flows": "Strømflyt",
"fps_title": "Ytelsesvisning (bilder per sekund)",
"glass_walls": "Glassvegger",
"heat_none_found": "Ingen passende sensorer i rommenes områder.",
"heat_wifi": "Wi-Fi",
"heatmap": "Varmekart",
"holos": "Kort",
"keep_camera": "Behold kamera",
"load_error": "Innlasting mislyktes",
"loading": "Laster …",
"markers": "Markører",
"media_next": "Neste",
"media_previous": "Forrige",
"media_sources": "Kilder",
"media_volume": "Volum",
"menu_open": "Meny åpen",
"meter_unmetered": "{w} umålt",
"mood_carry": "Overfør til et annet rom",
"mood_new": "Stemning",
"mood_save": "Lagre stemning",
"mood_set": "Bruk denne stemningen",
"next": "Neste",
"no_building": "Ingen plantegning ennå.",
"open_editor": "Åpne redigering",
"open_heating_hint": "{n} vinduer er åpne mens varmen går.",
"open_heating_off": "Slå av varmen",
"open_since": "åpen i {time}",
"outside_area": "Utendørs",
"panel_all_close": "Alle ned",
"panel_all_off": "Alle av",
"panel_all_on": "Alle på",
"panel_all_open": "Alle opp",
"panel_less": "Vis mindre",
"panel_more": "Flere enheter i området ({n})",
"plain": "Bare plantegning",
"play_pause": "Spill av/pause",
"pool_pump_on": "pumpe på",
"position": "Posisjon",
"presence_last": "sist sett for {time} siden",
"presence_now": "noen er her",
"presets": "Stasjoner og spillelister (lyd)",
"previous": "Forrige",
"qm_off": "Av",
"readable": "Lettlest",
"reload_page": "Last på nytt",
"right_back": "Høyreklikk = tilbake",
"roof_keep": "Taket blir",
"room_clean_run": "Støvsug",
"room_clean_run_hint": "Sender robotstøvsugeren til dette rommet.",
"room_curve_hint": "Temperaturen i rommet de siste 24 timene",
"room_energy": "i dag {today} · måned {month}",
"room_sun_hours": "{h} t sol i dag ({facing})",
"room_sun_year": "Sol gjennom året",
"save_failed_detail": "Lagringen mislyktes: {error}. Endringene dine beholdes i denne nettleseren.",
"screen_name": "Navn på denne skjermen",
"shade_close": "Senk",
"shade_hint": "Sol på {n} vinduer ved {temp} – senke persiennene?",
"stats_idle": "I ro (0 fps)",
"stl": "3D-utskrift (STL)",
"swipe_off": "Av",
"target_temp": "Mål",
"temp_down": "Kjøligere",
"temp_up": "Varmere",
"time_of_day": "Tid på dagen",
"today": "I dag",
"today_none": "Ingenting i dag.",
"travel": "Tidsreise: spill av de siste 24 timene eller 7 dagene",
"travel_days": "dager",
"travel_failed": "Historikken kunne ikke lastes.",
"travel_live": "Live",
"travel_loading": "Laster historikk …",
"travel_speed": "Hastighet",
"view_options": "Visning: kvalitet, utseende, markører, FPS",
"view_zoom": "Zoom",
"volume": "Volum",
"wallbox_charging": "lader",
"wallbox_plugged": "tilkoblet",
"walls_auto": "Høye vegger",
"walls_cut": "Snitt",
"walls_slope": "Skrå",
"walls_solid": "Massive",
"wifi_aps": "{n} tilgangspunkter · {clients} enheter",
"wifi_clients": "{n} enheter",
"wifi_network": "Nettverk: {online} online · {offline} offline"
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,153 @@
{
"accent": "Culoare de accent",
"accent_reset": "Înapoi la cyan",
"alert_alarm_by": "Alarmă declanșată de {cause}",
"all_floors": "Toate etajele",
"all_off_done": "Totul oprit.",
"all_off_floor": "Totul oprit pe {floor} ({n} dispozitive), anulare timp de zece secunde",
"all_off_n": "Totul oprit ({n})",
"all_off_undo": "Anulează",
"announce_failed": "Anunțul a eșuat: {error}",
"announce_on": "Anunțurile de pe acest ecran sunt pornite",
"announce_placeholder": "Mesajul tău …",
"announce_send": "Spune-o",
"announce_sent": "Spus: \"{message}\"",
"back": "Înapoi",
"bars_fold": "Ascunde comutatoarele",
"bars_unfold": "Comutatoare",
"battery_low_n": "Baterie slabă: {names}",
"brightness": "Luminozitate",
"card_description": "Casa ta în 3D (neon).",
"card_floor_stack": "Etaje dedesubt",
"card_room_buttons": "Butoane de cameră",
"care_bin_days": "Peste {n} zile",
"care_bin_today": "Se ridică azi",
"care_bin_tomorrow": "Se ridică mâine",
"care_time_left": "{time} rămase",
"central": "Central: toate luminile, jaluzelele și favoritele",
"central_covers": "Jaluzele",
"central_favorites": "Favorite",
"central_house": "Toată casa",
"central_lights": "Lumini",
"central_sure": "Sigur?",
"clock": "Ceas",
"close": "Închide",
"color": "Culoare",
"color_temp": "Temperatura culorii",
"comfort_n": "Confort {n}",
"confirm_switch": "Sigur comuți {name}?",
"cover_close": "Închide",
"cover_my_go": "La poziția favorită ({p} %)",
"cover_open": "Deschide",
"cover_stop": "Stop",
"cover_tilt": "Lamele",
"cover_tilt_close": "Lamele închise",
"cover_tilt_open": "Lamele deschise",
"delete": "Șterge",
"details": "Detalii",
"draft_discard": "Renunță",
"draft_found": "Au fost găsite modificări nesalvate de la {time}.",
"draft_restore": "Restaurează și salvează",
"empty_lights_hint": "{n} lumini aprinse, nimeni aici de {min} min.",
"empty_lights_off": "Stinge luminile",
"energy_battery": "Baterie",
"energy_consumption": "Consum",
"energy_rest": "Comun (rest)",
"energy_solar": "Solar",
"energy_tariff": "Tarif",
"ext_tab": "Extensii",
"find": "Caută",
"find_none": "Nu s-a găsit nimic",
"find_placeholder": "Unde este …? Dispozitiv sau cameră",
"floor_layer": "Strat (poate fi afișat și ascuns)",
"floor_power_share": "{n} % din casă",
"floor_rooms": "{n} camere",
"floor_rooms_one": "1 cameră",
"floors": "Etaje",
"floors_apart": "Separate",
"floors_stacked": "Suprapuse",
"flows": "Flux de energie",
"fps_title": "Afișare performanță (cadre pe secundă)",
"glass_walls": "Pereți de sticlă",
"heat_none_found": "Nu există senzori potriviți în zonele camerelor.",
"heat_wifi": "Wi-Fi",
"heatmap": "Hartă termică",
"holos": "Carduri",
"keep_camera": "Păstrează camera",
"load_error": "Încărcarea a eșuat",
"loading": "Se încarcă …",
"markers": "Marcaje",
"media_next": "Următorul",
"media_previous": "Anteriorul",
"media_sources": "Surse",
"media_volume": "Volum",
"menu_open": "Meniu deschis",
"meter_unmetered": "{w} nemăsurat",
"mood_carry": "Transferă în altă cameră",
"mood_new": "Atmosferă",
"mood_save": "Salvează atmosfera",
"mood_set": "Folosește această atmosferă",
"next": "Următorul",
"no_building": "Încă nu există plan.",
"open_editor": "Deschide editorul",
"open_heating_hint": "{n} ferestre deschise cât timp merge încălzirea.",
"open_heating_off": "Oprește încălzirea",
"open_since": "deschis de {time}",
"outside_area": "Afară",
"panel_all_close": "Toate jos",
"panel_all_off": "Toate oprite",
"panel_all_on": "Toate pornite",
"panel_all_open": "Toate sus",
"panel_less": "Arată mai puțin",
"panel_more": "Mai multe dispozitive din zonă ({n})",
"plain": "Doar planul",
"play_pause": "Redare/pauză",
"pool_pump_on": "pompă pornită",
"position": "Poziție",
"presence_last": "văzut ultima dată acum {time}",
"presence_now": "cineva este aici",
"presets": "Posturi și liste de redare (sunet)",
"previous": "Înapoi",
"qm_off": "Oprit",
"readable": "Ușor de citit",
"reload_page": "Reîncarcă",
"right_back": "Clic dreapta = înapoi",
"roof_keep": "Acoperișul rămâne",
"room_clean_run": "Curăță",
"room_clean_run_hint": "Trimite aspiratorul robot în această cameră.",
"room_curve_hint": "Temperatura camerei în ultimele 24 de ore",
"room_energy": "azi {today} · luna {month}",
"room_sun_hours": "{h} h de soare azi ({facing})",
"room_sun_year": "Soarele peste an",
"save_failed_detail": "Salvarea a eșuat: {error}. Modificările tale rămân în acest browser.",
"screen_name": "Numele acestui ecran",
"shade_close": "Coboară",
"shade_hint": "Soare pe {n} ferestre la {temp} – coborâm jaluzelele?",
"stats_idle": "În repaus (0 fps)",
"stl": "Imprimare 3D (STL)",
"swipe_off": "Oprit",
"target_temp": "Țintă",
"temp_down": "Mai rece",
"temp_up": "Mai cald",
"time_of_day": "Ora din zi",
"today": "Azi",
"today_none": "Nimic azi.",
"travel": "Călătorie în timp: redă ultimele 24 de ore sau 7 zile",
"travel_days": "zile",
"travel_failed": "Istoricul nu a putut fi încărcat.",
"travel_live": "În direct",
"travel_loading": "Se încarcă istoricul …",
"travel_speed": "Viteză",
"view_options": "Vizualizare: calitate, aspect, marcaje, FPS",
"view_zoom": "Zoom",
"volume": "Volum",
"wallbox_charging": "se încarcă",
"wallbox_plugged": "conectat",
"walls_auto": "Pereți înalți",
"walls_cut": "Secțiune",
"walls_slope": "Înclinat",
"walls_solid": "Pline",
"wifi_aps": "{n} puncte de acces · {clients} dispozitive",
"wifi_clients": "{n} dispozitive",
"wifi_network": "Rețea: {online} online · {offline} offline"
}
@@ -0,0 +1,153 @@
{
"accent": "Akcentová farba",
"accent_reset": "Späť na azúrovú",
"alert_alarm_by": "Alarm spustil {cause}",
"all_floors": "Všetky podlažia",
"all_off_done": "Všetko vypnuté.",
"all_off_floor": "Všetko vypnuté na {floor} ({n} zariadení), späť desať sekúnd",
"all_off_n": "Všetko vypnúť ({n})",
"all_off_undo": "Späť",
"announce_failed": "Hlásenie zlyhalo: {error}",
"announce_on": "Hlásenia na tejto obrazovke sú zapnuté",
"announce_placeholder": "Tvoja správa …",
"announce_send": "Povedať",
"announce_sent": "Povedané: \"{message}\"",
"back": "Späť",
"bars_fold": "Skryť prepínače",
"bars_unfold": "Prepínače",
"battery_low_n": "Slabá batéria: {names}",
"brightness": "Jas",
"card_description": "Tvoj domov v 3D (neón).",
"card_floor_stack": "Podlažia pod tým",
"card_room_buttons": "Tlačidlá miestností",
"care_bin_days": "O {n} dní",
"care_bin_today": "Odvoz dnes",
"care_bin_tomorrow": "Odvoz zajtra",
"care_time_left": "Zostáva {time}",
"central": "Centrála: všetky svetlá, žalúzie a obľúbené",
"central_covers": "Žalúzie",
"central_favorites": "Obľúbené",
"central_house": "Celý dom",
"central_lights": "Svetlá",
"central_sure": "Určite?",
"clock": "Hodiny",
"close": "Zavrieť",
"color": "Farba",
"color_temp": "Teplota farby",
"comfort_n": "Komfort {n}",
"confirm_switch": "Naozaj prepnúť {name}?",
"cover_close": "Zavrieť",
"cover_my_go": "Do obľúbenej polohy ({p} %)",
"cover_open": "Otvoriť",
"cover_stop": "Zastaviť",
"cover_tilt": "Lamely",
"cover_tilt_close": "Lamely zatvorené",
"cover_tilt_open": "Lamely otvorené",
"delete": "Odstrániť",
"details": "Podrobnosti",
"draft_discard": "Zahodiť",
"draft_found": "Našli sa neuložené zmeny z {time}.",
"draft_restore": "Obnoviť a uložiť",
"empty_lights_hint": "{n} svetiel svieti, nikto tu nie je {min} min.",
"empty_lights_off": "Vypnúť svetlá",
"energy_battery": "Batéria",
"energy_consumption": "Spotreba",
"energy_rest": "Spoločné (zvyšok)",
"energy_solar": "Slnko",
"energy_tariff": "Tarifa",
"ext_tab": "Rozšírenia",
"find": "Hľadať",
"find_none": "Nič sa nenašlo",
"find_placeholder": "Kde je …? Zariadenie alebo miestnosť",
"floor_layer": "Vrstva (dá sa zobraziť a skryť)",
"floor_power_share": "{n} % domu",
"floor_rooms": "{n} miestností",
"floor_rooms_one": "1 miestnosť",
"floors": "Podlažia",
"floors_apart": "Oddelené",
"floors_stacked": "Naskladané",
"flows": "Tok energie",
"fps_title": "Zobrazenie výkonu (snímky za sekundu)",
"glass_walls": "Sklenené steny",
"heat_none_found": "V oblastiach miestností nie sú vhodné senzory.",
"heat_wifi": "Wi-Fi",
"heatmap": "Teplotná mapa",
"holos": "Karty",
"keep_camera": "Ponechať kameru",
"load_error": "Načítanie zlyhalo",
"loading": "Načítava sa …",
"markers": "Značky",
"media_next": "Ďalší",
"media_previous": "Predchádzajúci",
"media_sources": "Zdroje",
"media_volume": "Hlasitosť",
"menu_open": "Ponuka otvorená",
"meter_unmetered": "{w} nemerané",
"mood_carry": "Preniesť do inej miestnosti",
"mood_new": "Nálada",
"mood_save": "Uložiť náladu",
"mood_set": "Nastaviť túto náladu",
"next": "Ďalej",
"no_building": "Zatiaľ žiadny pôdorys.",
"open_editor": "Otvoriť editor",
"open_heating_hint": "{n} okien je otvorených, kým beží kúrenie.",
"open_heating_off": "Vypnúť kúrenie",
"open_since": "otvorené {time}",
"outside_area": "Vonku",
"panel_all_close": "Všetko dole",
"panel_all_off": "Všetko vypnúť",
"panel_all_on": "Všetko zapnúť",
"panel_all_open": "Všetko hore",
"panel_less": "Zobraziť menej",
"panel_more": "Ďalšie zariadenia oblasti ({n})",
"plain": "Len pôdorys",
"play_pause": "Prehrať/pauza",
"pool_pump_on": "čerpadlo zapnuté",
"position": "Poloha",
"presence_last": "naposledy videný pred {time}",
"presence_now": "niekto je tu",
"presets": "Stanice a zoznamy skladieb (zvuk)",
"previous": "Späť",
"qm_off": "Vypnuté",
"readable": "Dobre čitateľné",
"reload_page": "Načítať znova",
"right_back": "Pravý klik = späť",
"roof_keep": "Strecha ostáva",
"room_clean_run": "Upratať",
"room_clean_run_hint": "Pošle robotický vysávač do tejto miestnosti.",
"room_curve_hint": "Teplota miestnosti za posledných 24 hodín",
"room_energy": "dnes {today} · mesiac {month}",
"room_sun_hours": "{h} h slnka dnes ({facing})",
"room_sun_year": "Slnko počas roka",
"save_failed_detail": "Uloženie zlyhalo: {error}. Zmeny zostanú v tomto prehliadači.",
"screen_name": "Názov tejto obrazovky",
"shade_close": "Spustiť",
"shade_hint": "Slnko na {n} oknách pri {temp} – spustiť žalúzie?",
"stats_idle": "V pokoji (0 fps)",
"stl": "3D tlač (STL)",
"swipe_off": "Vypnúť",
"target_temp": "Cieľ",
"temp_down": "Chladnejšie",
"temp_up": "Teplejšie",
"time_of_day": "Denný čas",
"today": "Dnes",
"today_none": "Dnes nič.",
"travel": "Cestovanie v čase: prehrať posledných 24 hodín alebo 7 dní",
"travel_days": "dní",
"travel_failed": "Históriu sa nepodarilo načítať.",
"travel_live": "Naživo",
"travel_loading": "Načítava sa história …",
"travel_speed": "Rýchlosť",
"view_options": "Zobrazenie: kvalita, vzhľad, značky, FPS",
"view_zoom": "Priblíženie",
"volume": "Hlasitosť",
"wallbox_charging": "nabíja",
"wallbox_plugged": "pripojené",
"walls_auto": "Vysoké steny",
"walls_cut": "Rez",
"walls_slope": "Šikmé",
"walls_solid": "Plné",
"wifi_aps": "{n} prístupových bodov · {clients} zariadení",
"wifi_clients": "{n} zariadení",
"wifi_network": "Sieť: {online} online · {offline} offline"
}
@@ -0,0 +1,153 @@
{
"accent": "Poudarna barva",
"accent_reset": "Nazaj na cian",
"alert_alarm_by": "Alarm sprožil {cause}",
"all_floors": "Vsa nadstropja",
"all_off_done": "Vse izklopljeno.",
"all_off_floor": "Vse izklopljeno na {floor} ({n} naprav), razveljavitev deset sekund",
"all_off_n": "Vse izklopi ({n})",
"all_off_undo": "Razveljavi",
"announce_failed": "Obvestilo ni uspelo: {error}",
"announce_on": "Obvestila na tem zaslonu so vklopljena",
"announce_placeholder": "Tvoje sporočilo …",
"announce_send": "Povej",
"announce_sent": "Povedano: \"{message}\"",
"back": "Nazaj",
"bars_fold": "Skrij stikala",
"bars_unfold": "Stikala",
"battery_low_n": "Šibka baterija: {names}",
"brightness": "Svetlost",
"card_description": "Tvoj dom v 3D (neon).",
"card_floor_stack": "Nadstropja spodaj",
"card_room_buttons": "Gumbi prostorov",
"care_bin_days": "Čez {n} dni",
"care_bin_today": "Odvoz danes",
"care_bin_tomorrow": "Odvoz jutri",
"care_time_left": "Še {time}",
"central": "Središče: vse luči, žaluzije in priljubljene",
"central_covers": "Žaluzije",
"central_favorites": "Priljubljene",
"central_house": "Celotna hiša",
"central_lights": "Luči",
"central_sure": "Prepričan?",
"clock": "Ura",
"close": "Zapri",
"color": "Barva",
"color_temp": "Barvna temperatura",
"comfort_n": "Udobje {n}",
"confirm_switch": "Res preklopim {name}?",
"cover_close": "Zapri",
"cover_my_go": "V priljubljeni položaj ({p} %)",
"cover_open": "Odpri",
"cover_stop": "Ustavi",
"cover_tilt": "Lamele",
"cover_tilt_close": "Lamele zaprte",
"cover_tilt_open": "Lamele odprte",
"delete": "Izbriši",
"details": "Podrobnosti",
"draft_discard": "Zavrzi",
"draft_found": "Najdene neshranjene spremembe od {time}.",
"draft_restore": "Obnovi in shrani",
"empty_lights_hint": "{n} luči gori, nikogar ni {min} min.",
"empty_lights_off": "Ugasni luči",
"energy_battery": "Baterija",
"energy_consumption": "Poraba",
"energy_rest": "Skupno (ostalo)",
"energy_solar": "Sonce",
"energy_tariff": "Tarifa",
"ext_tab": "Razširitve",
"find": "Iskanje",
"find_none": "Nič ni najdeno",
"find_placeholder": "Kje je …? Naprava ali prostor",
"floor_layer": "Plast (je mogoče prikazati in skriti)",
"floor_power_share": "{n} % hiše",
"floor_rooms": "{n} prostorov",
"floor_rooms_one": "1 prostor",
"floors": "Nadstropja",
"floors_apart": "Narazen",
"floors_stacked": "Naloženo",
"flows": "Tok energije",
"fps_title": "Prikaz zmogljivosti (sličice na sekundo)",
"glass_walls": "Steklene stene",
"heat_none_found": "V območjih prostorov ni ustreznih senzorjev.",
"heat_wifi": "Wi-Fi",
"heatmap": "Toplotna karta",
"holos": "Kartice",
"keep_camera": "Obdrži kamero",
"load_error": "Nalaganje ni uspelo",
"loading": "Nalaganje …",
"markers": "Oznake",
"media_next": "Naslednji",
"media_previous": "Prejšnji",
"media_sources": "Viri",
"media_volume": "Glasnost",
"menu_open": "Meni odprt",
"meter_unmetered": "{w} brez meritve",
"mood_carry": "Prenesi v drug prostor",
"mood_new": "Vzdušje",
"mood_save": "Shrani vzdušje",
"mood_set": "Nastavi to vzdušje",
"next": "Naprej",
"no_building": "Še ni tlorisa.",
"open_editor": "Odpri urejevalnik",
"open_heating_hint": "{n} oken je odprtih, medtem ko deluje ogrevanje.",
"open_heating_off": "Izklopi ogrevanje",
"open_since": "odprto {time}",
"outside_area": "Zunaj",
"panel_all_close": "Vse dol",
"panel_all_off": "Vse izklopi",
"panel_all_on": "Vse vklopi",
"panel_all_open": "Vse gor",
"panel_less": "Pokaži manj",
"panel_more": "Več naprav območja ({n})",
"plain": "Samo tloris",
"play_pause": "Predvajaj/premor",
"pool_pump_on": "črpalka vklopljena",
"position": "Položaj",
"presence_last": "nazadnje viden pred {time}",
"presence_now": "nekdo je tukaj",
"presets": "Postaje in seznami predvajanja (zvok)",
"previous": "Nazaj",
"qm_off": "Izklop",
"readable": "Dobro berljivo",
"reload_page": "Znova naloži",
"right_back": "Desni klik = nazaj",
"roof_keep": "Streha ostane",
"room_clean_run": "Počisti",
"room_clean_run_hint": "Pošlje robotski sesalnik v ta prostor.",
"room_curve_hint": "Temperatura prostora v zadnjih 24 urah",
"room_energy": "danes {today} · mesec {month}",
"room_sun_hours": "{h} h sonca danes ({facing})",
"room_sun_year": "Sonce skozi leto",
"save_failed_detail": "Shranjevanje ni uspelo: {error}. Vaše spremembe ostanejo v tem brskalniku.",
"screen_name": "Ime tega zaslona",
"shade_close": "Spusti",
"shade_hint": "Sonce na {n} oknih pri {temp} – spustim žaluzije?",
"stats_idle": "V mirovanju (0 fps)",
"stl": "3D-tisk (STL)",
"swipe_off": "Izklop",
"target_temp": "Cilj",
"temp_down": "Hladneje",
"temp_up": "Toplejše",
"time_of_day": "Čas dneva",
"today": "Danes",
"today_none": "Danes ni ničesar.",
"travel": "Potovanje v času: predvajaj zadnjih 24 ur ali 7 dni",
"travel_days": "dni",
"travel_failed": "Zgodovine ni bilo mogoče naložiti.",
"travel_live": "V živo",
"travel_loading": "Nalaganje zgodovine …",
"travel_speed": "Hitrost",
"view_options": "Pogled: kakovost, videz, oznake, FPS",
"view_zoom": "Povečava",
"volume": "Glasnost",
"wallbox_charging": "polni",
"wallbox_plugged": "priključeno",
"walls_auto": "Visoke stene",
"walls_cut": "Prerez",
"walls_slope": "Poševno",
"walls_solid": "Polne",
"wifi_aps": "{n} dostopnih točk · {clients} naprav",
"wifi_clients": "{n} naprav",
"wifi_network": "Omrežje: {online} na spletu · {offline} brez povezave"
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,153 @@
{
"accent": "Vurgu rengi",
"accent_reset": "Camgöbeğine dön",
"alert_alarm_by": "Alarmı tetikleyen: {cause}",
"all_floors": "Tüm katlar",
"all_off_done": "Hepsi kapalı.",
"all_off_floor": "{floor} katında her şey kapalı ({n} cihaz), on saniye geri alınabilir",
"all_off_n": "Hepsini kapat ({n})",
"all_off_undo": "Geri al",
"announce_failed": "Anons başarısız: {error}",
"announce_on": "Bu ekrandaki anonslar açık",
"announce_placeholder": "Kendi mesajın …",
"announce_send": "Söyle",
"announce_sent": "Söylendi: \"{message}\"",
"back": "Geri",
"bars_fold": "Anahtarları gizle",
"bars_unfold": "Anahtarlar",
"battery_low_n": "Pil zayıf: {names}",
"brightness": "Parlaklık",
"card_description": "Evin 3B (neon).",
"card_floor_stack": "Alttaki katlar",
"card_room_buttons": "Oda düğmeleri",
"care_bin_days": "{n} gün sonra",
"care_bin_today": "Bugün alınıyor",
"care_bin_tomorrow": "Yarın alınıyor",
"care_time_left": "{time} kaldı",
"central": "Merkez: tüm ışıklar, panjurlar ve favoriler",
"central_covers": "Panjurlar",
"central_favorites": "Favoriler",
"central_house": "Tüm ev",
"central_lights": "Işıklar",
"central_sure": "Emin misin?",
"clock": "Saat",
"close": "Kapat",
"color": "Renk",
"color_temp": "Renk sıcaklığı",
"comfort_n": "Konfor {n}",
"confirm_switch": "{name} gerçekten değiştirilsin mi?",
"cover_close": "Kapat",
"cover_my_go": "Favori konuma ({p} %)",
"cover_open": "Aç",
"cover_stop": "Dur",
"cover_tilt": "Lameller",
"cover_tilt_close": "Lameller kapalı",
"cover_tilt_open": "Lameller açık",
"delete": "Sil",
"details": "Ayrıntılar",
"draft_discard": "Vazgeç",
"draft_found": "{time} tarihinden kaydedilmemiş değişiklikler bulundu.",
"draft_restore": "Geri yükle ve kaydet",
"empty_lights_hint": "{n} ışık açık, {min} dk'dır kimse yok.",
"empty_lights_off": "Işıkları kapat",
"energy_battery": "Batarya",
"energy_consumption": "Tüketim",
"energy_rest": "Ortak (kalan)",
"energy_solar": "Güneş",
"energy_tariff": "Tarife",
"ext_tab": "Eklentiler",
"find": "Ara",
"find_none": "Bir şey bulunamadı",
"find_placeholder": "… nerede? Cihaz veya oda",
"floor_layer": "Katman (gösterilip gizlenebilir)",
"floor_power_share": "Evin %{n}'i",
"floor_rooms": "{n} oda",
"floor_rooms_one": "1 oda",
"floors": "Katlar",
"floors_apart": "Ayrık",
"floors_stacked": "Üst üste",
"flows": "Güç akışı",
"fps_title": "Performans göstergesi (saniyedeki kare)",
"glass_walls": "Cam duvarlar",
"heat_none_found": "Odaların alanlarında uygun sensör yok.",
"heat_wifi": "Wi-Fi",
"heatmap": "Isı haritası",
"holos": "Kartlar",
"keep_camera": "Kamerayı koru",
"load_error": "Yükleme başarısız",
"loading": "Yükleniyor …",
"markers": "İşaretler",
"media_next": "Sonraki",
"media_previous": "Önceki",
"media_sources": "Kaynaklar",
"media_volume": "Ses düzeyi",
"menu_open": "Menü açık",
"meter_unmetered": "{w} ölçülmemiş",
"mood_carry": "Başka bir odaya aktar",
"mood_new": "Ortam",
"mood_save": "Ortamı kaydet",
"mood_set": "Bu ortamı uygula",
"next": "İleri",
"no_building": "Henüz kat planı yok.",
"open_editor": "Düzenleyiciyi aç",
"open_heating_hint": "Isıtma çalışırken {n} pencere açık.",
"open_heating_off": "Isıtmayı kapat",
"open_since": "{time} açık",
"outside_area": "Dışarıda",
"panel_all_close": "Hepsi aşağı",
"panel_all_off": "Hepsi kapalı",
"panel_all_on": "Hepsi açık",
"panel_all_open": "Hepsi yukarı",
"panel_less": "Daha az göster",
"panel_more": "Alandaki diğer cihazlar ({n})",
"plain": "Yalnızca kat planı",
"play_pause": "Oynat/duraklat",
"pool_pump_on": "pompa açık",
"position": "Konum",
"presence_last": "en son {time} önce görüldü",
"presence_now": "biri burada",
"presets": "İstasyonlar ve çalma listeleri (ses)",
"previous": "Geri",
"qm_off": "Kapalı",
"readable": "Kolay okunur",
"reload_page": "Yeniden yükle",
"right_back": "Sağ tık = geri",
"roof_keep": "Çatı kalır",
"room_clean_run": "Temizle",
"room_clean_run_hint": "Robot süpürgeyi bu odaya gönderir.",
"room_curve_hint": "Odanın son 24 saatteki sıcaklığı",
"room_energy": "bugün {today} · ay {month}",
"room_sun_hours": "Bugün {h} saat güneş ({facing})",
"room_sun_year": "Yıl boyunca güneş",
"save_failed_detail": "Kaydetme başarısız: {error}. Değişiklikleriniz bu tarayıcıda saklanır.",
"screen_name": "Bu ekranın adı",
"shade_close": "İndir",
"shade_hint": "{n} pencereye güneş vuruyor, {temp} – panjurlar indirilsin mi?",
"stats_idle": "Beklemede (0 fps)",
"stl": "3B baskı (STL)",
"swipe_off": "Kapalı",
"target_temp": "Hedef",
"temp_down": "Daha serin",
"temp_up": "Daha sıcak",
"time_of_day": "Günün saati",
"today": "Bugün",
"today_none": "Bugün bir şey yok.",
"travel": "Zaman yolculuğu: son 24 saati veya 7 günü yeniden oynat",
"travel_days": "gün",
"travel_failed": "Geçmiş yüklenemedi.",
"travel_live": "Canlı",
"travel_loading": "Geçmiş yükleniyor …",
"travel_speed": "Hız",
"view_options": "Görünüm: kalite, tema, işaretler, FPS",
"view_zoom": "Yakınlaştırma",
"volume": "Ses düzeyi",
"wallbox_charging": "şarj oluyor",
"wallbox_plugged": "takılı",
"walls_auto": "Yüksek duvarlar",
"walls_cut": "Kesit",
"walls_slope": "Eğimli",
"walls_solid": "Dolu",
"wifi_aps": "{n} erişim noktası · {clients} cihaz",
"wifi_clients": "{n} cihaz",
"wifi_network": "Ağ: {online} çevrimiçi · {offline} çevrimdışı"
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,295 @@
/*! NextFloor, MIT licence. Includes three.js (MIT) and Lit (BSD-3-Clause); see LICENSE and THIRD_PARTY_NOTICES.md */
var p={cs:"4be67fcd522e",da:"0fe66a82bf2a",es:"bd89dffd1355",fi:"9a17bc084f56",fr:"6312d0f61ebf",hu:"27ba348531dc",it:"1b705e76dd00",nb:"c5ea24fb9ef6",nl:"b64142c67c2e",pl:"8527a4930402",pt:"31857a2d2277",ro:"e3cb5f449f0f",sk:"320611594db0",sl:"8071691ceda3",sv:"711b911ec8da",tr:"7c83ce1c3372",zh:"50518d9f494e"};var M=globalThis,N=M.ShadowRoot&&(M.ShadyCSS===void 0||M.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,U=Symbol(),me=new WeakMap,R=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==U)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(N&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=me.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&me.set(t,e))}return e}toString(){return this.cssText}},pe=i=>new R(typeof i=="string"?i:i+"",void 0,U),V=(i,...e)=>{let t=i.length===1?i[0]:e.reduce((n,r,o)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[o+1],i[0]);return new R(t,i,U)},fe=(i,e)=>{if(N)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),r=M.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=t.cssText,i.appendChild(n)}},j=N?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return pe(t)})(i):i;var{is:Ke,defineProperty:Ge,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:Ie,getOwnPropertySymbols:Ze,getPrototypeOf:Ue}=Object,C=globalThis,ge=C.trustedTypes,Ve=ge?ge.emptyScript:"",je=C.reactiveElementPolyfillSupport,F=(i,e)=>i,q={toAttribute(i,e){switch(e){case Boolean:i=i?Ve:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},we=(i,e)=>!Ke(i,e),be={attribute:!0,type:String,converter:q,reflect:!1,useDefault:!1,hasChanged:we};Symbol.metadata??=Symbol("metadata"),C.litPropertyMetadata??=new WeakMap;var b=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=be){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&Ge(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:o}=Oe(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:r,set(a){let s=r?.call(this);o?.call(this,a),this.requestUpdate(e,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??be}static _$Ei(){if(this.hasOwnProperty(F("elementProperties")))return;let e=Ue(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(F("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(F("properties"))){let t=this.properties,n=[...Ie(t),...Ze(t)];for(let r of n)this.createProperty(r,t[r])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[n,r]of t)this.elementProperties.set(n,r)}this._$Eh=new Map;for(let[t,n]of this.elementProperties){let r=this._$Eu(t,n);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let r of n)t.unshift(j(r))}else e!==void 0&&t.push(j(e));return t}static _$Eu(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return fe(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.Line truncated
\f\r]`,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ye=/-->/g,Se=/>/g,S=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ae=/'/g,De=/"/g,Re=/^(?:script|style|textarea|title)$/i,ie=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),l=ie(1),ct=ie(2),ut=ie(3),z=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ze=new WeakMap,A=D.createTreeWalker(D,129);function Fe(i,e){if(!re(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ve!==void 0?ve.createHTML(e):e}var Xe=(i,e)=>{let t=i.length-1,n=[],r,o=e===2?"<svg>":e===3?"<math>":"",a=x;for(let s=0;s<t;s++){let h=i[s],u,m,_=-1,g=0;for(;g<h.length&&(a.lastIndex=g,m=a.exec(h),m!==null);)g=a.lastIndex,a===x?m[1]==="!--"?a=ye:m[1]!==void 0?a=Se:m[2]!==void 0?(Re.test(m[2])&&(r=RegExp("</"+m[2],"g")),a=S):m[3]!==void 0&&(a=S):a===S?m[0]===">"?(a=r??x,_=-1):m[1]===void 0?_=-2:(_=a.lastIndex-m[2].length,u=m[1],a=m[3]===void 0?S:m[3]==='"'?De:Ae):a===De||a===Ae?a=S:a===ye||a===Se?a=x:(a=S,r=void 0);let k=a===S&&i[s+1].startsWith("/>")?" ":"";o+=a===x?h+qe:_>=0?(n.push(u),h.slice(0,_)+Ee+h.slice(_)+v+k):h+v+(_===-2?s:k)}return[Fe(i,o+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},B=class i{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,a=0,s=e.length-1,h=this.parts,[u,m]=Xe(e,t);if(this.el=i.createElement(u,n),A.currentNode=this.el.content,t===2||t===3){let _=this.el.content.firstChild;_.replaceWith(..._.childNodes)}for(;(r=A.nextNode())!==null&&h.length<s;){if(r.nodeType===1){if(r.hasAttributes())for(let _ of r.getAttributeNames())if(_.endsWith(Ee)){let g=m[a++],k=r.getAttribute(_).split(v),L=/([.?@])?(.*)/.exec(g);h.push({type:1,index:o,name:L[2],strings:k,ctor:L[1]==="."?Y:L[1]==="?"?Q:L[1]==="@"?ee:T}),r.removeAttribute(_)}else _.startsWith(v)&&(h.push({type:6,index:o}),r.removeAttribute(_));if(Re.test(r.tagName)){let _=r.textContent.split(v),g=_.length-1;if(g>0){r.textContent=K?K.emptyScript:"";for(let k=0;k<g;k++)r.append(_[k],H()),A.nextNode(),h.push({type:2,index:++o});r.append(_[g],H())}}}else if(r.nodeType===8)if(r.data===Te)h.push({type:2,index:o});else{let _=-1;for(;(_=r.data.indexOf(v,_+1))!==-1;)h.push({type:7,index:o}),_+=v.length-1}o++}}static createElement(e,t){let n=D.createElement("template");return n.innerHTML=e,n}};function E(i,e,t=i,n){if(e===z)return e;let r=n!==void 0?t._$Co?.[n]:t._$Cl,o=W(e)?void 0:e._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),o===void 0?r=void 0:(r=new o(i),r._$AT(i,t,n)),n!==void 0?(t._$Co??=[])[n]=r:t._$Cl=r),r!==void 0&&(e=E(i,r._$AS(i,e.values),r,n)),e}var X=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??D).importNode(t,!0);A.currentNode=r;let o=A.nextNode(),a=0,s=0,h=n[0];for(;h!==void 0;){if(a===h.index){let u;h.type===2?u=new P(o,o.nextSibling,this,e):h.type===1?u=new h.ctor(o,h.name,h.strings,this,e):h.type===6&&(u=new te(o,this,e)),this._$AV.push(u),h=n[++s]}a!==h?.index&&(o=A.nextNode(),a++)}return A.currentNode=D,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},P=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=E(this,e,t),W(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Je(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==d&&W(this._$AH)?this._$AA.nextSibling.data=e:this.T(D.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=B.createElement(Fe(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let o=new X(r,this),a=o.u(this.options);o.p(t),this.T(a),this._$AH=o}}_$AC(e){let t=ze.get(e.strings);return t===void 0&&ze.set(e.strings,t=new B(e)),t}k(e){re(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,r=0;for(let o of e)r===t.length?t.push(n=new i(this.O(H()),this.O(H()),this,this.options)):n=t[r],n._$AI(o),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let n=ke(e).nextSibling;ke(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},T=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):thiLine truncated
<input type="checkbox" .checked=${e} @change=${o=>r(nt(o))} />
<span>${i.t(t)}${n?l`<small>${i.t(n)}</small>`:d}</span>
</label>`}var c=(i,e,t,n)=>f(i,i.value[e],t,n,r=>i.set(e,r)),se=(i,e,t,n)=>f(i,i.value[e],t,n,r=>i.set(e,r||void 0));function w(i,e,t,n,r){return l`<label class="field"
>${i.t(t)}
<select @change=${o=>i.set(e,O(o))}>
${n.map(([o,a])=>l`<option value=${o} ?selected=${o===r}>${i.t(a)}</option>`)}
</select>
</label>`}function le(i,e,t,n){return l`<label class="field"
>${i.t(t)}
<select @change=${r=>i.set(e,Number(O(r))||void 0)}>
${n.map(r=>l`<option value=${r.value} ?selected=${i.value[e]===r.value}>${r.text}</option>`)}
</select>
</label>`}function I(i,e,t,n=""){return l`<label class="field wide"
>${i.t(t)}
<input type="text" placeholder=${n} .value=${i.value[e]??""} @change=${r=>i.set(e,tt(r).trim()||void 0)} />
</label>`}function he(i,e,t,n){let r=n===void 0?"switch":n?"on":"off",o=[["switch","card_flows_switch"],["on","card_flows_on"],["off","card_flows_off"]];return l`<label class="field wide"
>${i.t(t)}
<select @change=${a=>i.set(e,O(a)==="switch"?void 0:O(a)==="on")}>
${o.map(([a,s])=>l`<option value=${a} ?selected=${r===a}>${i.t(s)}</option>`)}
</select>
</label>`}var Pe=V`
:host {
display: block;
color: var(--primary-text-color);
}
h3 {
margin: 18px 0 8px;
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--secondary-text-color);
}
h3:first-child {
margin-top: 0;
}
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px 12px;
}
[hidden] {
display: none;
}
.wide {
grid-column: 1 / -1;
}
.field {
display: grid;
gap: 4px;
font-size: 13px;
color: var(--secondary-text-color);
}
select,
input[type="number"],
input[type="text"] {
box-sizing: border-box;
width: 100%;
min-height: 40px;
padding: 8px 10px;
border: 1px solid var(--divider-color, rgba(127, 127, 127, 0.4));
border-radius: 8px;
background: var(--card-background-color, transparent);
color: var(--primary-text-color);
font: inherit;
font-size: 14px;
}
.toggle {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 8px 0;
font-size: 14px;
cursor: pointer;
}
.toggle input {
flex: none;
width: 18px;
height: 18px;
margin: 1px 0 0;
accent-color: var(--primary-color);
}
.sub {
display: flex;
flex-wrap: wrap;
gap: 6px 14px;
margin: -2px 0 6px 28px;
}
.chip {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
cursor: pointer;
}
.chip input {
width: 16px;
height: 16px;
margin: 0;
accent-color: var(--primary-color);
}
.toggle small,
.hint {
display: block;
margin: 2px 0 0;
font-size: 12px;
color: var(--secondary-text-color);
}
@media (max-width: 450px) {
.grid {
grid-template-columns: 1fr;
}
}
`;var ce=globalThis,de=ce.__nextfloorBuiltin?.de??{},_e=ce.__nextfloorBuiltin?.en??{};ce.__nextfloorBuiltin??={de,en:_e};var $e=()=>typeof p=="object"&&p||{},rt=globalThis,Z=rt.__nextfloorTexts??=new Map;function Le(i){let e=i.toLowerCase().split("-")[0];return e!=="de"&&e!=="en"&&e in $e()?e:void 0}function it(i){let e=Le(i),t=e===void 0?void 0:Z.get(e);return t instanceof Promise?void 0:t}function Me(i,e){let t=Le(i?.language??navigator.language);if(t===void 0)return!1;let n=Z.get(t);return n===void 0&&(n=fetch(new URL(`./lang/${t}.json?v=${$e()[t]}`,import.meta.url)).then(r=>r.ok?r.json():{}).catch(()=>({})).then(r=>{Z.set(t,r&&typeof r=="object"?r:{})}),Z.set(t,n)),n instanceof Promise?(n.then(()=>e.requestUpdate()),!0):!1}function Ne(i,e,t={}){let n=i?.language??navigator.language,r=n.startsWith("de"),o=(r?void 0:it(n)?.[e])??(r?de:_e)[e]??_e[e]??de[e]??e;for(let[a,s]of Object.entries(t))o=o.replace(`{${a}}`,String(s));return o}var ue=class extends y{static properties={hass:{attribute:!1},_config:{state:!0},_floors:{state:!0},_rooms:{state:!0},_templates:{state:!0}};loading=!1;form;constructor(){super(),this._config={type:"custom:nextfloor-card"},this._floors=[],this._rooms=[],this._templates=[];let e=this;this.form={get value(){return{...ae,...e._config}},t:(t,n)=>Ne(e.hass,t,n),set:(t,n)=>e.write(t,n)}}setConfig(e){this._config=e}willUpdate(){this.hass&&!this.loading&&this._floors.length===0&&(this.loading=!0,He(this.hass).then(e=>{this._floors=e.building.floors.map(t=>({id:t.id,name:t.name})),this._templates=Object.keys(e.building.settings.card_templates??{}),this._rooms=e.building.floors.flatMap(t=>t.rooms.map(n=>({id:n.id,name:n.name,floor:t.name})))},()=>{}))}write(e,t){let n={...this._config};t===void 0||t===""||ae[e]===t?delete n[e]:n[e]=t,this.publish(n)}publish(e){this._config=e,this.dispatchEvent(new CustomEvent("config-changed",{detail:{config:e},bubbles:!0,composed:!0}))}roomsChoice(){if(this._rooms.length===0)return l``;let e=new Set(this._config.rooms??[]),t=(n,r)=>{let o=this._rooms.map(a=>a.id).filter(a=>a===n?r:e.has(a));this.form.set("rooms",o.length?o:void 0)};return l`<fieldset class="rooms">
<legend>${this.form.t("card_rooms")}</legend>
<small>${this.form.t("card_rooms_hint")}</small>
${this._rooms.map(n=>l`<label class="toggle"><input type="checkbox" .checked=${e.has(n.id)} @change=${r=>t(n.id,r.target.checked)} /><span>${this._floors.length>1?`${n.floor} \xB7 `:""}${n.name}</span></label>`)}
</fieldset>`}floorThumbsToggle(){let e=!this._config.floor,t=this._config.floor?"card_floor_thumbs_hint_start":"card_floor_thumbs_hint";return f(this.form,this._config.floor_thumbs??e,"card_floor_thumbs",t,n=>{let r={...this._config};n===e?delete r.floor_thumbs:r.floor_thumbs=n,this.publish(r)})}controlsSection(){let e=this.form,t=this._config.controls,n=!!t&&(t===!0||t.length>0),r=t===!0?[...$]:Array.isArray(t)?t:[],o=s=>e.set("controls",s.length===$.length?!0:s.length>0?s:void 0),a=[0,10,30,60,120].map(s=>({value:s,text:s?e.t("card_hide_after_s",{n:s}):e.t("card_idle_off")}));return l`${f(e,n,"card_controls","card_controls_hint",s=>e.set("controls",s?!0:void 0))}
${f(e,e.value.central,"card_central","card_central_hint",s=>e.set("central",s?void 0:!1))}
${f(e,e.value.lock_button!==!1,"card_lock_button",void 0,s=>e.set("lock_button",s?void 0:!1))}
${f(e,e.value.walk_button!==!1,"card_walk_button",void 0,s=>e.set("walk_button",s?void 0:!1))}
${f(e,e.value.time_travel!==!1,"card_travel_button",void 0,s=>e.set("time_travel",s?void 0:!1))}
${se(e,"marker_names","card_marker_names","card_marker_names_hint")} ${se(e,"controls_hidden","card_controls_hidden","card_controls_hidden_hint")}
${le(e,"controls_hide_after","card_controls_hide_after",a)}
${n?l`<div class="sub">
${$.map(s=>l`<label class="chip">
<input
type="checkbox"
.checked=${r.includes(s)}
@change=${h=>o(h.target.checked?$.filter(u=>u===s||r.includes(u)):r.filter(u=>u!==s))}
/>
${e.t(`card_control_${s}`)}
</label>`)}
</div>`:d}`}kioskSection(){let e=this.form,{night:t}=e.value,n=t==="off"||t==="sun"?t:"time",r=[0,1,2,5,10].map(a=>({value:a*60,text:a?e.t("card_idle_min",{n:a}):e.t("card_idle_off")})),o=[["off","card_night_off"],["sun","card_night_sun"],["time","card_night_time"]];return l`<h3>${e.t("card_section_kiosk")}</h3>
<div class="grid">
${le(e,"idle_return","card_idle_return",r)}
<label class="field"
>${e.t("card_night")}
<select @change=${a=>e.set("night",{off:void 0,sun:"sun",time:"22:00-06:00"}[a.target.value])}>
${o.map(([a,s])=>l`<option value=${a} ?selected=${n===a}>${e.t(s)}</option>`)}
</select>
</label>
${n==="time"?l`<label class="field wide"
>${e.t("card_night_range")}
<input type="text" pattern="\\d{1,2}:\\d{2}-\\d{1,2}:\\d{2}" placeholder="22:00-06:00" .value=${t} @change=${a=>e.set("night",a.target.value.trim()||void 0)} />
</label>`:d}
</div>
<p class="hint">${e.t("card_idle_hint")}</p>
${c(e,"idle_orbit","card_idle_orbit","card_idle_orbit_hint")}
<div class="grid">${I(e,"dashboard","card_dashboard","/lovelace/home")} ${I(e,"dashboard_label","card_dashboard_label")}</div>
<p class="hint">${e.t("card_dashboard_hint")}</p>`}featuresSection(){let e=this.form,t=Object.keys(this.hass?.states??{}).filter(n=>n.startsWith("weather.")).sort();return l`<h3>${e.t("card_section_features")}</h3>
${c(e,"alerts","card_alerts","card_alerts_hint")} ${c(e,"alert_jump","card_alert_jump","card_alert_jump_hint")}
${c(e,"scenes","card_scenes","card_scenes_hint")}
${c(e,"sensor_bar","card_sensor_bar","card_sensor_bar_hint")}
${c(e,"central_open","card_central_open","card_central_open_hint")}
${c(e,"keep_camera","card_keep_camera","card_keep_camera_hint")}
${c(e,"readable","card_readable","readable_hint")}
${c(e,"plain","card_plain","plain_hint")}
${c(e,"right_back","right_back","right_back_hint")}
${this.roomsChoice()}
${c(e,"today","card_today","card_today_hint")}
<label class="field"
>${e.t("view_zoom")}
<select @change=${n=>e.set("zoom",Number(n.target.value))}>
${[.8,1,1.25,1.5,1.75,2,2.5].map(n=>l`<option value=${n} ?selected=${(e.value.zoom??1)===n}>${Math.round(n*100)} %</option>`)}
</select>
</label>
${c(e,"announcements","card_announcements","card_announcements_hint")}
${e.value.announcements!==!1?l`<div class="grid">${I(e,"screen_name","screen_name")}</div>`:d}
${c(e,"weather","card_weather","card_weather_hint")}
${e.value.weather!==!1?l`<div class="grid">
<label class="field wide"
>${e.t("weather_entity")}
<select @change=${n=>e.set("weather_entity",n.target.value||void 0)}>
<option value="" ?selected=${!e.value.weather_entity}>${e.t("card_weather_plan")}</option>
${t.map(n=>l`<option value=${n} ?selected=${n===e.value.weather_entity}>${String(this.hass?.states[n]?.attributes.friendly_name??n)}</option>`)}
</select>
</label>
<label class="field"
>${e.t("card_weather_density")}
<select @change=${n=>e.set("weather_density",Number(n.target.value))}>
${[1,.75,.5,.3,.15].map(n=>l`<option value=${n} ?selected=${(e.value.weather_density??1)===n}>${Math.round(n*100)} %</option>`)}
</select>
</label>
<p class="hint wide">${e.t("card_weather_density_hint")}</p>
</div>`:d}
<p class="hint">${e.t("card_pro_hint")}</p>`}furnitureColors(e){let t=this._config.furniture_colors??{},n=(r,o)=>{let a={...t,[r]:o};o||delete a[r],e.set("furniture_colors",Object.keys(a).length?a:void 0)};return l`<details class="field">
<summary>${e.t("furn_colors_card")}${Object.keys(t).length?` (${Object.keys(t).length})`:""}</summary>
${We.map(r=>l`<label class="field"
>${e.t(`furn_color_${r}`)}
<input type="color" .value=${t[r]??Be[r]} @input=${o=>n(r,o.target.value)} />
${t[r]?l`<button type="button" class="link" @click=${()=>n(r,null)}>${e.t("furn_color_house")}</button>`:d}
</label>`)}
</details>`}viewSection(){let e=this.form,t=e.value;return l`<h3>${e.t("card_section_view")}</h3>
<div class="grid">
${this._templates.length?l`<label class="field wide"
>${e.t("card_template")}
<select @change=${n=>e.set("template",n.target.value||void 0)}>
<option value="" ?selected=${!t.template}>${e.t("card_template_none")}</option>
${this._templates.map(n=>l`<option value=${n} ?selected=${n===t.template}>${n}</option>`)}
${t.template&&!this._templates.includes(t.template)?l`<option value=${t.template} selected>${t.template}</option>`:d}
</select>
</label>`:d}
<label class="field wide"
>${e.t("card_floor")}
<select @change=${n=>e.set("floor",n.target.value||void 0)}>
<option value="" ?selected=${!t.floor}>${e.t("card_floor_house")}</option>
${this._floors.map(n=>l`<option value=${n.id} ?selected=${n.id===t.floor}>${n.name}</option>`)}
${t.floor&&!this._floors.some(n=>n.id===t.floor)?l`<option value=${t.floor} selected>${t.floor}</option>`:d}
</select>
</label>
<label class="field"
>${e.t("card_size")}
<select @change=${n=>e.set("fill",n.target.value==="fill")}>
<option value="fixed" ?selected=${!t.fill}>${e.t("card_size_fixed")}</option>
<option value="fill" ?selected=${t.fill}>${e.t("card_size_fill")}</option>
</select>
</label>
<label class="field" ?hidden=${t.fill}
>${e.t("card_height")}
<input
type="number"
min="150"
max="2000"
step="10"
.value=${String(t.height)}
@change=${n=>{let r=Math.round(Number(n.target.value));r>100&&e.set("height",r)}}
/>
</label>
${w(e,"theme","theme",[["auto","theme_auto"],["neon","theme_neon"],["blueprint","theme_blueprint"],["day","theme_day"]],t.theme)}
${w(e,"clock","clock",[["none","clock_none"],["top_left","clock_top_left"],["top_right","clock_top_right"],["bottom_left","clock_bottom_left"],["bottom_right","clock_bottom_right"]],t.clock??"none")}
<label class="field"
>${e.t("accent")}
<input type="color" .value=${this._config.accent??"#37e0ff"} @input=${n=>e.set("accent",n.target.value)} />
${this._config.accent?l`<button type="button" class="link" @click=${()=>e.set("accent",void 0)}>${e.t("accent_reset")}</button>`:d}
</label>
${this.furnitureColors(e)}
${w(e,"walls","card_walls",[["auto","walls_auto"],["cut","walls_cut"],["slope","walls_slope"]],t.walls)}
${c(e,"solid_walls","card_solid_walls")}
<label class="field" title=${e.t("glass_walls_hint")}
>${e.t("glass_walls")} (${this._config.glass_walls??20} %)
<input type="range" min="0" max="100" step="5" .value=${String(this._config.glass_walls??20)} @change=${n=>{let r=Number(n.target.value);e.set("glass_walls",r===20?void 0:r)}} />
</label>
${w(e,"quality","quality",[["auto","quality_auto"],["low","quality_low"],["high","quality_high"]],t.quality)}
${w(e,"floor_stack","card_floor_stack",[["dim","floor_stack_dim"],["stacked","floor_stack_stacked"],["single","floor_stack_single"]],t.floor_stack)}
</div>
${t.fill?l`<p class="hint">${e.t("card_fill_hint")}</p>`:d}
<p class="hint">${e.t("card_quality_hint")}</p>`}markersOutside(){let e=this.form,t=e.value.markers_outside;return l`${f(e,!!t,"card_markers_outside","card_markers_outside_hint",n=>e.set("markers_outside",n?G.filter(r=>r!=="light"):void 0))}
${t?l`<div class="sub">
${G.map(n=>l`<label class="chip">
<input
type="checkbox"
.checked=${t.includes(n)}
@change=${r=>e.set("markers_outside",r.target.checked?G.filter(o=>o===n||t.includes(o)):t.filter(o=>o!==n))}
/>
${e.t(`marker_kind_${n}`)}
</label>`)}
</div>`:d}`}showSection(){let e=this.form,t=e.value;return l`<h3>${e.t("card_section_show")}</h3>
<div class="grid">
${w(e,"markers","markers",[["none","markers_none"],["important","markers_important"],["all","markers_all"]],t.markers)}
${w(e,"heatmap","heatmap",[["none","heat_off"],["temperature","heat_temperature"],["humidity","heat_humidity"],["co2","heat_co2"],["mould","heat_mould"],["values","heat_values"],["wifi","heat_wifi"]],t.heatmap)}
${he(e,"flows","flows",t.flows)} ${he(e,"holograms","holos",t.holograms)}
</div>
${c(e,"tap_in_room","card_tap_in_room","card_tap_in_room_hint")} ${w(e,"room_double_tap","room_double_tap",[["auto","card_room_double_tap_auto"],["area","room_double_tap_area"],["plan","room_double_tap_plan"],["off","room_double_tap_off"]],t.room_double_tap)} ${this.markersOutside()} ${this.controlsSection()} ${this.floorThumbsToggle()} ${c(e,"room_names","card_room_names")} ${c(e,"energy","card_energy")}
${c(e,"room_buttons","card_room_buttons","card_room_buttons_hint")} ${c(e,"room_panel","card_room_panel","card_room_panel_hint")} ${c(e,"fullscreen_button","card_fullscreen_button","card_fullscreen_button_hint")}
${c(e,"explode","card_explode")} ${c(e,"roof_fade","card_roof_fade","card_roof_fade_hint")} ${c(e,"stats","card_stats","card_stats_hint")}`}render(){return this.hass&&Me(this.hass,this)?d:l`${this.viewSection()} ${this.showSection()} ${this.featuresSection()} ${this.kioskSection()}`}static styles=Pe};customElements.get("nextfloor-card-editor")||customElements.define("nextfloor-card-editor",ue);export{ue as NextFloorCardEditor};
/*! Bundled license information:
@lit/reactive-element/css-tag.js:
(**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/reactive-element.js:
lit-html/lit-html.js:
lit-element/lit-element.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
lit-html/is-server.js:
(**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
{
"services": {
"announce": {
"service": "mdi:bullhorn"
}
}
}
+26
View File
@@ -0,0 +1,26 @@
{
"domain": "nextfloor",
"name": "NextFloor",
"after_dependencies": [
"bluetooth",
"media_source",
"tts"
],
"codeowners": [
"@therealMRBK"
],
"config_flow": true,
"dependencies": [
"frontend",
"http",
"panel_custom",
"websocket_api"
],
"documentation": "https://github.com/therealMRBK/NextFloor#readme",
"integration_type": "service",
"iot_class": "calculated",
"issue_tracker": "https://github.com/therealMRBK/NextFloor/issues",
"requirements": [],
"single_config_entry": true,
"version": "0.26.6"
}
+87
View File
@@ -0,0 +1,87 @@
"""3D models (binary glTF) you own, kept on your Home Assistant and shown in place of a pack item's simple shape.
NextFloor ships none of them. A pack item names a model with `mesh`; when a file with that id exists in
`<config>/nextfloor_meshes/`, the 3D view draws it, otherwise the item's own parts. Admins upload them (see
docs/models.md); everyone logged in can read them.
"""
from __future__ import annotations
from http import HTTPStatus
from pathlib import Path
import re
from aiohttp import web
from homeassistant.components.http import HomeAssistantView
from homeassistant.core import HomeAssistant
from .const import DOMAIN
MESH_DIR = "nextfloor_meshes"
MAX_BYTES = 12 * 1024 * 1024
_ID = re.compile(r"^[a-z0-9_]{1,48}$")
_REGISTERED = f"{DOMAIN}_mesh_view"
def _path(hass: HomeAssistant, mesh_id: str) -> Path | None:
if not _ID.match(mesh_id):
return None
return Path(hass.config.path(MESH_DIR)) / f"{mesh_id}.glb"
class MeshView(HomeAssistantView):
"""Read, upload (admin) or remove (admin) one model."""
url = "/api/nextfloor/mesh/{mesh_id}"
name = "api:nextfloor:mesh"
requires_auth = True
async def get(self, request: web.Request, mesh_id: str) -> web.Response:
hass: HomeAssistant = request.app["hass"]
path = _path(hass, mesh_id)
if path is None:
return web.Response(status=HTTPStatus.BAD_REQUEST)
data = await hass.async_add_executor_job(lambda: path.read_bytes() if path.is_file() else None)
if data is None:
return web.Response(status=HTTPStatus.NOT_FOUND)
return web.Response(
body=data, content_type="model/gltf-binary", headers={"Cache-Control": "private, max-age=3600"}
)
async def post(self, request: web.Request, mesh_id: str) -> web.Response:
hass: HomeAssistant = request.app["hass"]
if not request["hass_user"].is_admin:
return web.Response(status=HTTPStatus.UNAUTHORIZED)
path = _path(hass, mesh_id)
if path is None:
return web.Response(status=HTTPStatus.BAD_REQUEST)
data = await request.read()
if len(data) > MAX_BYTES:
return web.Response(status=HTTPStatus.REQUEST_ENTITY_TOO_LARGE)
if data[:4] != b"glTF":
return web.Response(status=HTTPStatus.BAD_REQUEST, text="not a binary glTF (.glb) file")
def write() -> None:
path.parent.mkdir(parents=True, exist_ok=True)
path.write_bytes(data)
await hass.async_add_executor_job(write)
return web.Response(status=HTTPStatus.CREATED)
async def delete(self, request: web.Request, mesh_id: str) -> web.Response:
hass: HomeAssistant = request.app["hass"]
if not request["hass_user"].is_admin:
return web.Response(status=HTTPStatus.UNAUTHORIZED)
path = _path(hass, mesh_id)
if path is None:
return web.Response(status=HTTPStatus.BAD_REQUEST)
await hass.async_add_executor_job(lambda: path.unlink(missing_ok=True))
return web.Response(status=HTTPStatus.NO_CONTENT)
def async_register_mesh_view(hass: HomeAssistant) -> None:
"""Register the model endpoint once."""
if hass.data.get(_REGISTERED):
return
hass.data[_REGISTERED] = True
hass.http.register_view(MeshView())
+266
View File
@@ -0,0 +1,266 @@
"""Furniture packs: JSON files with furniture models built from boxes, cylinders and lofts.
A pack is plain JSON (format, id, name, publisher, items). The packs that come with the integration
(packs/*.json) are always there, and anyone can import their own.
"""
from __future__ import annotations
import json
from pathlib import Path
from typing import Any
import voluptuous as vol
PACK_FORMAT = "nfpack"
PACK_VERSION = 1
# largest pack file accepted (characters of JSON)
MAX_PACK_SIZE = 1_000_000
_ID = vol.All(str, vol.Match(r"^[a-z0-9][a-z0-9_.-]{0,39}$"))
_TEXT = vol.All(str, vol.Length(min=1, max=80))
# a colour: "#rrggbb" or a role of the built-in palette (so packs follow the look of the plan)
_COLOR = vol.Any(
vol.Match(r"^#[0-9a-fA-F]{6}$"),
vol.In(["body", "fabric", "cushion", "wood", "white", "metal", "dark", "glass", "plant", "pot", "accent"]),
)
_FRACTION = vol.All(vol.Coerce(float), vol.Range(min=-0.5, max=0.5))
_SPAN = vol.All(vol.Coerce(float), vol.Range(min=0.001, max=1))
_LEVEL = vol.All(vol.Coerce(float), vol.Range(min=0, max=1))
_METRES = vol.All(vol.Coerce(float), vol.Range(min=0.01, max=10))
def _station(value: Any) -> list[float]:
"""A cross section of a sweep: [z, bottom, top, width] in fractions of the item's depth, height and width."""
if not isinstance(value, (list, tuple)) or len(value) != 4:
raise vol.Invalid("a station is [z, bottom, top, width]")
z, y0, y1, w = (float(v) for v in value)
if not (-0.5 <= z <= 0.5 and 0 <= y0 <= 1 and 0 <= y1 <= 1 and 0.001 <= w <= 1):
raise vol.Invalid("station out of range")
return [z, y0, y1, w]
# Parts in fractions of the item's size: x/z centre (-0.5..0.5, front at +z), w/d extent, y/h bottom
# and height of the item height. A cylinder's diameter is the smaller of w and d.
PART_SCHEMA = vol.Schema(
{
vol.Required("shape"): vol.In(["box", "cyl", "loft", "sweep"]),
vol.Required("x"): _FRACTION,
vol.Required("z"): _FRACTION,
vol.Required("w"): _SPAN,
vol.Required("d"): _SPAN,
vol.Required("y"): _LEVEL,
vol.Required("h"): _SPAN,
vol.Required("color"): _COLOR,
vol.Optional("top"): _COLOR,
# outline: True (soft blue), "glow" (cyan like the walls) or "faint"
vol.Optional("edges", default=False): vol.Any(bool, vol.In(["glow", "faint"])),
# lamps: the part shines in the colour and brightness of the linked light
vol.Optional("glow", default=False): bool,
# a screen (TV, monitor): shows the linked media player's app colour and picture on its front (+z)
vol.Optional("screen", default=False): bool,
# a picture frame's opening: shows the item's own photo (a stored picture, a URL or an image entity)
vol.Optional("picture", default=False): bool,
# a button or socket of a switch plate (0 = the first): glows while the entity of that gang is on
vol.Optional("gang"): vol.All(vol.Coerce(int), vol.Range(min=0, max=7)),
# moves with the item's cover entity: rolls up ("down"), gathers to a side, reaches out ("out") or slides away
vol.Optional("move"): vol.In(["down", "left", "right", "out", "slide_left", "slide_right"]),
# loft: centre and extent of the top rectangle (default: the same as the bottom)
vol.Optional("tx"): _FRACTION,
vol.Optional("tz"): _FRACTION,
vol.Optional("tw"): _SPAN,
vol.Optional("td"): _SPAN,
# sweep: cross sections along z, each [z, bottom, top, width] in fractions of the item's depth, height, width
vol.Optional("stations"): vol.All([_station], vol.Length(min=2, max=48)),
# sweep: how boxy the cross section is (2 = ellipse) and how many points go round it
vol.Optional("exp"): vol.All(vol.Coerce(float), vol.Range(min=1.5, max=8)),
vol.Optional("n"): vol.All(vol.Coerce(int), vol.Range(min=6, max=32)),
# cylinder axis: upright (default) or lying along x or z (wheels, rollers)
vol.Optional("axis"): vol.In(["x", "y", "z"]),
# turn of the part around its own centre (degrees around the vertical axis): spiral steps, diagonals
vol.Optional("rot"): vol.All(vol.Coerce(float), vol.Range(min=-360, max=360)),
# a body part that takes the item's chosen colour (see "colors" of the item)
vol.Optional("paint"): bool,
}
)
# Plan symbol in the same fractions (optional: without it the parts are drawn from above).
SYMBOL_SCHEMA = vol.Any(
vol.Schema(
{
vol.Required("shape"): "rect",
"x": _FRACTION,
"z": _FRACTION,
"w": _SPAN,
"d": _SPAN,
vol.Optional("fill", default=False): bool,
}
),
vol.Schema({vol.Required("shape"): "circle", "x": _FRACTION, "z": _FRACTION, "r": _SPAN}),
vol.Schema({vol.Required("shape"): "line", "x1": _FRACTION, "z1": _FRACTION, "x2": _FRACTION, "z2": _FRACTION}),
)
# A choosable colour of an item (a car's paint): parts with "paint": true are drawn in the chosen one.
COLORWAY_SCHEMA = vol.Schema(
{
vol.Required("id"): vol.All(str, vol.Match(r"^[a-z0-9_]{1,24}$")),
vol.Required("name"): vol.All({vol.All(str, vol.Length(min=2, max=5)): _TEXT}, vol.Length(min=1, max=10)),
vol.Required("hex"): vol.Match(r"^#[0-9a-fA-F]{6}$"),
}
)
# The settings of an item built in the editor's furniture studio, kept so it can be opened there again (sizes in cm).
_COUNT = vol.All(vol.Coerce(int), vol.Range(min=0, max=12))
RECIPE_SCHEMA = vol.Schema(
{
vol.Required("kind"): vol.In(["cabinet", "shelf", "lamp", "device"]),
vol.Required("name"): vol.All(str, vol.Length(max=60)),
vol.Required("w"): vol.All(vol.Coerce(float), vol.Range(min=1, max=1000)),
vol.Required("d"): vol.All(vol.Coerce(float), vol.Range(min=1, max=1000)),
vol.Required("h"): vol.All(vol.Coerce(float), vol.Range(min=1, max=1000)),
vol.Optional("doors", default=0): _COUNT,
vol.Optional("drawers", default=0): _COUNT,
vol.Optional("shelves", default=0): _COUNT,
vol.Optional("base", default="none"): vol.In(["none", "legs", "plinth"]),
vol.Optional("handle", default="none"): vol.In(["bar", "knob", "none"]),
vol.Optional("back", default=False): bool,
vol.Optional("lamp", default="floor"): vol.In(["floor", "table", "pendant", "wall"]),
vol.Optional("display", default=False): bool,
vol.Optional("mount", default="floor"): vol.In(["floor", "surface", "wall"]),
vol.Optional("body", default="body"): _COLOR,
vol.Optional("front", default="body"): _COLOR,
}
)
ITEM_SCHEMA = vol.Schema(
{
vol.Required("id"): _ID,
# names by language ("de", "en", …); "en" or the first one is the fallback
vol.Required("name"): vol.All({vol.All(str, vol.Length(min=2, max=5)): _TEXT}, vol.Length(min=1, max=10)),
vol.Required("size"): vol.All([_METRES], vol.Length(min=3, max=3)),
vol.Optional("electric", default=False): bool,
# a thermostat / heat pump / A/C item: links to a climate entity and may also have a power sensor
vol.Optional("climate", default=False): bool,
# where it stands: on the floor, on the furniture below it, on a wall (bottom at wall_y) or
# hanging from the ceiling
vol.Optional("mount", default="floor"): vol.In(["floor", "surface", "wall", "ceiling"]),
vol.Optional("wall_y", default=1.0): vol.All(vol.Coerce(float), vol.Range(min=0, max=3)),
# its top carries other items (like a table or a worktop)
vol.Optional("surface", default=False): bool,
# a 3D model the owner has put on their Home Assistant (see meshes.py); the parts are the fallback
vol.Optional("mesh"): vol.All(str, vol.Match(r"^[a-z0-9_]{1,48}$")),
# a vehicle: offered for parking spots
vol.Optional("vehicle", default=False): bool,
# moving parts: an open cover pulls them in ("retracts") or out ("extends", an awning), and their rest
vol.Optional("cover"): vol.In(["retracts", "extends"]),
vol.Optional("cover_rest"): vol.All(vol.Coerce(float), vol.Range(min=0, max=1)),
# an animal that roams its room in 3D
vol.Optional("pet", default=False): bool,
# the household: a waste bin (pickup day), a mailbox (post) or a plant (soil moisture), shown from a sensor
vol.Optional("household"): vol.In(["bin", "mail", "plant"]),
# light switches and sockets: how many buttons (gangs) the item has, each linked to its own entity
vol.Optional("gangs"): vol.All(vol.Coerce(int), vol.Range(min=1, max=8)),
# scale every part evenly when resized, instead of keeping legs, arms and plates at their size
vol.Optional("stretch", default=False): bool,
# stairs: when it reaches the floor above, it cuts a stairwell opening into that floor
vol.Optional("hole", default=False): bool,
# a lamp: how its light spreads (like the built-in lamp of that kind)
vol.Optional("light"): vol.In(
[
"ceiling",
"downlight",
"spot",
"panel",
"pendant",
"floor",
"uplight",
"table",
"wall",
"strip",
"bollard",
"garden",
]
),
vol.Required("parts"): vol.All([PART_SCHEMA], vol.Length(min=1, max=60)),
vol.Optional("symbol"): vol.All([SYMBOL_SCHEMA], vol.Length(max=40)),
# colours to choose from; the first one is the default
vol.Optional("colors"): vol.All([COLORWAY_SCHEMA], vol.Length(min=2, max=24)),
vol.Optional("recipe"): RECIPE_SCHEMA,
}
)
PAYLOAD_SCHEMA = vol.Schema(
{
vol.Required("format"): PACK_FORMAT,
vol.Required("version"): PACK_VERSION,
vol.Required("id"): _ID,
vol.Required("name"): _TEXT,
vol.Required("publisher"): _TEXT,
# release number of the pack (a newer release of the same id replaces an installed one)
vol.Optional("release", default=1): vol.All(int, vol.Range(min=1, max=100000)),
vol.Optional("description", default=""): vol.All(str, vol.Length(max=400)),
vol.Required("items"): vol.All([ITEM_SCHEMA], vol.Length(min=1, max=200)),
}
)
class PackError(Exception):
"""A pack that cannot be imported; `code` says why."""
def __init__(self, code: str, detail: str = "") -> None:
"""Keep the reason."""
super().__init__(f"{code}: {detail}" if detail else code)
self.code = code
self.detail = detail
def _sweeps_have_stations(clean: dict[str, Any]) -> None:
for item in clean["items"]:
for part in item["parts"]:
if part["shape"] == "sweep" and not part.get("stations"):
raise PackError("invalid_content", f"{item['id']}: a sweep needs stations")
def validate_payload(payload: Any) -> dict[str, Any]:
"""Check the content of a pack; raises PackError."""
try:
clean = PAYLOAD_SCHEMA(payload)
except vol.Invalid as err:
# a value this version does not know yet (a new item kind of a newer pack release)
if "value must be one of" in str(err):
raise PackError("needs_update", str(err)) from err
raise PackError("invalid_content", str(err)) from err
ids = [item["id"] for item in clean["items"]]
if len(ids) != len(set(ids)):
raise PackError("invalid_content", "item ids must be unique")
_sweeps_have_stations(clean)
for it in clean["items"]:
colors = [c["id"] for c in it.get("colors", [])]
if len(colors) != len(set(colors)):
raise PackError("invalid_content", f"{it['id']}: colour ids must be unique")
return clean
def parse_pack(text: str) -> dict[str, Any]:
"""Parse a pack file and return its checked content."""
if len(text) > MAX_PACK_SIZE:
raise PackError("too_large")
try:
data = json.loads(text)
except ValueError as err:
raise PackError("not_a_pack", "not JSON") from err
if not isinstance(data, dict) or data.get("format") != PACK_FORMAT:
raise PackError("not_a_pack")
return validate_payload(data)
BUILTIN_DIR = Path(__file__).parent / "packs"
def load_builtin_packs() -> list[dict[str, Any]]:
"""The packs that come with the integration (blocking: run in the executor)."""
packs = []
for file in sorted(BUILTIN_DIR.glob("*.json")):
pack = parse_pack(file.read_text(encoding="utf-8"))
packs.append({**pack, "builtin": True})
return packs
@@ -0,0 +1,565 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_aussenkueche",
"name": "Grillküche & Terrasse",
"publisher": "NextFloor",
"description": "Außenküche, Kamado, Pizzaofen, Feuerschale, Terrassenstrahler, Außen-Kühlschrank, Bartheke und Hängesessel",
"release": 1,
"items": [
{
"id": "outdoor_kitchen",
"name": {
"de": "Außenküche",
"en": "Outdoor kitchen"
},
"size": [
2.8,
0.75,
0.95
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.9263,
"color": "#5d6672",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.9263,
"h": 0.0526,
"color": "#a4a9b1"
},
{
"shape": "box",
"x": -0.2143,
"z": 0.0,
"w": 0.3214,
"d": 0.7333,
"y": 0.9789,
"h": 0.0211,
"color": "dark"
},
{
"shape": "loft",
"x": -0.2143,
"z": -0.0667,
"w": 0.3214,
"d": 0.6667,
"y": 1,
"h": 0.2632,
"color": "metal",
"tw": 0.3036,
"td": 0.4
},
{
"shape": "box",
"x": 0.25,
"z": 0.0,
"w": 0.1786,
"d": 0.5333,
"y": 0.9684,
"h": 0.0105,
"color": "metal"
},
{
"shape": "box",
"x": -0.3571,
"z": 0.5,
"w": 0.1786,
"d": 0.0133,
"y": 0.1053,
"h": 0.7368,
"color": "#4a525d"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.1786,
"d": 0.0133,
"y": 0.1053,
"h": 0.7368,
"color": "#4a525d"
},
{
"shape": "box",
"x": 0.3571,
"z": 0.5,
"w": 0.1786,
"d": 0.0133,
"y": 0.1053,
"h": 0.7368,
"color": "#4a525d"
}
],
"surface": true
},
{
"id": "kamado",
"name": {
"de": "Kamado-Grill",
"en": "Kamado grill"
},
"size": [
0.8,
0.7,
1.15
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.75,
"d": 0.8571,
"y": 0.3043,
"h": 0.5217,
"color": "#2f6b3a",
"edges": "faint"
},
{
"shape": "box",
"x": -0.25,
"z": 0.0,
"w": 0.05,
"d": 0.7143,
"y": 0,
"h": 0.3478,
"color": "metal"
},
{
"shape": "box",
"x": 0.25,
"z": 0.0,
"w": 0.05,
"d": 0.7143,
"y": 0,
"h": 0.3478,
"color": "metal"
},
{
"shape": "box",
"x": 0.4375,
"z": 0.0,
"w": 0.225,
"d": 0.5714,
"y": 0.5652,
"h": 0.0261,
"color": "wood"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.125,
"d": 0.1429,
"y": 0.8261,
"h": 0.1043,
"color": "metal"
}
]
},
{
"id": "pizza_oven",
"name": {
"de": "Pizzaofen",
"en": "Pizza oven"
},
"size": [
0.9,
0.9,
1.5
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.5667,
"color": "#a4a9b1"
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 0.9444,
"d": 0.9444,
"y": 0.5667,
"h": 0.3,
"color": "#c58a5a",
"tw": 0.5556,
"td": 0.5556
},
{
"shape": "box",
"x": 0.0,
"z": 0.4778,
"w": 0.3889,
"d": 0.0111,
"y": 0.6133,
"h": 0.12,
"color": "#ff7a1a",
"glow": true
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.2222,
"w": 0.1333,
"d": 0.1333,
"y": 0.8667,
"h": 0.1667,
"color": "metal"
}
],
"light": "table"
},
{
"id": "fire_pit",
"name": {
"de": "Feuerschale",
"en": "Fire pit"
},
"size": [
1.0,
1.0,
0.45
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.4,
"d": 0.4,
"y": 0,
"h": 0.4444,
"color": "dark"
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 0.6,
"d": 0.6,
"y": 0.4444,
"h": 0.4444,
"color": "#3a2a22",
"tw": 1,
"td": 1
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.5,
"d": 0.5,
"y": 0.7778,
"h": 0.1778,
"color": "#ff7a1a",
"glow": true
}
],
"electric": true,
"light": "garden"
},
{
"id": "patio_heater",
"name": {
"de": "Terrassenstrahler",
"en": "Patio heater"
},
"size": [
0.8,
0.8,
2.3
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.625,
"d": 0.625,
"y": 0,
"h": 0.0435,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.075,
"d": 0.075,
"y": 0.0435,
"h": 0.8261,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.3125,
"d": 0.3125,
"y": 0.8261,
"h": 0.1087,
"color": "#ff5a3a",
"glow": true
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 0.375,
"d": 0.375,
"y": 0.9348,
"h": 0.0652,
"color": "metal",
"tw": 1,
"td": 1
}
],
"electric": true,
"climate": true,
"light": "floor"
},
{
"id": "outdoor_fridge",
"name": {
"de": "Außen-Kühlschrank",
"en": "Outdoor fridge"
},
"size": [
0.6,
0.6,
0.85
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "metal",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.8667,
"d": 0.0167,
"y": 0.0588,
"h": 0.8824,
"color": "glass"
},
{
"shape": "box",
"x": 0.3333,
"z": 0.5,
"w": 0.0333,
"d": 0.0333,
"y": 0.3529,
"h": 0.3529,
"color": "dark"
}
],
"electric": true
},
{
"id": "bar_counter",
"name": {
"de": "Bartheke",
"en": "Bar counter"
},
"size": [
2.0,
0.6,
1.1
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.6667,
"y": 0,
"h": 0.9545,
"color": "wood",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0833,
"w": 1,
"d": 1,
"y": 0.9545,
"h": 0.0455,
"color": "#a4a9b1"
},
{
"shape": "box",
"x": 0.0,
"z": 0.3333,
"w": 0.95,
"d": 0.0167,
"y": 0.0909,
"h": 0.0182,
"color": "#ffd89a",
"glow": true
}
],
"surface": true,
"electric": true,
"light": "strip"
},
{
"id": "bar_stool_out",
"name": {
"de": "Barhocker außen",
"en": "Outdoor bar stool"
},
"size": [
0.45,
0.45,
0.8
],
"parts": [
{
"shape": "box",
"x": -0.4111,
"z": -0.4111,
"w": 0.0667,
"d": 0.0667,
"y": 0,
"h": 0.9375,
"color": "metal"
},
{
"shape": "box",
"x": -0.4111,
"z": 0.4111,
"w": 0.0667,
"d": 0.0667,
"y": 0,
"h": 0.9375,
"color": "metal"
},
{
"shape": "box",
"x": 0.4111,
"z": -0.4111,
"w": 0.0667,
"d": 0.0667,
"y": 0,
"h": 0.9375,
"color": "metal"
},
{
"shape": "box",
"x": 0.4111,
"z": 0.4111,
"w": 0.0667,
"d": 0.0667,
"y": 0,
"h": 0.9375,
"color": "metal"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.9333,
"d": 0.9333,
"y": 0.9375,
"h": 0.0625,
"color": "wood"
}
]
},
{
"id": "hanging_chair",
"name": {
"de": "Hängesessel",
"en": "Hanging chair"
},
"size": [
1.0,
1.0,
2.0
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.8,
"d": 0.8,
"y": 0,
"h": 0.025,
"color": "dark"
},
{
"shape": "box",
"x": -0.35,
"z": 0.0,
"w": 0.05,
"d": 0.05,
"y": 0.025,
"h": 0.95,
"color": "metal"
},
{
"shape": "box",
"x": -0.1,
"z": 0.0,
"w": 0.55,
"d": 0.05,
"y": 0.95,
"h": 0.025,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.15,
"z": 0.0,
"w": 0.75,
"d": 0.75,
"y": 0.2,
"h": 0.5,
"color": "#c8b07a",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.15,
"z": 0.05,
"w": 0.6,
"d": 0.55,
"y": 0.25,
"h": 0.06,
"color": "#e8dcc4"
}
]
}
]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,682 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_bilder",
"name": "Bilder & Rahmen",
"publisher": "NextFloor",
"description": "Bilderrahmen in vier Formaten, Leinwand, Poster, Tischrahmen, digitaler Bilderrahmen und Bilderleiste – jeweils mit deinem eigenen Foto",
"release": 1,
"items": [
{
"id": "frame_landscape",
"name": {
"de": "Bilderrahmen (quer)",
"en": "Picture frame (landscape)"
},
"size": [
0.7,
0.03,
0.5
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.6,
"y": 0,
"h": 1,
"color": "body",
"paint": true,
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.15,
"w": 0.9143,
"d": 0.3,
"y": 0.06,
"h": 0.88,
"color": "white",
"picture": true
}
],
"mount": "wall",
"wall_y": 1.3,
"colors": [
{
"id": "black",
"name": {
"de": "Schwarz",
"en": "Black"
},
"hex": "#1d2026"
},
{
"id": "white",
"name": {
"de": "Weiß",
"en": "White"
},
"hex": "#eceae4"
},
{
"id": "oak",
"name": {
"de": "Eiche",
"en": "Oak"
},
"hex": "#b98d5a"
},
{
"id": "walnut",
"name": {
"de": "Nussbaum",
"en": "Walnut"
},
"hex": "#6b4a32"
},
{
"id": "gold",
"name": {
"de": "Gold",
"en": "Gold"
},
"hex": "#c9a24a"
},
{
"id": "silver",
"name": {
"de": "Silber",
"en": "Silver"
},
"hex": "#b8bec7"
}
]
},
{
"id": "frame_portrait",
"name": {
"de": "Bilderrahmen (hoch)",
"en": "Picture frame (portrait)"
},
"size": [
0.5,
0.03,
0.7
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.6,
"y": 0,
"h": 1,
"color": "body",
"paint": true,
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.15,
"w": 0.88,
"d": 0.3,
"y": 0.0429,
"h": 0.9143,
"color": "white",
"picture": true
}
],
"mount": "wall",
"wall_y": 1.2,
"colors": [
{
"id": "black",
"name": {
"de": "Schwarz",
"en": "Black"
},
"hex": "#1d2026"
},
{
"id": "white",
"name": {
"de": "Weiß",
"en": "White"
},
"hex": "#eceae4"
},
{
"id": "oak",
"name": {
"de": "Eiche",
"en": "Oak"
},
"hex": "#b98d5a"
},
{
"id": "walnut",
"name": {
"de": "Nussbaum",
"en": "Walnut"
},
"hex": "#6b4a32"
},
{
"id": "gold",
"name": {
"de": "Gold",
"en": "Gold"
},
"hex": "#c9a24a"
},
{
"id": "silver",
"name": {
"de": "Silber",
"en": "Silver"
},
"hex": "#b8bec7"
}
]
},
{
"id": "frame_square",
"name": {
"de": "Bilderrahmen (quadratisch)",
"en": "Picture frame (square)"
},
"size": [
0.5,
0.03,
0.5
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.6,
"y": 0,
"h": 1,
"color": "body",
"paint": true,
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.15,
"w": 0.88,
"d": 0.3,
"y": 0.06,
"h": 0.88,
"color": "white",
"picture": true
}
],
"mount": "wall",
"wall_y": 1.3,
"colors": [
{
"id": "black",
"name": {
"de": "Schwarz",
"en": "Black"
},
"hex": "#1d2026"
},
{
"id": "white",
"name": {
"de": "Weiß",
"en": "White"
},
"hex": "#eceae4"
},
{
"id": "oak",
"name": {
"de": "Eiche",
"en": "Oak"
},
"hex": "#b98d5a"
},
{
"id": "walnut",
"name": {
"de": "Nussbaum",
"en": "Walnut"
},
"hex": "#6b4a32"
},
{
"id": "gold",
"name": {
"de": "Gold",
"en": "Gold"
},
"hex": "#c9a24a"
},
{
"id": "silver",
"name": {
"de": "Silber",
"en": "Silver"
},
"hex": "#b8bec7"
}
]
},
{
"id": "frame_large",
"name": {
"de": "Großer Bilderrahmen",
"en": "Large picture frame"
},
"size": [
1.2,
0.04,
0.85
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.6,
"y": 0,
"h": 1,
"color": "body",
"paint": true,
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.15,
"w": 0.9167,
"d": 0.3,
"y": 0.0588,
"h": 0.8824,
"color": "white",
"picture": true
}
],
"mount": "wall",
"wall_y": 1.1,
"colors": [
{
"id": "black",
"name": {
"de": "Schwarz",
"en": "Black"
},
"hex": "#1d2026"
},
{
"id": "white",
"name": {
"de": "Weiß",
"en": "White"
},
"hex": "#eceae4"
},
{
"id": "oak",
"name": {
"de": "Eiche",
"en": "Oak"
},
"hex": "#b98d5a"
},
{
"id": "walnut",
"name": {
"de": "Nussbaum",
"en": "Walnut"
},
"hex": "#6b4a32"
},
{
"id": "gold",
"name": {
"de": "Gold",
"en": "Gold"
},
"hex": "#c9a24a"
},
{
"id": "silver",
"name": {
"de": "Silber",
"en": "Silver"
},
"hex": "#b8bec7"
}
]
},
{
"id": "canvas",
"name": {
"de": "Leinwandbild",
"en": "Canvas print"
},
"size": [
1.0,
0.04,
0.7
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"picture": true
}
],
"mount": "wall",
"wall_y": 1.2
},
{
"id": "poster",
"name": {
"de": "Poster",
"en": "Poster"
},
"size": [
0.6,
0.01,
0.85
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"picture": true
}
],
"mount": "wall",
"wall_y": 1.0
},
{
"id": "frame_table",
"name": {
"de": "Tischrahmen",
"en": "Table frame"
},
"size": [
0.2,
0.08,
0.25
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.25,
"w": 1,
"d": 0.25,
"y": 0,
"h": 1,
"color": "body",
"paint": true,
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.3875,
"w": 0.85,
"d": 0.05,
"y": 0.06,
"h": 0.88,
"color": "white",
"picture": true
},
{
"shape": "box",
"x": 0.0,
"z": -0.25,
"w": 0.15,
"d": 0.625,
"y": 0,
"h": 0.7,
"color": "body",
"paint": true,
"rot": 0
}
],
"mount": "surface",
"colors": [
{
"id": "black",
"name": {
"de": "Schwarz",
"en": "Black"
},
"hex": "#1d2026"
},
{
"id": "white",
"name": {
"de": "Weiß",
"en": "White"
},
"hex": "#eceae4"
},
{
"id": "oak",
"name": {
"de": "Eiche",
"en": "Oak"
},
"hex": "#b98d5a"
},
{
"id": "walnut",
"name": {
"de": "Nussbaum",
"en": "Walnut"
},
"hex": "#6b4a32"
},
{
"id": "gold",
"name": {
"de": "Gold",
"en": "Gold"
},
"hex": "#c9a24a"
},
{
"id": "silver",
"name": {
"de": "Silber",
"en": "Silver"
},
"hex": "#b8bec7"
}
]
},
{
"id": "frame_digital",
"name": {
"de": "Digitaler Bilderrahmen",
"en": "Digital photo frame"
},
"size": [
0.3,
0.1,
0.22
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.2,
"w": 1,
"d": 0.25,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.34,
"w": 0.9,
"d": 0.04,
"y": 0.0682,
"h": 0.8636,
"color": "dark",
"picture": true
},
{
"shape": "box",
"x": 0.0,
"z": -0.25,
"w": 0.1333,
"d": 0.5,
"y": 0,
"h": 0.7,
"color": "dark"
}
],
"mount": "surface",
"electric": true
},
{
"id": "picture_ledge",
"name": {
"de": "Bilderleiste mit Rahmen",
"en": "Picture ledge with frames"
},
"size": [
1.2,
0.1,
0.45
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.0667,
"color": "body",
"paint": true
},
{
"shape": "box",
"x": -0.25,
"z": 0.0,
"w": 0.3333,
"d": 0.2,
"y": 0.0667,
"h": 0.7111,
"color": "body",
"paint": true,
"rot": -3
},
{
"shape": "box",
"x": -0.25,
"z": 0.12,
"w": 0.3,
"d": 0.04,
"y": 0.1111,
"h": 0.6222,
"color": "white",
"picture": true,
"rot": -3
},
{
"shape": "box",
"x": 0.25,
"z": -0.1,
"w": 0.2917,
"d": 0.2,
"y": 0.0667,
"h": 0.8889,
"color": "body",
"paint": true,
"rot": 2
}
],
"mount": "wall",
"wall_y": 1.3,
"colors": [
{
"id": "black",
"name": {
"de": "Schwarz",
"en": "Black"
},
"hex": "#1d2026"
},
{
"id": "white",
"name": {
"de": "Weiß",
"en": "White"
},
"hex": "#eceae4"
},
{
"id": "oak",
"name": {
"de": "Eiche",
"en": "Oak"
},
"hex": "#b98d5a"
},
{
"id": "walnut",
"name": {
"de": "Nussbaum",
"en": "Walnut"
},
"hex": "#6b4a32"
},
{
"id": "gold",
"name": {
"de": "Gold",
"en": "Gold"
},
"hex": "#c9a24a"
},
{
"id": "silver",
"name": {
"de": "Silber",
"en": "Silver"
},
"hex": "#b8bec7"
}
]
}
]
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,993 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_gruen",
"name": "Indoor-Grün",
"publisher": "NextFloor",
"description": "Monstera, Ficus, Olivenbaum, Kakteen, Hängepflanze, Pflanzenregal mit Pflanzenlicht und vertikaler Garten",
"release": 1,
"items": [
{
"id": "monstera",
"name": {
"de": "Monstera",
"en": "Monstera"
},
"size": [
0.9,
0.9,
1.3
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.3889,
"d": 0.3889,
"y": 0,
"h": 0.2692,
"color": "#e8e2d6"
},
{
"shape": "loft",
"x": -0.2222,
"z": 0.1111,
"w": 0.4444,
"d": 0.3889,
"y": 0.4615,
"h": 0.0923,
"color": "#3f7a4a",
"tw": 0.3333,
"td": 0.0556
},
{
"shape": "loft",
"x": 0.2222,
"z": -0.1111,
"w": 0.4444,
"d": 0.3889,
"y": 0.5769,
"h": 0.0923,
"color": "#3f7a4a",
"tw": 0.3333,
"td": 0.0556
},
{
"shape": "loft",
"x": 0.0556,
"z": 0.2222,
"w": 0.4444,
"d": 0.3889,
"y": 0.7308,
"h": 0.0923,
"color": "#3f7a4a",
"tw": 0.3333,
"td": 0.0556
},
{
"shape": "loft",
"x": -0.1111,
"z": -0.2222,
"w": 0.4444,
"d": 0.3889,
"y": 0.8462,
"h": 0.0923,
"color": "#3f7a4a",
"tw": 0.3333,
"td": 0.0556
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.0444,
"d": 0.0444,
"y": 0.2692,
"h": 0.6154,
"color": "#3f7a4a"
}
],
"household": "plant"
},
{
"id": "ficus",
"name": {
"de": "Birkenfeige",
"en": "Weeping fig"
},
"size": [
0.7,
0.7,
1.8
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.5,
"d": 0.5,
"y": 0,
"h": 0.1944,
"color": "#5d6672"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.0714,
"d": 0.0714,
"y": 0.1944,
"h": 0.3889,
"color": "wood"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.5556,
"h": 0.4444,
"color": "#5c9a52"
}
],
"household": "plant"
},
{
"id": "olive_tree",
"name": {
"de": "Olivenbaum im Kübel",
"en": "Olive tree in a pot"
},
"size": [
1.0,
1.0,
2.0
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.55,
"d": 0.55,
"y": 0,
"h": 0.25,
"color": "#c58a5a"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.08,
"d": 0.08,
"y": 0.25,
"h": 0.4,
"color": "#7a6a5a"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.6,
"h": 0.375,
"color": "#8aa27a"
}
],
"household": "plant"
},
{
"id": "cactus_group",
"name": {
"de": "Kakteen",
"en": "Cacti"
},
"size": [
0.5,
0.25,
0.3
],
"parts": [
{
"shape": "cyl",
"x": -0.34,
"z": 0.0,
"w": 0.2,
"d": 0.4,
"y": 0,
"h": 0.2667,
"color": "#c58a5a"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.2,
"d": 0.4,
"y": 0,
"h": 0.2667,
"color": "#c58a5a"
},
{
"shape": "cyl",
"x": 0.34,
"z": 0.0,
"w": 0.2,
"d": 0.4,
"y": 0,
"h": 0.2667,
"color": "#c58a5a"
},
{
"shape": "cyl",
"x": -0.34,
"z": 0.0,
"w": 0.12,
"d": 0.24,
"y": 0.2667,
"h": 0.5,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.14,
"d": 0.28,
"y": 0.2667,
"h": 0.7333,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.34,
"z": 0.0,
"w": 0.16,
"d": 0.32,
"y": 0.2667,
"h": 0.2667,
"color": "#5c9a52"
}
],
"mount": "surface",
"household": "plant"
},
{
"id": "hanging_plant",
"name": {
"de": "Hängepflanze",
"en": "Hanging plant"
},
"size": [
0.4,
0.4,
0.9
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.025,
"d": 0.025,
"y": 0.4444,
"h": 0.5556,
"color": "#c8b07a"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.625,
"d": 0.625,
"y": 0.3333,
"h": 0.1333,
"color": "#e8e2d6"
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.3889,
"color": "#5c9a52",
"tw": 0.75,
"td": 0.75
}
],
"mount": "ceiling",
"household": "plant"
},
{
"id": "plant_shelf",
"name": {
"de": "Pflanzenregal mit Licht",
"en": "Plant shelf with grow light"
},
"size": [
0.9,
0.35,
1.5
],
"parts": [
{
"shape": "box",
"x": -0.4778,
"z": -0.4429,
"w": 0.0333,
"d": 0.0857,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "box",
"x": -0.4778,
"z": 0.4429,
"w": 0.0333,
"d": 0.0857,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "box",
"x": 0.4778,
"z": -0.4429,
"w": 0.0333,
"d": 0.0857,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "box",
"x": 0.4778,
"z": 0.4429,
"w": 0.0333,
"d": 0.0857,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.0333,
"h": 0.02,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.3667,
"h": 0.02,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.7,
"h": 0.02,
"color": "#b98d5a"
},
{
"shape": "cyl",
"x": -0.2778,
"z": 0.0,
"w": 0.2,
"d": 0.5143,
"y": 0.0533,
"h": 0.1667,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.2222,
"z": 0.0,
"w": 0.2,
"d": 0.5143,
"y": 0.0533,
"h": 0.1667,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.2778,
"z": 0.0,
"w": 0.2,
"d": 0.5143,
"y": 0.3867,
"h": 0.1667,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.2222,
"z": 0.0,
"w": 0.2,
"d": 0.5143,
"y": 0.3867,
"h": 0.1667,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.2778,
"z": 0.0,
"w": 0.2,
"d": 0.5143,
"y": 0.72,
"h": 0.1667,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.2222,
"z": 0.0,
"w": 0.2,
"d": 0.5143,
"y": 0.72,
"h": 0.1667,
"color": "#5c9a52"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.8889,
"d": 0.1143,
"y": 0.3333,
"h": 0.0133,
"color": "#d07aff",
"glow": true
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.8889,
"d": 0.1143,
"y": 0.6667,
"h": 0.0133,
"color": "#d07aff",
"glow": true
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.8889,
"d": 0.1143,
"y": 1,
"h": 0.0133,
"color": "#d07aff",
"glow": true
}
],
"electric": true,
"light": "strip",
"surface": true
},
{
"id": "vertical_garden",
"name": {
"de": "Vertikaler Garten",
"en": "Living wall"
},
"size": [
1.2,
0.12,
1.6
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": -0.25,
"w": 1,
"d": 0.4167,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "cyl",
"x": -0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.0625,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.2187,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": -0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.375,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.5312,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": -0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.6875,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.8438,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": -0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.0625,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": -0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.2187,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.375,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": -0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.5312,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.6875,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": -0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.8438,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.0625,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.2187,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": -0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.375,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.5312,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": -0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.6875,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": -0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.8438,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.0625,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.2187,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.375,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.5312,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.6875,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.075,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.8438,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.0625,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.2187,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.375,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.5312,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.6875,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.225,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.8438,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.0625,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.2187,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.375,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.5312,
"h": 0.125,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.6875,
"h": 0.125,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.375,
"z": 0.25,
"w": 0.15,
"d": 0.6667,
"y": 0.8438,
"h": 0.125,
"color": "#5c9a52"
}
],
"mount": "wall",
"wall_y": 0.5,
"household": "plant"
},
{
"id": "grow_light",
"name": {
"de": "Pflanzenlampe",
"en": "Grow light"
},
"size": [
0.6,
0.2,
0.05
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.9167,
"d": 0.75,
"y": 0,
"h": 0.1,
"color": "#d07aff",
"glow": true
}
],
"mount": "ceiling",
"electric": true,
"light": "panel"
},
{
"id": "herb_planter",
"name": {
"de": "Kräutergarten (smart)",
"en": "Smart herb garden"
},
"size": [
0.4,
0.15,
0.4
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.25,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": -0.3,
"z": 0.0,
"w": 0.2,
"d": 0.5333,
"y": 0.25,
"h": 0.3,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.2,
"d": 0.5333,
"y": 0.25,
"h": 0.3,
"color": "#5c9a52"
},
{
"shape": "cyl",
"x": 0.3,
"z": 0.0,
"w": 0.2,
"d": 0.5333,
"y": 0.25,
"h": 0.3,
"color": "#5c9a52"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.1,
"d": 0.2667,
"y": 0.25,
"h": 0.625,
"color": "white"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.9,
"d": 0.6667,
"y": 0.875,
"h": 0.075,
"color": "#fff1c9",
"glow": true
}
],
"mount": "surface",
"electric": true,
"light": "table",
"household": "plant"
}
]
}
@@ -0,0 +1,309 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_halloween",
"name": "Halloween",
"publisher": "NextFloor",
"description": "Kürbis, Gespenst, Grabstein und Hexenkessel",
"release": 1,
"items": [
{
"id": "pumpkin",
"name": {
"de": "Kürbis",
"en": "Pumpkin"
},
"size": [
0.5,
0.5,
0.45
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.8444,
"color": "#e8741c"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.84,
"d": 0.84,
"y": 0.0889,
"h": 0.7556,
"color": "#f08a2a"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.12,
"d": 0.12,
"y": 0.8444,
"h": 0.1556,
"color": "#4a6a30"
},
{
"shape": "box",
"x": -0.2,
"z": 0.44,
"w": 0.14,
"d": 0.04,
"y": 0.4889,
"h": 0.1556,
"color": "#ffcf4a",
"glow": true
},
{
"shape": "box",
"x": 0.2,
"z": 0.44,
"w": 0.14,
"d": 0.04,
"y": 0.4889,
"h": 0.1556,
"color": "#ffcf4a",
"glow": true
},
{
"shape": "box",
"x": 0.0,
"z": 0.46,
"w": 0.36,
"d": 0.04,
"y": 0.2222,
"h": 0.1111,
"color": "#ffcf4a",
"glow": true
}
],
"light": "table",
"electric": true,
"mount": "surface"
},
{
"id": "ghost",
"name": {
"de": "Gespenst",
"en": "Ghost"
},
"size": [
0.5,
0.5,
1.0
],
"parts": [
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.8,
"color": "#f4f6fa",
"tw": 0.68,
"td": 0.68
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.68,
"d": 0.68,
"y": 0.78,
"h": 0.16,
"color": "#f4f6fa"
},
{
"shape": "cyl",
"x": -0.16,
"z": 0.3,
"w": 0.12,
"d": 0.12,
"y": 0.72,
"h": 0.1,
"color": "#22252e"
},
{
"shape": "cyl",
"x": 0.16,
"z": 0.3,
"w": 0.12,
"d": 0.12,
"y": 0.72,
"h": 0.1,
"color": "#22252e"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.32,
"w": 0.16,
"d": 0.12,
"y": 0.58,
"h": 0.1,
"color": "#22252e"
}
]
},
{
"id": "gravestone",
"name": {
"de": "Grabstein",
"en": "Gravestone"
},
"size": [
0.6,
0.2,
0.8
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.075,
"color": "#5f6672"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.8333,
"d": 0.75,
"y": 0.075,
"h": 0.6875,
"color": "#868e9b"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.8333,
"d": 0.75,
"y": 0.6875,
"h": 0.15,
"color": "#868e9b",
"axis": "z"
},
{
"shape": "box",
"x": 0.0,
"z": 0.4,
"w": 0.0667,
"d": 0.1,
"y": 0.425,
"h": 0.325,
"color": "#4b515c"
},
{
"shape": "box",
"x": 0.0,
"z": 0.4,
"w": 0.2667,
"d": 0.1,
"y": 0.625,
"h": 0.05,
"color": "#4b515c"
}
]
},
{
"id": "cauldron",
"name": {
"de": "Hexenkessel",
"en": "Witch's cauldron"
},
"size": [
0.7,
0.7,
0.6
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.8857,
"d": 0.8857,
"y": 0.2,
"h": 0.6333,
"color": "#1f2229"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.75,
"h": 0.1167,
"color": "#2a2e37"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.8,
"d": 0.8,
"y": 0.7667,
"h": 0.0667,
"color": "#6dff7a",
"glow": true
},
{
"shape": "box",
"x": -0.3571,
"z": -0.3571,
"w": 0.1143,
"d": 0.1143,
"y": 0,
"h": 0.2333,
"color": "#1f2229"
},
{
"shape": "box",
"x": -0.3571,
"z": 0.3571,
"w": 0.1143,
"d": 0.1143,
"y": 0,
"h": 0.2333,
"color": "#1f2229"
},
{
"shape": "box",
"x": 0.3571,
"z": -0.3571,
"w": 0.1143,
"d": 0.1143,
"y": 0,
"h": 0.2333,
"color": "#1f2229"
},
{
"shape": "box",
"x": 0.3571,
"z": 0.3571,
"w": 0.1143,
"d": 0.1143,
"y": 0,
"h": 0.2333,
"color": "#1f2229"
}
],
"light": "table",
"electric": true
}
]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,486 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_haustechnik2",
"name": "Haustechnik 2",
"publisher": "NextFloor",
"description": "Wassertank mit Füllstand, Öltank und Ölkessel, Enthärtungsanlage, Pufferspeicher, Zisterne und Lüftungsgerät",
"release": 1,
"items": [
{
"id": "water_tank",
"name": {
"de": "Wassertank",
"en": "Water tank"
},
"size": [
0.9,
0.9,
1.6
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#3d6e9e",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.9333,
"d": 0.9333,
"y": 0.0125,
"h": 0.625,
"color": "#3ea6ff",
"glow": true
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.2222,
"d": 0.2222,
"y": 1,
"h": 0.025,
"color": "dark"
}
],
"electric": true
},
{
"id": "oil_tank",
"name": {
"de": "Öltank",
"en": "Oil tank"
},
"size": [
1.6,
0.7,
1.5
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#c9cfa0",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.375,
"z": 0.0,
"w": 0.0625,
"d": 0.1429,
"y": 1,
"h": 0.0533,
"color": "metal"
},
{
"shape": "box",
"x": -0.3125,
"z": 0.5,
"w": 0.025,
"d": 0.0143,
"y": 0.0667,
"h": 0.8,
"color": "#e8ecf2"
}
]
},
{
"id": "oil_boiler",
"name": {
"de": "Ölheizung",
"en": "Oil boiler"
},
"size": [
0.6,
0.7,
1.2
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.6667,
"d": 0.0143,
"y": 0.75,
"h": 0.15,
"color": "#2b3446",
"screen": true
},
{
"shape": "box",
"x": 0.1667,
"z": 0.5,
"w": 0.1333,
"d": 0.0143,
"y": 0.5,
"h": 0.05,
"color": "#ff7a1a",
"glow": true
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.2857,
"w": 0.25,
"d": 0.2143,
"y": 1,
"h": 0.25,
"color": "metal"
}
],
"electric": true,
"climate": true
},
{
"id": "water_softener",
"name": {
"de": "Enthärtungsanlage",
"en": "Water softener"
},
"size": [
0.35,
0.5,
1.1
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.2,
"w": 1,
"d": 0.6,
"y": 0,
"h": 0.7273,
"color": "#e8ecf2",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.3,
"w": 0.5714,
"d": 0.4,
"y": 0,
"h": 0.9091,
"color": "#3d6e9e"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.4286,
"d": 0.02,
"y": 0.6364,
"h": 0.0545,
"color": "#1d2533",
"screen": true
}
],
"electric": true
},
{
"id": "buffer_tank",
"name": {
"de": "Pufferspeicher",
"en": "Buffer tank"
},
"size": [
0.8,
0.8,
1.9
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#c0c7d1",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.375,
"z": 0.3125,
"w": 0.075,
"d": 0.075,
"y": 0.1579,
"h": 0.0316,
"color": "#3ea6ff",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.375,
"z": 0.3125,
"w": 0.075,
"d": 0.075,
"y": 0.5263,
"h": 0.0316,
"color": "#3ea6ff",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.375,
"z": 0.3125,
"w": 0.075,
"d": 0.075,
"y": 0.8421,
"h": 0.0316,
"color": "#e03a3a",
"axis": "z"
}
],
"electric": true
},
{
"id": "cistern",
"name": {
"de": "Zisterne",
"en": "Rainwater cistern"
},
"size": [
2.0,
2.0,
0.2
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.25,
"color": "#5d6672",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.35,
"d": 0.35,
"y": 0.25,
"h": 0.6,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.9,
"d": 0.9,
"y": 0,
"h": 0.1,
"color": "#3ea6ff",
"glow": true
}
],
"electric": true
},
{
"id": "ventilation_unit",
"name": {
"de": "Lüftungsanlage",
"en": "Ventilation unit"
},
"size": [
0.8,
0.6,
0.9
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": -0.35,
"z": -0.1667,
"w": 0.2,
"d": 0.2667,
"y": 1,
"h": 0.2222,
"color": "metal"
},
{
"shape": "cyl",
"x": -0.125,
"z": -0.1667,
"w": 0.2,
"d": 0.2667,
"y": 1,
"h": 0.2222,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.125,
"z": -0.1667,
"w": 0.2,
"d": 0.2667,
"y": 1,
"h": 0.2222,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.35,
"z": -0.1667,
"w": 0.2,
"d": 0.2667,
"y": 1,
"h": 0.2222,
"color": "metal"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.25,
"d": 0.0167,
"y": 0.6667,
"h": 0.0889,
"color": "#1d2533",
"screen": true
}
],
"electric": true,
"climate": true
},
{
"id": "expansion_vessel",
"name": {
"de": "Ausdehnungsgefäß",
"en": "Expansion vessel"
},
"size": [
0.4,
0.4,
0.55
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.0909,
"h": 0.8182,
"color": "#c0392b"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.15,
"d": 0.15,
"y": 0.9091,
"h": 0.0909,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.75,
"d": 0.75,
"y": 0,
"h": 0.0909,
"color": "dark"
}
]
},
{
"id": "heat_pump_indoor",
"name": {
"de": "Wärmepumpe (Innengerät)",
"en": "Heat pump (indoor unit)"
},
"size": [
0.6,
0.7,
1.8
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.5,
"d": 0.0143,
"y": 0.7222,
"h": 0.1111,
"color": "#1d2533",
"screen": true
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.8333,
"d": 0.0143,
"y": 0.0556,
"h": 0.0111,
"color": "#7fd0ff",
"glow": true
}
],
"electric": true,
"climate": true
}
]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,570 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_japandi",
"name": "Japandi & Skandi",
"publisher": "NextFloor",
"description": "Niedriges Bett, Tatami, Papierleuchte, Teetisch, Shoji-Paravent, Bonsai, Sitzkissen und Holzbank",
"release": 1,
"items": [
{
"id": "low_bed",
"name": {
"de": "Niedriges Bett",
"en": "Low platform bed"
},
"size": [
1.8,
2.2,
0.75
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.2,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0227,
"w": 0.8889,
"d": 0.9091,
"y": 0.2,
"h": 0.2,
"color": "#efe9dd"
},
{
"shape": "box",
"x": 0.0,
"z": -0.4773,
"w": 1,
"d": 0.0455,
"y": 0,
"h": 1,
"color": "#b98d5a"
},
{
"shape": "box",
"x": -0.2222,
"z": -0.3864,
"w": 0.3333,
"d": 0.1591,
"y": 0.4,
"h": 0.16,
"color": "#d9cfbf"
},
{
"shape": "box",
"x": 0.2222,
"z": -0.3864,
"w": 0.3333,
"d": 0.1591,
"y": 0.4,
"h": 0.16,
"color": "#d9cfbf"
}
]
},
{
"id": "tatami",
"name": {
"de": "Tatami",
"en": "Tatami mat"
},
"size": [
1.8,
0.9,
0.05
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#c9c08a",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": -0.4778,
"w": 1,
"d": 0.0444,
"y": 0,
"h": 1,
"color": "#2b3f66"
},
{
"shape": "box",
"x": 0.0,
"z": 0.4778,
"w": 1,
"d": 0.0444,
"y": 0,
"h": 1,
"color": "#2b3f66"
}
]
},
{
"id": "paper_lamp",
"name": {
"de": "Papierleuchte",
"en": "Paper floor lamp"
},
"size": [
0.45,
0.45,
1.2
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.6667,
"d": 0.6667,
"y": 0,
"h": 0.025,
"color": "#b98d5a"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.0667,
"d": 0.0667,
"y": 0.025,
"h": 0.25,
"color": "#b98d5a"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.275,
"h": 0.7083,
"color": "#fff6e0",
"glow": true
}
],
"electric": true,
"light": "floor"
},
{
"id": "paper_pendant",
"name": {
"de": "Papier-Pendelleuchte",
"en": "Paper pendant"
},
"size": [
0.6,
0.6,
0.9
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.0167,
"d": 0.0167,
"y": 0.5556,
"h": 0.4444,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.0556,
"h": 0.5,
"color": "#fff6e0",
"glow": true
}
],
"mount": "ceiling",
"electric": true,
"light": "pendant"
},
{
"id": "tea_table",
"name": {
"de": "Teetisch",
"en": "Low tea table"
},
"size": [
1.1,
0.7,
0.35
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.8571,
"h": 0.1429,
"color": "#b98d5a"
},
{
"shape": "box",
"x": -0.4273,
"z": -0.3857,
"w": 0.0545,
"d": 0.0857,
"y": 0,
"h": 0.8571,
"color": "#b98d5a"
},
{
"shape": "box",
"x": -0.4273,
"z": 0.3857,
"w": 0.0545,
"d": 0.0857,
"y": 0,
"h": 0.8571,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.4273,
"z": -0.3857,
"w": 0.0545,
"d": 0.0857,
"y": 0,
"h": 0.8571,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.4273,
"z": 0.3857,
"w": 0.0545,
"d": 0.0857,
"y": 0,
"h": 0.8571,
"color": "#b98d5a"
}
],
"surface": true
},
{
"id": "shoji_screen",
"name": {
"de": "Shoji-Paravent",
"en": "Shoji screen"
},
"size": [
1.6,
0.05,
1.8
],
"parts": [
{
"shape": "box",
"x": -0.3312,
"z": 0.0,
"w": 0.3125,
"d": 0.6,
"y": 0,
"h": 1,
"color": "#fff6e0",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.3125,
"d": 0.6,
"y": 0,
"h": 1,
"color": "#fff6e0",
"edges": "faint"
},
{
"shape": "box",
"x": 0.3312,
"z": 0.0,
"w": 0.3125,
"d": 0.6,
"y": 0,
"h": 1,
"color": "#fff6e0",
"edges": "faint"
},
{
"shape": "box",
"x": -0.4938,
"z": 0.0,
"w": 0.0125,
"d": 0.8,
"y": 0,
"h": 1,
"color": "#b98d5a"
},
{
"shape": "box",
"x": -0.1688,
"z": 0.0,
"w": 0.0125,
"d": 0.8,
"y": 0,
"h": 1,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.1688,
"z": 0.0,
"w": 0.0125,
"d": 0.8,
"y": 0,
"h": 1,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.4938,
"z": 0.0,
"w": 0.0125,
"d": 0.8,
"y": 0,
"h": 1,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.8,
"y": 0.2222,
"h": 0.0111,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.8,
"y": 0.5,
"h": 0.0111,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.8,
"y": 0.7778,
"h": 0.0111,
"color": "#b98d5a"
}
]
},
{
"id": "bonsai",
"name": {
"de": "Bonsai",
"en": "Bonsai"
},
"size": [
0.4,
0.3,
0.4
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.875,
"d": 0.8333,
"y": 0,
"h": 0.2,
"color": "#5a4a3a"
},
{
"shape": "box",
"x": -0.075,
"z": 0.0,
"w": 0.075,
"d": 0.1,
"y": 0.2,
"h": 0.375,
"color": "wood",
"rot": 15
},
{
"shape": "cyl",
"x": -0.2,
"z": 0.0,
"w": 0.4,
"d": 0.4,
"y": 0.55,
"h": 0.2,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.175,
"z": 0.0667,
"w": 0.4,
"d": 0.4,
"y": 0.65,
"h": 0.2,
"color": "#3f7a4a"
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.0667,
"w": 0.4,
"d": 0.4,
"y": 0.775,
"h": 0.2,
"color": "#3f7a4a"
}
],
"mount": "surface"
},
{
"id": "floor_cushion",
"name": {
"de": "Sitzkissen",
"en": "Floor cushion"
},
"size": [
0.6,
0.6,
0.15
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#d9cfbf",
"edges": "faint"
}
]
},
{
"id": "wood_bench",
"name": {
"de": "Holzbank",
"en": "Wooden bench"
},
"size": [
1.4,
0.4,
0.45
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.8889,
"h": 0.1111,
"color": "#b98d5a"
},
{
"shape": "box",
"x": -0.3929,
"z": 0.0,
"w": 0.0429,
"d": 0.875,
"y": 0,
"h": 0.8889,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.3929,
"z": 0.0,
"w": 0.0429,
"d": 0.875,
"y": 0,
"h": 0.8889,
"color": "#b98d5a"
}
],
"surface": true
},
{
"id": "rattan_chair",
"name": {
"de": "Rattansessel",
"en": "Rattan armchair"
},
"size": [
0.75,
0.8,
0.8
],
"parts": [
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 0.9333,
"d": 0.9375,
"y": 0,
"h": 0.525,
"color": "#c8a46a",
"tw": 1,
"td": 1,
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": -0.4125,
"w": 0.9333,
"d": 0.125,
"y": 0.525,
"h": 0.475,
"color": "#c8a46a"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0625,
"w": 0.8,
"d": 0.75,
"y": 0.525,
"h": 0.1,
"color": "#efe9dd"
}
]
}
]
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,653 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_kueche2",
"name": "Küche 2",
"publisher": "NextFloor",
"description": "Kaffeevollautomat, Siebträger, Wasserkocher, Toaster, Küchenmaschine, Heißluftfritteuse, Weinkühlschrank und mehr",
"release": 1,
"items": [
{
"id": "coffee_machine",
"name": {
"de": "Kaffeevollautomat",
"en": "Bean-to-cup coffee machine"
},
"size": [
0.28,
0.45,
0.38
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.4444,
"w": 0.7143,
"d": 0.1333,
"y": 0.1316,
"h": 0.1316,
"color": "metal"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.5,
"d": 0.0222,
"y": 0.7368,
"h": 0.1579,
"color": "#1d2533",
"screen": true
},
{
"shape": "box",
"x": 0.0,
"z": 0.4,
"w": 0.4286,
"d": 0.1778,
"y": 0.3158,
"h": 0.1053,
"color": "metal"
}
],
"mount": "surface",
"electric": true
},
{
"id": "espresso",
"name": {
"de": "Siebträgermaschine",
"en": "Espresso machine"
},
"size": [
0.35,
0.4,
0.4
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": -0.125,
"w": 1,
"d": 0.75,
"y": 0,
"h": 1,
"color": "metal",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.375,
"w": 0.2286,
"d": 0.25,
"y": 0.5,
"h": 0.1,
"color": "dark"
},
{
"shape": "cyl",
"x": -0.2286,
"z": 0.25,
"w": 0.1714,
"d": 0.15,
"y": 0.75,
"h": 0.15,
"color": "#e8ecf2",
"axis": "z"
},
{
"shape": "box",
"x": 0.0,
"z": 0.3,
"w": 0.8571,
"d": 0.3,
"y": 0,
"h": 0.05,
"color": "dark"
}
],
"mount": "surface",
"electric": true
},
{
"id": "kettle",
"name": {
"de": "Wasserkocher",
"en": "Kettle"
},
"size": [
0.22,
0.16,
0.26
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.8182,
"d": 1,
"y": 0.0769,
"h": 0.8462,
"color": "white"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.8182,
"d": 1,
"y": 0,
"h": 0.0769,
"color": "dark"
},
{
"shape": "box",
"x": -0.4545,
"z": 0.0,
"w": 0.1364,
"d": 0.25,
"y": 0.2308,
"h": 0.6154,
"color": "dark"
},
{
"shape": "box",
"x": 0.1364,
"z": 0.5,
"w": 0.0909,
"d": 0.0312,
"y": 0.3077,
"h": 0.0769,
"color": "#3ea6ff",
"glow": true
}
],
"mount": "surface",
"electric": true
},
{
"id": "toaster",
"name": {
"de": "Toaster",
"en": "Toaster"
},
"size": [
0.3,
0.18,
0.2
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#c0392b",
"edges": "faint"
},
{
"shape": "box",
"x": -0.2,
"z": 0.0,
"w": 0.3333,
"d": 0.1667,
"y": 0.975,
"h": 0.025,
"color": "dark"
},
{
"shape": "box",
"x": 0.2,
"z": 0.0,
"w": 0.3333,
"d": 0.1667,
"y": 0.975,
"h": 0.025,
"color": "dark"
},
{
"shape": "box",
"x": 0.4667,
"z": 0.0,
"w": 0.0667,
"d": 0.2222,
"y": 0.6,
"h": 0.15,
"color": "metal"
}
],
"mount": "surface",
"electric": true
},
{
"id": "stand_mixer",
"name": {
"de": "Küchenmaschine",
"en": "Stand mixer"
},
"size": [
0.25,
0.38,
0.35
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.88,
"d": 0.9211,
"y": 0,
"h": 0.1143,
"color": "#d7c6a0"
},
{
"shape": "box",
"x": 0.0,
"z": -0.3158,
"w": 0.48,
"d": 0.2632,
"y": 0.1143,
"h": 0.8,
"color": "#d7c6a0"
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0526,
"w": 0.56,
"d": 0.8421,
"y": 0.7429,
"h": 0.2571,
"color": "#d7c6a0",
"tw": 0.48,
"td": 0.6579
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.2105,
"w": 0.72,
"d": 0.4737,
"y": 0.1143,
"h": 0.4286,
"color": "metal"
}
],
"mount": "surface",
"electric": true
},
{
"id": "thermo_cooker",
"name": {
"de": "Multikocher",
"en": "Food processor with cooking"
},
"size": [
0.33,
0.33,
0.33
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0606,
"w": 0.9091,
"d": 0.7879,
"y": 0,
"h": 0.3636,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.0909,
"w": 0.5152,
"d": 0.5152,
"y": 0.3636,
"h": 0.6061,
"color": "metal"
},
{
"shape": "box",
"x": 0.0,
"z": 0.4545,
"w": 0.3636,
"d": 0.0303,
"y": 0.1212,
"h": 0.2121,
"color": "#1d2533",
"screen": true
}
],
"mount": "surface",
"electric": true
},
{
"id": "air_fryer",
"name": {
"de": "Heißluftfritteuse",
"en": "Air fryer"
},
"size": [
0.3,
0.35,
0.33
],
"parts": [
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"tw": 1,
"td": 1,
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.4571,
"w": 0.7333,
"d": 0.0857,
"y": 0.1212,
"h": 0.5455,
"color": "#2b3446"
},
{
"shape": "box",
"x": 0.0,
"z": 0.3429,
"w": 0.4,
"d": 0.0286,
"y": 0.8182,
"h": 0.1212,
"color": "#ff7a1a",
"screen": true
}
],
"mount": "surface",
"electric": true
},
{
"id": "microwave",
"name": {
"de": "Mikrowelle",
"en": "Microwave"
},
"size": [
0.48,
0.38,
0.28
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#e8ecf2",
"edges": "faint"
},
{
"shape": "box",
"x": -0.1042,
"z": 0.5,
"w": 0.6667,
"d": 0.0263,
"y": 0.1429,
"h": 0.7143,
"color": "#2b3446"
},
{
"shape": "box",
"x": 0.375,
"z": 0.5,
"w": 0.1667,
"d": 0.0263,
"y": 0.6429,
"h": 0.1429,
"color": "#1d2533",
"screen": true
}
],
"mount": "surface",
"electric": true
},
{
"id": "wine_fridge",
"name": {
"de": "Weinkühlschrank",
"en": "Wine fridge"
},
"size": [
0.6,
0.6,
0.85
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.8667,
"d": 0.0167,
"y": 0.0588,
"h": 0.8824,
"color": "glass",
"edges": "glow"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.1667,
"w": 0.8333,
"d": 0.1,
"y": 0.1412,
"h": 0.0706,
"color": "#6b1f2f",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.1667,
"w": 0.8333,
"d": 0.1,
"y": 0.2824,
"h": 0.0706,
"color": "#6b1f2f",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.1667,
"w": 0.8333,
"d": 0.1,
"y": 0.4235,
"h": 0.0706,
"color": "#6b1f2f",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.1667,
"w": 0.8333,
"d": 0.1,
"y": 0.5647,
"h": 0.0706,
"color": "#6b1f2f",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.1667,
"w": 0.8333,
"d": 0.1,
"y": 0.7059,
"h": 0.0706,
"color": "#6b1f2f",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.1667,
"w": 0.8333,
"d": 0.1,
"y": 0.8471,
"h": 0.0706,
"color": "#6b1f2f",
"axis": "x"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.8333,
"d": 0.0083,
"y": 0.9647,
"h": 0.0118,
"color": "#a8d8ff",
"glow": true
}
],
"electric": true,
"light": "strip"
},
{
"id": "water_bar",
"name": {
"de": "Wassersprudler",
"en": "Sparkling water maker"
},
"size": [
0.15,
0.25,
0.45
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": -0.2,
"w": 0.9333,
"d": 0.48,
"y": 0,
"h": 0.9333,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.24,
"w": 0.6,
"d": 0.36,
"y": 0.0444,
"h": 0.6667,
"color": "glass"
},
{
"shape": "box",
"x": 0.0,
"z": 0.2,
"w": 0.3333,
"d": 0.24,
"y": 0.8,
"h": 0.0889,
"color": "dark"
}
],
"mount": "surface"
},
{
"id": "dishwasher_slim",
"name": {
"de": "Geschirrspüler 45 cm",
"en": "Slim dishwasher (45 cm)"
},
"size": [
0.45,
0.6,
0.82
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#e8ecf2",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.8,
"d": 0.0333,
"y": 0.9024,
"h": 0.0244,
"color": "metal"
},
{
"shape": "box",
"x": 0.2667,
"z": 0.5,
"w": 0.1778,
"d": 0.0083,
"y": 0.9512,
"h": 0.0244,
"color": "#38e07b",
"glow": true
}
],
"electric": true
}
]
}
@@ -0,0 +1,615 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_loft",
"name": "Loft & Industrial",
"publisher": "NextFloor",
"description": "Stahlregal, Fabrik-Pendel, Ledersofa, Eichenbohle auf Stahl, Spind, Edison-Stehleuchte, Barhocker und Rohrregal",
"release": 1,
"items": [
{
"id": "steel_shelf",
"name": {
"de": "Stahlregal",
"en": "Steel shelf"
},
"size": [
1.2,
0.4,
2.0
],
"parts": [
{
"shape": "box",
"x": -0.4833,
"z": -0.45,
"w": 0.0333,
"d": 0.1,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "box",
"x": -0.4833,
"z": 0.45,
"w": 0.0333,
"d": 0.1,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "box",
"x": 0.4833,
"z": -0.45,
"w": 0.0333,
"d": 0.1,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "box",
"x": 0.4833,
"z": 0.45,
"w": 0.0333,
"d": 0.1,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.025,
"h": 0.02,
"color": "#6b4a32"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.25,
"h": 0.02,
"color": "#6b4a32"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.475,
"h": 0.02,
"color": "#6b4a32"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.7,
"h": 0.02,
"color": "#6b4a32"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.925,
"h": 0.02,
"color": "#6b4a32"
},
{
"shape": "box",
"x": -0.2917,
"z": 0.0,
"w": 0.2083,
"d": 0.55,
"y": 0.27,
"h": 0.15,
"color": "#b3a48a"
},
{
"shape": "box",
"x": 0.25,
"z": 0.0,
"w": 0.2083,
"d": 0.55,
"y": 0.27,
"h": 0.15,
"color": "#b3a48a"
}
],
"surface": true
},
{
"id": "factory_pendant",
"name": {
"de": "Fabrik-Pendelleuchte",
"en": "Factory pendant"
},
"size": [
0.45,
0.45,
0.9
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.0222,
"d": 0.0222,
"y": 0.4444,
"h": 0.5556,
"color": "dark"
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.0556,
"h": 0.3889,
"color": "dark",
"tw": 0.3333,
"td": 0.3333
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.7778,
"d": 0.7778,
"y": 0.0444,
"h": 0.0222,
"color": "#ffd89a",
"glow": true
}
],
"mount": "ceiling",
"electric": true,
"light": "pendant"
},
{
"id": "leather_sofa",
"name": {
"de": "Ledersofa",
"en": "Leather sofa"
},
"size": [
2.2,
0.95,
0.8
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0526,
"w": 1,
"d": 0.8947,
"y": 0.15,
"h": 0.4125,
"color": "#6b3a22",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": -0.4,
"w": 1,
"d": 0.2105,
"y": 0.5625,
"h": 0.4375,
"color": "#6b3a22"
},
{
"shape": "box",
"x": -0.4545,
"z": 0.0526,
"w": 0.0909,
"d": 0.8947,
"y": 0.5625,
"h": 0.25,
"color": "#6b3a22"
},
{
"shape": "box",
"x": 0.4545,
"z": 0.0526,
"w": 0.0909,
"d": 0.8947,
"y": 0.5625,
"h": 0.25,
"color": "#6b3a22"
},
{
"shape": "box",
"x": -0.2045,
"z": 0.1053,
"w": 0.3864,
"d": 0.6316,
"y": 0.5625,
"h": 0.125,
"color": "#7d4529"
},
{
"shape": "box",
"x": 0.2045,
"z": 0.1053,
"w": 0.3864,
"d": 0.6316,
"y": 0.5625,
"h": 0.125,
"color": "#7d4529"
},
{
"shape": "box",
"x": -0.4636,
"z": -0.4158,
"w": 0.0182,
"d": 0.0421,
"y": 0,
"h": 0.15,
"color": "dark"
},
{
"shape": "box",
"x": -0.4636,
"z": 0.4158,
"w": 0.0182,
"d": 0.0421,
"y": 0,
"h": 0.15,
"color": "dark"
},
{
"shape": "box",
"x": 0.4636,
"z": -0.4158,
"w": 0.0182,
"d": 0.0421,
"y": 0,
"h": 0.15,
"color": "dark"
},
{
"shape": "box",
"x": 0.4636,
"z": 0.4158,
"w": 0.0182,
"d": 0.0421,
"y": 0,
"h": 0.15,
"color": "dark"
}
]
},
{
"id": "plank_table",
"name": {
"de": "Bohlentisch",
"en": "Plank dining table"
},
"size": [
2.2,
0.95,
0.76
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.9342,
"h": 0.0658,
"color": "#6b4a32"
},
{
"shape": "loft",
"x": -0.4091,
"z": 0.0,
"w": 0.0364,
"d": 0.8421,
"y": 0,
"h": 0.9342,
"color": "dark",
"tw": 0.0364,
"td": 0.0842
},
{
"shape": "loft",
"x": 0.4091,
"z": 0.0,
"w": 0.0364,
"d": 0.8421,
"y": 0,
"h": 0.9342,
"color": "dark",
"tw": 0.0364,
"td": 0.0842
}
],
"surface": true
},
{
"id": "locker",
"name": {
"de": "Spind",
"en": "Metal locker"
},
"size": [
0.9,
0.5,
1.8
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#4f6b5a",
"edges": "faint"
},
{
"shape": "box",
"x": -0.1667,
"z": 0.5,
"w": 0.0111,
"d": 0.02,
"y": 0.0278,
"h": 0.9444,
"color": "dark"
},
{
"shape": "box",
"x": 0.1667,
"z": 0.5,
"w": 0.0111,
"d": 0.02,
"y": 0.0278,
"h": 0.9444,
"color": "dark"
},
{
"shape": "box",
"x": -0.3333,
"z": 0.5,
"w": 0.1556,
"d": 0.01,
"y": 0.8333,
"h": 0.0667,
"color": "#3a4f43"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.1556,
"d": 0.01,
"y": 0.8333,
"h": 0.0667,
"color": "#3a4f43"
},
{
"shape": "box",
"x": 0.3333,
"z": 0.5,
"w": 0.1556,
"d": 0.01,
"y": 0.8333,
"h": 0.0667,
"color": "#3a4f43"
}
]
},
{
"id": "edison_floor_lamp",
"name": {
"de": "Edison-Stehleuchte",
"en": "Edison floor lamp"
},
"size": [
0.4,
0.4,
1.7
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.75,
"d": 0.75,
"y": 0,
"h": 0.0176,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.075,
"d": 0.075,
"y": 0.0176,
"h": 0.8235,
"color": "dark"
},
{
"shape": "box",
"x": 0.25,
"z": 0.0,
"w": 0.625,
"d": 0.075,
"y": 0.8412,
"h": 0.0176,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.5,
"z": 0.0,
"w": 0.25,
"d": 0.25,
"y": 0.7647,
"h": 0.0824,
"color": "#ffd89a",
"glow": true
}
],
"electric": true,
"light": "floor"
},
{
"id": "bar_stool_loft",
"name": {
"de": "Industrie-Barhocker",
"en": "Industrial bar stool"
},
"size": [
0.42,
0.42,
0.75
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.8571,
"d": 0.8571,
"y": 0.9333,
"h": 0.0667,
"color": "#6b4a32"
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 0.9048,
"d": 0.9048,
"y": 0,
"h": 0.9333,
"color": "dark",
"tw": 0.5952,
"td": 0.5952
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.7143,
"d": 0.7143,
"y": 0.4,
"h": 0.0267,
"color": "dark"
}
]
},
{
"id": "pipe_shelf",
"name": {
"de": "Rohrregal",
"en": "Pipe wall shelf"
},
"size": [
1.0,
0.25,
0.8
],
"parts": [
{
"shape": "cyl",
"x": -0.45,
"z": 0.0,
"w": 0.03,
"d": 0.12,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.45,
"z": 0.0,
"w": 0.03,
"d": 0.12,
"y": 0,
"h": 1,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.05,
"color": "#6b4a32"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.475,
"h": 0.05,
"color": "#6b4a32"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.95,
"h": 0.05,
"color": "#6b4a32"
},
{
"shape": "cyl",
"x": -0.2,
"z": 0.0,
"w": 0.12,
"d": 0.48,
"y": 0.525,
"h": 0.225,
"color": "#b3a48a"
},
{
"shape": "cyl",
"x": 0.25,
"z": 0.08,
"w": 0.15,
"d": 0.6,
"y": 0.05,
"h": 0.25,
"color": "#5c9a52"
}
],
"mount": "wall",
"wall_y": 1.1,
"surface": true
}
]
}
@@ -0,0 +1,846 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_musik",
"name": "Musik & Atelier",
"publisher": "NextFloor",
"description": "Klavier, Flügel, Schlagzeug, Gitarren, Verstärker, Mischpult, Studiomonitore, Synthesizer, Mikrofon und Staffelei",
"release": 1,
"items": [
{
"id": "upright_piano",
"name": {
"de": "Klavier",
"en": "Upright piano"
},
"size": [
1.5,
0.6,
1.25
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": -0.1667,
"w": 1,
"d": 0.6667,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.25,
"w": 1,
"d": 0.5,
"y": 0.56,
"h": 0.04,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.3333,
"w": 0.8667,
"d": 0.25,
"y": 0.576,
"h": 0.016,
"color": "white"
},
{
"shape": "box",
"x": -0.4667,
"z": 0.3333,
"w": 0.04,
"d": 0.1,
"y": 0,
"h": 0.56,
"color": "dark"
},
{
"shape": "box",
"x": 0.4667,
"z": 0.3333,
"w": 0.04,
"d": 0.1,
"y": 0,
"h": 0.56,
"color": "dark"
}
]
},
{
"id": "grand_piano",
"name": {
"de": "Flügel",
"en": "Grand piano"
},
"size": [
1.5,
2.1,
1.0
],
"parts": [
{
"shape": "loft",
"x": 0.0,
"z": -0.0476,
"w": 1,
"d": 0.8571,
"y": 0.6,
"h": 0.35,
"color": "dark",
"tx": -0.1333,
"tw": 0.5333,
"td": 0.6667,
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.4286,
"w": 0.9333,
"d": 0.119,
"y": 0.7,
"h": 0.05,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.4524,
"w": 0.8333,
"d": 0.0571,
"y": 0.72,
"h": 0.02,
"color": "white"
},
{
"shape": "cyl",
"x": -0.4,
"z": 0.381,
"w": 0.0533,
"d": 0.0381,
"y": 0,
"h": 0.6,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.4,
"z": 0.381,
"w": 0.0533,
"d": 0.0381,
"y": 0,
"h": 0.6,
"color": "dark"
},
{
"shape": "cyl",
"x": -0.1333,
"z": -0.381,
"w": 0.0533,
"d": 0.0381,
"y": 0,
"h": 0.6,
"color": "dark"
},
{
"shape": "loft",
"x": -0.1,
"z": -0.0952,
"w": 0.7333,
"d": 0.6667,
"y": 0.95,
"h": 0.05,
"color": "dark",
"rot": 0
}
]
},
{
"id": "drum_kit",
"name": {
"de": "Schlagzeug",
"en": "Drum kit"
},
"size": [
1.8,
1.4,
1.3
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.1429,
"w": 0.3056,
"d": 0.2857,
"y": 0.0385,
"h": 0.4231,
"color": "#b3232f",
"axis": "z"
},
{
"shape": "cyl",
"x": -0.2778,
"z": 0.2143,
"w": 0.1944,
"d": 0.25,
"y": 0.3462,
"h": 0.1538,
"color": "#b3232f"
},
{
"shape": "cyl",
"x": -0.0833,
"z": 0.0,
"w": 0.1667,
"d": 0.2143,
"y": 0.5769,
"h": 0.1538,
"color": "#b3232f"
},
{
"shape": "cyl",
"x": 0.1111,
"z": 0.0,
"w": 0.1667,
"d": 0.2143,
"y": 0.5769,
"h": 0.1538,
"color": "#b3232f"
},
{
"shape": "cyl",
"x": 0.3056,
"z": 0.1429,
"w": 0.25,
"d": 0.3214,
"y": 0.3077,
"h": 0.2692,
"color": "#b3232f"
},
{
"shape": "cyl",
"x": -0.3889,
"z": -0.0714,
"w": 0.25,
"d": 0.3214,
"y": 0.9231,
"h": 0.0077,
"color": "#d4a637"
},
{
"shape": "cyl",
"x": 0.4167,
"z": -0.1429,
"w": 0.25,
"d": 0.3214,
"y": 0.9231,
"h": 0.0077,
"color": "#d4a637"
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.3214,
"w": 0.2222,
"d": 0.2857,
"y": 0.3846,
"h": 0.0769,
"color": "dark"
}
]
},
{
"id": "guitar_stand",
"name": {
"de": "Gitarren auf Ständer",
"en": "Guitars on stands"
},
"size": [
0.9,
0.45,
1.05
],
"parts": [
{
"shape": "loft",
"x": -0.2778,
"z": 0.0,
"w": 0.3889,
"d": 0.2222,
"y": 0,
"h": 0.4286,
"color": "#b8743a",
"tw": 0.2778,
"td": 0.1778
},
{
"shape": "loft",
"x": 0.2778,
"z": 0.0,
"w": 0.3889,
"d": 0.2222,
"y": 0,
"h": 0.4286,
"color": "#2b3446",
"tw": 0.2778,
"td": 0.1778
},
{
"shape": "box",
"x": -0.2778,
"z": 0.0,
"w": 0.0556,
"d": 0.0667,
"y": 0.4286,
"h": 0.5238,
"color": "#6b4a32"
},
{
"shape": "box",
"x": 0.2778,
"z": 0.0,
"w": 0.0556,
"d": 0.0667,
"y": 0.4286,
"h": 0.5238,
"color": "#6b4a32"
},
{
"shape": "box",
"x": -0.2778,
"z": 0.2222,
"w": 0.2778,
"d": 0.5556,
"y": 0,
"h": 0.0286,
"color": "dark"
},
{
"shape": "box",
"x": 0.2778,
"z": 0.2222,
"w": 0.2778,
"d": 0.5556,
"y": 0,
"h": 0.0286,
"color": "dark"
}
]
},
{
"id": "guitar_amp",
"name": {
"de": "Gitarrenverstärker",
"en": "Guitar amp"
},
"size": [
0.6,
0.3,
0.5
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.8333,
"d": 0.0333,
"y": 0.1,
"h": 0.64,
"color": "#3a3226"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.9167,
"d": 0.0333,
"y": 0.8,
"h": 0.12,
"color": "#d4a637"
},
{
"shape": "box",
"x": 0.3333,
"z": 0.5,
"w": 0.0333,
"d": 0.0167,
"y": 0.84,
"h": 0.04,
"color": "#e03a3a",
"glow": true
}
],
"electric": true
},
{
"id": "mixing_desk",
"name": {
"de": "Mischpult-Tisch",
"en": "Studio desk with mixer"
},
"size": [
1.8,
0.8,
1.15
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.6261,
"h": 0.0435,
"color": "#6b4a32"
},
{
"shape": "box",
"x": -0.4722,
"z": -0.4375,
"w": 0.0278,
"d": 0.0625,
"y": 0,
"h": 0.6261,
"color": "dark"
},
{
"shape": "box",
"x": -0.4722,
"z": 0.4375,
"w": 0.0278,
"d": 0.0625,
"y": 0,
"h": 0.6261,
"color": "dark"
},
{
"shape": "box",
"x": 0.4722,
"z": -0.4375,
"w": 0.0278,
"d": 0.0625,
"y": 0,
"h": 0.6261,
"color": "dark"
},
{
"shape": "box",
"x": 0.4722,
"z": 0.4375,
"w": 0.0278,
"d": 0.0625,
"y": 0,
"h": 0.6261,
"color": "dark"
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0625,
"w": 0.5,
"d": 0.5625,
"y": 0.6696,
"h": 0.0696,
"color": "dark",
"tz": -0.0625,
"td": 0.4375
},
{
"shape": "box",
"x": -0.4167,
"z": -0.3125,
"w": 0.1222,
"d": 0.3125,
"y": 0.6696,
"h": 0.313,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0.4167,
"z": -0.3125,
"w": 0.1222,
"d": 0.3125,
"y": 0.6696,
"h": 0.313,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": -0.375,
"w": 0.3333,
"d": 0.0625,
"y": 0.713,
"h": 0.287,
"color": "#1d2533",
"screen": true
}
],
"electric": true,
"surface": true
},
{
"id": "studio_monitor",
"name": {
"de": "Studiomonitor",
"en": "Studio monitor"
},
"size": [
0.2,
0.25,
0.32
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.5,
"w": 0.75,
"d": 0.04,
"y": 0.125,
"h": 0.4688,
"color": "#d4a637",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.5,
"w": 0.25,
"d": 0.04,
"y": 0.6875,
"h": 0.1562,
"color": "#4a5468",
"axis": "z"
}
],
"mount": "surface",
"electric": true
},
{
"id": "synth",
"name": {
"de": "Synthesizer",
"en": "Synthesizer"
},
"size": [
1.0,
0.35,
0.95
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.8421,
"h": 0.1053,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.2286,
"w": 0.9,
"d": 0.4286,
"y": 0.9474,
"h": 0.0211,
"color": "white"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.9,
"d": 0.1429,
"y": 0.5263,
"h": 0.0316,
"color": "metal"
},
{
"shape": "box",
"x": -0.4,
"z": 0.0,
"w": 0.04,
"d": 0.8571,
"y": 0,
"h": 0.8421,
"color": "metal",
"rot": -15
},
{
"shape": "box",
"x": 0.4,
"z": 0.0,
"w": 0.04,
"d": 0.8571,
"y": 0,
"h": 0.8421,
"color": "metal",
"rot": 15
},
{
"shape": "box",
"x": -0.35,
"z": -0.2286,
"w": 0.04,
"d": 0.1143,
"y": 0.9474,
"h": 0.0211,
"color": "#ff7a1a",
"glow": true
},
{
"shape": "box",
"x": -0.25,
"z": -0.2286,
"w": 0.04,
"d": 0.1143,
"y": 0.9474,
"h": 0.0211,
"color": "#ff7a1a",
"glow": true
},
{
"shape": "box",
"x": -0.15,
"z": -0.2286,
"w": 0.04,
"d": 0.1143,
"y": 0.9474,
"h": 0.0211,
"color": "#ff7a1a",
"glow": true
},
{
"shape": "box",
"x": -0.05,
"z": -0.2286,
"w": 0.04,
"d": 0.1143,
"y": 0.9474,
"h": 0.0211,
"color": "#ff7a1a",
"glow": true
}
],
"electric": true
},
{
"id": "mic_stand",
"name": {
"de": "Mikrofon mit Ständer",
"en": "Microphone on a stand"
},
"size": [
0.6,
0.6,
1.7
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.8333,
"d": 0.8333,
"y": 0,
"h": 0.0176,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.05,
"d": 0.05,
"y": 0.0176,
"h": 0.8235,
"color": "dark"
},
{
"shape": "box",
"x": 0.1667,
"z": 0.0,
"w": 0.5,
"d": 0.0333,
"y": 0.8412,
"h": 0.0118,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.4167,
"z": 0.0,
"w": 0.1,
"d": 0.1,
"y": 0.8235,
"h": 0.0882,
"color": "metal"
}
]
},
{
"id": "easel",
"name": {
"de": "Staffelei",
"en": "Easel"
},
"size": [
0.7,
0.6,
1.8
],
"parts": [
{
"shape": "box",
"x": -0.2857,
"z": 0.1667,
"w": 0.0571,
"d": 0.0667,
"y": 0,
"h": 0.9722,
"color": "#b98d5a",
"rot": -6
},
{
"shape": "box",
"x": 0.2857,
"z": 0.1667,
"w": 0.0571,
"d": 0.0667,
"y": 0,
"h": 0.9722,
"color": "#b98d5a",
"rot": 6
},
{
"shape": "box",
"x": 0.0,
"z": -0.3333,
"w": 0.0571,
"d": 0.0667,
"y": 0,
"h": 0.8889,
"color": "#b98d5a"
},
{
"shape": "box",
"x": 0.0,
"z": 0.2,
"w": 0.8571,
"d": 0.05,
"y": 0.4444,
"h": 0.4444,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.2333,
"w": 0.7143,
"d": 0.0167,
"y": 0.5,
"h": 0.3333,
"color": "#7ab8ff"
},
{
"shape": "box",
"x": 0.0,
"z": 0.2,
"w": 0.8571,
"d": 0.1,
"y": 0.4222,
"h": 0.0222,
"color": "#b98d5a"
}
]
},
{
"id": "vinyl_player",
"name": {
"de": "Plattenspieler",
"en": "Record player"
},
"size": [
0.45,
0.36,
0.13
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.6154,
"color": "#6b4a32",
"edges": "faint"
},
{
"shape": "cyl",
"x": -0.1111,
"z": 0.0,
"w": 0.6667,
"d": 0.8333,
"y": 0.6154,
"h": 0.1538,
"color": "dark"
},
{
"shape": "box",
"x": 0.3333,
"z": -0.1389,
"w": 0.0444,
"d": 0.5556,
"y": 0.7692,
"h": 0.1538,
"color": "metal",
"rot": 20
}
],
"mount": "surface",
"electric": true
}
]
}
@@ -0,0 +1,979 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_saison",
"name": "Saison & Deko",
"publisher": "NextFloor",
"description": "Weihnachtsbaum mit Lichterkette, Adventskranz, Lichterketten, Kürbisse, Ostern und Schneemann",
"release": 1,
"items": [
{
"id": "xmas_tree",
"name": {
"de": "Weihnachtsbaum mit Lichterkette",
"en": "Christmas tree with lights"
},
"size": [
1.2,
1.2,
2.4
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.375,
"d": 0.375,
"y": 0,
"h": 0.125,
"color": "#8a3b2a"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.0667,
"d": 0.0667,
"y": 0.125,
"h": 0.0833,
"color": "wood"
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.1875,
"h": 0.2292,
"color": "#2f6b3a",
"tw": 0.1,
"td": 0.1
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.82,
"d": 0.82,
"y": 0.2375,
"h": 0.0083,
"color": "#ffd89a",
"glow": true
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 0.78,
"d": 0.78,
"y": 0.3958,
"h": 0.2292,
"color": "#2f6b3a",
"tw": 0.1,
"td": 0.1
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.6396,
"d": 0.6396,
"y": 0.4458,
"h": 0.0083,
"color": "#ffd89a",
"glow": true
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 0.56,
"d": 0.56,
"y": 0.5833,
"h": 0.2292,
"color": "#2f6b3a",
"tw": 0.1,
"td": 0.1
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.4592,
"d": 0.4592,
"y": 0.6333,
"h": 0.0083,
"color": "#ffd89a",
"glow": true
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 0.34,
"d": 0.34,
"y": 0.75,
"h": 0.2292,
"color": "#2f6b3a",
"tw": 0.1,
"td": 0.1
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.2788,
"d": 0.2788,
"y": 0.8,
"h": 0.0083,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.1,
"d": 0.1,
"y": 0.9375,
"h": 0.05,
"color": "#ffcc33",
"glow": true
}
],
"electric": true,
"light": "floor"
},
{
"id": "advent_wreath",
"name": {
"de": "Adventskranz",
"en": "Advent wreath"
},
"size": [
0.4,
0.4,
0.2
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.35,
"color": "#2f6b3a"
},
{
"shape": "cyl",
"x": 0.3,
"z": 0.0,
"w": 0.125,
"d": 0.125,
"y": 0.25,
"h": 0.5,
"color": "#b3232f"
},
{
"shape": "cyl",
"x": -0.3,
"z": 0.0,
"w": 0.125,
"d": 0.125,
"y": 0.25,
"h": 0.5,
"color": "#b3232f"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.3,
"w": 0.125,
"d": 0.125,
"y": 0.25,
"h": 0.5,
"color": "#b3232f"
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.3,
"w": 0.125,
"d": 0.125,
"y": 0.25,
"h": 0.5,
"color": "#b3232f"
},
{
"shape": "cyl",
"x": 0.3,
"z": 0.0,
"w": 0.05,
"d": 0.05,
"y": 0.75,
"h": 0.15,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": -0.3,
"z": 0.0,
"w": 0.05,
"d": 0.05,
"y": 0.75,
"h": 0.15,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.3,
"w": 0.05,
"d": 0.05,
"y": 0.75,
"h": 0.15,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.3,
"w": 0.05,
"d": 0.05,
"y": 0.75,
"h": 0.15,
"color": "#ffd89a",
"glow": true
}
],
"mount": "surface",
"electric": true,
"light": "table"
},
{
"id": "lights_outdoor",
"name": {
"de": "Lichterkette außen",
"en": "Outdoor string lights"
},
"size": [
4.0,
0.1,
0.3
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.1,
"y": 0.8333,
"h": 0.0333,
"color": "dark"
},
{
"shape": "cyl",
"x": -0.475,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.4,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": -0.38,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.6667,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": -0.285,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.4,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": -0.19,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.4,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": -0.095,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.6667,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.4,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.095,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.4,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.19,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.6667,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.285,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.4,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.38,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.4,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.475,
"z": 0.0,
"w": 0.015,
"d": 0.6,
"y": 0.6667,
"h": 0.2667,
"color": "#ffd89a",
"glow": true
}
],
"mount": "wall",
"wall_y": 2.2,
"electric": true,
"light": "strip"
},
{
"id": "window_star",
"name": {
"de": "Fensterstern",
"en": "Window star"
},
"size": [
0.4,
0.06,
0.4
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.75,
"d": 0.5,
"y": 0.125,
"h": 0.75,
"color": "#fff1c9",
"glow": true,
"rot": 45
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.75,
"d": 0.5,
"y": 0.125,
"h": 0.75,
"color": "#fff1c9",
"glow": true
}
],
"mount": "wall",
"wall_y": 1.4,
"electric": true,
"light": "wall"
},
{
"id": "candle_arch",
"name": {
"de": "Schwibbogen",
"en": "Candle arch"
},
"size": [
0.6,
0.1,
0.4
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.1,
"color": "wood"
},
{
"shape": "loft",
"x": 0.0,
"z": 0.0,
"w": 0.9333,
"d": 0.3,
"y": 0.1,
"h": 0.75,
"color": "wood",
"tw": 0.3333
},
{
"shape": "cyl",
"x": -0.4,
"z": 0.0,
"w": 0.0333,
"d": 0.2,
"y": 0.2875,
"h": 0.1,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": -0.2667,
"z": 0.0,
"w": 0.0333,
"d": 0.2,
"y": 0.475,
"h": 0.1,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": -0.1333,
"z": 0.0,
"w": 0.0333,
"d": 0.2,
"y": 0.6625,
"h": 0.1,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.0333,
"d": 0.2,
"y": 0.85,
"h": 0.1,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.1333,
"z": 0.0,
"w": 0.0333,
"d": 0.2,
"y": 0.6625,
"h": 0.1,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.2667,
"z": 0.0,
"w": 0.0333,
"d": 0.2,
"y": 0.475,
"h": 0.1,
"color": "#ffd89a",
"glow": true
},
{
"shape": "cyl",
"x": 0.4,
"z": 0.0,
"w": 0.0333,
"d": 0.2,
"y": 0.2875,
"h": 0.1,
"color": "#ffd89a",
"glow": true
}
],
"mount": "surface",
"electric": true,
"light": "table"
},
{
"id": "reindeer_light",
"name": {
"de": "Leucht-Rentier",
"en": "Light-up reindeer"
},
"size": [
0.9,
0.35,
1.0
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.6667,
"d": 0.7143,
"y": 0.5,
"h": 0.25,
"color": "#fff1c9",
"glow": true,
"edges": "glow"
},
{
"shape": "box",
"x": -0.2778,
"z": -0.2286,
"w": 0.0444,
"d": 0.1143,
"y": 0,
"h": 0.5,
"color": "#fff1c9",
"glow": true
},
{
"shape": "box",
"x": -0.2778,
"z": 0.2286,
"w": 0.0444,
"d": 0.1143,
"y": 0,
"h": 0.5,
"color": "#fff1c9",
"glow": true
},
{
"shape": "box",
"x": 0.2778,
"z": -0.2286,
"w": 0.0444,
"d": 0.1143,
"y": 0,
"h": 0.5,
"color": "#fff1c9",
"glow": true
},
{
"shape": "box",
"x": 0.2778,
"z": 0.2286,
"w": 0.0444,
"d": 0.1143,
"y": 0,
"h": 0.5,
"color": "#fff1c9",
"glow": true
},
{
"shape": "box",
"x": 0.3556,
"z": 0.0,
"w": 0.0889,
"d": 0.2286,
"y": 0.7,
"h": 0.2,
"color": "#fff1c9",
"glow": true
},
{
"shape": "box",
"x": 0.4222,
"z": 0.0,
"w": 0.2,
"d": 0.3429,
"y": 0.85,
"h": 0.1,
"color": "#fff1c9",
"glow": true
},
{
"shape": "box",
"x": 0.4,
"z": 0.0,
"w": 0.0222,
"d": 0.5714,
"y": 0.92,
"h": 0.08,
"color": "#fff1c9",
"glow": true
}
],
"electric": true,
"light": "garden"
},
{
"id": "pumpkin",
"name": {
"de": "Kürbis",
"en": "Pumpkin"
},
"size": [
0.4,
0.4,
0.35
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.8571,
"color": "#e07b1f"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.1,
"d": 0.1,
"y": 0.8571,
"h": 0.1429,
"color": "#5a4a2a"
}
]
},
{
"id": "pumpkin_lantern",
"name": {
"de": "Kürbislaterne",
"en": "Jack-o'-lantern"
},
"size": [
0.4,
0.4,
0.38
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.8421,
"color": "#e07b1f"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.5,
"d": 0.025,
"y": 0.2632,
"h": 0.3158,
"color": "#ffb347",
"glow": true
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.1,
"d": 0.1,
"y": 0.8421,
"h": 0.1316,
"color": "#5a4a2a"
}
],
"electric": true,
"light": "table"
},
{
"id": "easter_tree",
"name": {
"de": "Osterstrauch",
"en": "Easter tree"
},
"size": [
0.5,
0.5,
0.9
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.44,
"d": 0.44,
"y": 0,
"h": 0.2778,
"color": "white"
},
{
"shape": "box",
"x": -0.12,
"z": 0.0,
"w": 0.03,
"d": 0.03,
"y": 0.2778,
"h": 0.6667,
"color": "wood",
"rot": 10
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.03,
"d": 0.03,
"y": 0.2778,
"h": 0.6667,
"color": "wood",
"rot": 0
},
{
"shape": "box",
"x": 0.12,
"z": 0.0,
"w": 0.03,
"d": 0.03,
"y": 0.2778,
"h": 0.6667,
"color": "wood",
"rot": -10
},
{
"shape": "cyl",
"x": -0.28,
"z": 0.0,
"w": 0.12,
"d": 0.12,
"y": 0.7778,
"h": 0.0889,
"color": "#f2a7c3"
},
{
"shape": "cyl",
"x": 0.2,
"z": 0.1,
"w": 0.12,
"d": 0.12,
"y": 0.6667,
"h": 0.0889,
"color": "#9fd4f5"
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.2,
"w": 0.12,
"d": 0.12,
"y": 0.8667,
"h": 0.0889,
"color": "#f7e27a"
},
{
"shape": "cyl",
"x": 0.3,
"z": -0.1,
"w": 0.12,
"d": 0.12,
"y": 0.5556,
"h": 0.0889,
"color": "#b6e3a1"
}
],
"mount": "surface"
},
{
"id": "snowman",
"name": {
"de": "Schneemann",
"en": "Snowman"
},
"size": [
0.7,
0.7,
1.5
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.4333,
"color": "white"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.7143,
"d": 0.7143,
"y": 0.4,
"h": 0.3333,
"color": "white"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.4857,
"d": 0.4857,
"y": 0.7,
"h": 0.2267,
"color": "white"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.2286,
"w": 0.0571,
"d": 0.1714,
"y": 0.7867,
"h": 0.0267,
"color": "#e07b1f",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.3714,
"d": 0.3714,
"y": 0.9067,
"h": 0.0933,
"color": "dark"
}
]
},
{
"id": "gift_pile",
"name": {
"de": "Geschenke",
"en": "Presents"
},
"size": [
0.8,
0.6,
0.4
],
"parts": [
{
"shape": "box",
"x": -0.25,
"z": 0.0,
"w": 0.4375,
"d": 0.5833,
"y": 0,
"h": 0.75,
"color": "#b3232f"
},
{
"shape": "box",
"x": -0.25,
"z": 0.0,
"w": 0.45,
"d": 0.0833,
"y": 0,
"h": 0.775,
"color": "#ffcc33"
},
{
"shape": "box",
"x": 0.25,
"z": 0.0833,
"w": 0.375,
"d": 0.5,
"y": 0,
"h": 0.5,
"color": "#2f6b9a"
},
{
"shape": "box",
"x": 0.25,
"z": 0.0833,
"w": 0.0625,
"d": 0.5167,
"y": 0,
"h": 0.525,
"color": "white"
},
{
"shape": "box",
"x": 0.0625,
"z": -0.3,
"w": 0.3125,
"d": 0.3333,
"y": 0,
"h": 0.375,
"color": "#3f8a4a"
}
]
}
]
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,465 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_smart2",
"name": "Smart Home 2",
"publisher": "NextFloor",
"description": "Sirene, Access Point, Rauch- und CO-Melder, Luftentfeuchter, Würfellampe, Präsenzmelder und Wassermelder",
"release": 1,
"items": [
{
"id": "siren",
"name": {
"de": "Sirene",
"en": "Siren"
},
"size": [
0.18,
0.1,
0.22
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.5,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.5,
"w": 0.6667,
"d": 0.5,
"y": 0.2727,
"h": 0.5455,
"color": "#e03a3a",
"glow": true,
"axis": "z"
}
],
"mount": "wall",
"wall_y": 2.1,
"electric": true,
"light": "wall"
},
{
"id": "access_point",
"name": {
"de": "WLAN-Access-Point",
"en": "Wi-Fi access point"
},
"size": [
0.22,
0.22,
0.04
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.7273,
"d": 0.7273,
"y": 0,
"h": 0.125,
"color": "#7fd0ff",
"glow": true
}
],
"mount": "ceiling",
"electric": true
},
{
"id": "access_point_wall",
"name": {
"de": "WLAN-Access-Point (Wand)",
"en": "Wi-Fi access point (wall)"
},
"size": [
0.16,
0.04,
0.16
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.375,
"d": 0.125,
"y": 0.625,
"h": 0.0625,
"color": "#7fd0ff",
"glow": true
}
],
"mount": "wall",
"wall_y": 2.0,
"electric": true
},
{
"id": "smoke_detector",
"name": {
"de": "Rauchmelder",
"en": "Smoke detector"
},
"size": [
0.11,
0.11,
0.05
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.2727,
"z": 0.0,
"w": 0.0909,
"d": 0.0909,
"y": 0,
"h": 0.1,
"color": "#e03a3a",
"glow": true
}
],
"mount": "ceiling",
"electric": true
},
{
"id": "co_detector",
"name": {
"de": "CO-Melder",
"en": "CO detector"
},
"size": [
0.12,
0.04,
0.12
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.5,
"d": 0.125,
"y": 0.5833,
"h": 0.2083,
"color": "#1d2533",
"screen": true
}
],
"mount": "wall",
"wall_y": 1.5,
"electric": true
},
{
"id": "dehumidifier",
"name": {
"de": "Luftentfeuchter",
"en": "Dehumidifier"
},
"size": [
0.35,
0.25,
0.55
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.0364,
"h": 0.9636,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.8,
"d": 0.8,
"y": 0.9636,
"h": 0.0364,
"color": "#c9d1dc"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.7143,
"d": 0.04,
"y": 0.0909,
"h": 0.3273,
"color": "#9fb8d4"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.2286,
"d": 0.04,
"y": 0.8182,
"h": 0.0545,
"color": "#38e07b",
"glow": true
}
],
"electric": true
},
{
"id": "cube_lamp",
"name": {
"de": "Würfellampe",
"en": "Cube lamp"
},
"size": [
0.2,
0.2,
0.2
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#fff1c9",
"glow": true,
"edges": "faint"
}
],
"mount": "surface",
"electric": true,
"light": "table"
},
{
"id": "presence_ceiling",
"name": {
"de": "Präsenzmelder (Decke)",
"en": "Presence sensor (ceiling)"
},
"size": [
0.09,
0.09,
0.03
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.4444,
"d": 0.4444,
"y": 0,
"h": 0.3333,
"color": "#2b3446"
}
],
"mount": "ceiling",
"electric": true
},
{
"id": "water_leak",
"name": {
"de": "Wassermelder",
"en": "Water leak sensor"
},
"size": [
0.07,
0.07,
0.02
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.2857,
"d": 0.2857,
"y": 1,
"h": 0.1,
"color": "#3ea6ff"
}
],
"electric": true
},
{
"id": "air_quality",
"name": {
"de": "Luftgütesensor",
"en": "Air quality monitor"
},
"size": [
0.12,
0.08,
0.16
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.8333,
"d": 0.0625,
"y": 0.1875,
"h": 0.625,
"color": "#1d2533",
"screen": true
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.6667,
"d": 0.075,
"y": 0.875,
"h": 0.0625,
"color": "#38e07b",
"glow": true
}
],
"mount": "surface",
"electric": true
},
{
"id": "doorbell_cam",
"name": {
"de": "Video-Türklingel",
"en": "Video doorbell"
},
"size": [
0.06,
0.03,
0.15
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.5,
"w": 0.5,
"d": 0.3333,
"y": 0.6667,
"h": 0.2,
"color": "#2b3446",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.5,
"w": 0.5,
"d": 0.3333,
"y": 0.1333,
"h": 0.2,
"color": "#7fd0ff",
"glow": true,
"axis": "z"
}
],
"mount": "wall",
"wall_y": 1.3,
"electric": true
}
]
}
@@ -0,0 +1,519 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_wellness",
"name": "Wellness",
"publisher": "NextFloor",
"description": "Sauna mit Temperatur, Fasssauna, Infrarotkabine, Whirlpool, Tauchbecken, Dampfdusche und Ruheliege",
"release": 1,
"items": [
{
"id": "sauna_cabin",
"name": {
"de": "Sauna",
"en": "Sauna"
},
"size": [
2.0,
1.8,
2.1
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#c08a54",
"edges": "faint"
},
{
"shape": "box",
"x": -0.25,
"z": 0.5,
"w": 0.3,
"d": 0.0111,
"y": 0.0476,
"h": 0.9048,
"color": "glass",
"edges": "glow"
},
{
"shape": "box",
"x": 0.2,
"z": 0.0,
"w": 0.5,
"d": 0.8333,
"y": 0.2143,
"h": 0.0286,
"color": "#e0b07a"
},
{
"shape": "box",
"x": 0.2,
"z": -0.2778,
"w": 0.5,
"d": 0.2778,
"y": 0.4286,
"h": 0.0286,
"color": "#e0b07a"
},
{
"shape": "box",
"x": -0.375,
"z": -0.3333,
"w": 0.175,
"d": 0.1944,
"y": 0,
"h": 0.2857,
"color": "dark"
},
{
"shape": "box",
"x": -0.375,
"z": -0.3333,
"w": 0.15,
"d": 0.1667,
"y": 0.2857,
"h": 0.0714,
"color": "#ff7a1a",
"glow": true
},
{
"shape": "box",
"x": 0.35,
"z": 0.5,
"w": 0.05,
"d": 0.0056,
"y": 0.7619,
"h": 0.0286,
"color": "#ff7a1a",
"screen": true
}
],
"electric": true,
"climate": true
},
{
"id": "sauna_barrel",
"name": {
"de": "Fasssauna",
"en": "Barrel sauna"
},
"size": [
2.2,
2.4,
2.2
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.0455,
"h": 0.9545,
"color": "#b07a46",
"axis": "z",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": -0.375,
"w": 0.8636,
"d": 0.0625,
"y": 0,
"h": 0.0545,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.375,
"w": 0.8636,
"d": 0.0625,
"y": 0,
"h": 0.0545,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.3182,
"d": 0.0083,
"y": 0.0909,
"h": 0.7273,
"color": "glass",
"edges": "glow"
},
{
"shape": "cyl",
"x": 0.3636,
"z": -0.25,
"w": 0.0682,
"d": 0.0625,
"y": 0.8636,
"h": 0.1818,
"color": "metal"
}
],
"electric": true,
"climate": true
},
{
"id": "infrared_cabin",
"name": {
"de": "Infrarotkabine",
"en": "Infrared cabin"
},
"size": [
1.2,
1.0,
1.9
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#d9a46b",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.5,
"d": 0.02,
"y": 0.0526,
"h": 0.8947,
"color": "glass",
"edges": "glow"
},
{
"shape": "box",
"x": -0.25,
"z": -0.45,
"w": 0.25,
"d": 0.02,
"y": 0.2632,
"h": 0.4211,
"color": "#ff5a3a",
"glow": true
},
{
"shape": "box",
"x": 0.25,
"z": -0.45,
"w": 0.25,
"d": 0.02,
"y": 0.2632,
"h": 0.4211,
"color": "#ff5a3a",
"glow": true
},
{
"shape": "box",
"x": 0.0,
"z": -0.1,
"w": 0.9167,
"d": 0.45,
"y": 0.2368,
"h": 0.0263,
"color": "#e0b07a"
}
],
"electric": true,
"climate": true,
"light": "panel"
},
{
"id": "hot_tub",
"name": {
"de": "Whirlpool",
"en": "Hot tub"
},
"size": [
2.2,
2.2,
0.9
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#5a4a3a",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.8636,
"d": 0.8636,
"y": 0.5556,
"h": 0.4222,
"color": "#2a8fd4",
"glow": true
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.9091,
"d": 0.9091,
"y": 0.9556,
"h": 0.0444,
"color": "#d9dee6"
}
],
"electric": true,
"climate": true,
"light": "garden"
},
{
"id": "plunge_pool",
"name": {
"de": "Tauchbecken",
"en": "Plunge pool"
},
"size": [
1.2,
1.2,
1.1
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#c0c7d1",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.9167,
"d": 0.9167,
"y": 0.5455,
"h": 0.4091,
"color": "#69b8e8",
"glow": true
}
]
},
{
"id": "steam_shower",
"name": {
"de": "Dampfdusche",
"en": "Steam shower"
},
"size": [
1.0,
1.0,
2.2
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.0364,
"color": "white"
},
{
"shape": "box",
"x": 0.0,
"z": -0.48,
"w": 1,
"d": 0.04,
"y": 0.0364,
"h": 0.9545,
"color": "#d9dee6"
},
{
"shape": "box",
"x": 0.0,
"z": 0.48,
"w": 1,
"d": 0.02,
"y": 0.0364,
"h": 0.9091,
"color": "glass",
"edges": "glow"
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.2,
"w": 0.3,
"d": 0.3,
"y": 0.9545,
"h": 0.0091,
"color": "metal"
},
{
"shape": "box",
"x": 0.3,
"z": -0.45,
"w": 0.12,
"d": 0.01,
"y": 0.5909,
"h": 0.0364,
"color": "#1d2533",
"screen": true
}
],
"electric": true
},
{
"id": "relax_lounger",
"name": {
"de": "Ruheliege",
"en": "Relaxation lounger"
},
"size": [
0.75,
2.0,
0.8
],
"parts": [
{
"shape": "loft",
"x": 0.0,
"z": 0.15,
"w": 0.9333,
"d": 0.6,
"y": 0.4375,
"h": 0.125,
"color": "wood",
"tz": 0.2,
"td": 0.5
},
{
"shape": "loft",
"x": 0.0,
"z": -0.3,
"w": 0.9333,
"d": 0.4,
"y": 0.5,
"h": 0.5,
"color": "wood",
"tz": -0.4,
"td": 0.15
},
{
"shape": "box",
"x": 0.0,
"z": 0.1,
"w": 0.8667,
"d": 0.75,
"y": 0.5625,
"h": 0.0625,
"color": "#e8dcc4"
},
{
"shape": "box",
"x": -0.42,
"z": -0.47,
"w": 0.0667,
"d": 0.025,
"y": 0,
"h": 0.4375,
"color": "wood"
},
{
"shape": "box",
"x": -0.42,
"z": 0.47,
"w": 0.0667,
"d": 0.025,
"y": 0,
"h": 0.4375,
"color": "wood"
},
{
"shape": "box",
"x": 0.42,
"z": -0.47,
"w": 0.0667,
"d": 0.025,
"y": 0,
"h": 0.4375,
"color": "wood"
},
{
"shape": "box",
"x": 0.42,
"z": 0.47,
"w": 0.0667,
"d": 0.025,
"y": 0,
"h": 0.4375,
"color": "wood"
}
]
},
{
"id": "cold_bath",
"name": {
"de": "Eistonne",
"en": "Ice bath"
},
"size": [
0.8,
0.8,
0.85
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#7a5a3a",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.875,
"d": 0.875,
"y": 0.6471,
"h": 0.3294,
"color": "#bfe6ff",
"glow": true
}
],
"electric": true,
"climate": true
}
]
}
@@ -0,0 +1,931 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.a_werkstatt2",
"name": "Werkstatt 2",
"publisher": "NextFloor",
"description": "Werkbank mit Lochwand, Ständerbohrmaschine, Tischkreissäge, Kompressor, Schweißgerät, Schwerlastregal und Kleinteilemagazin",
"release": 1,
"items": [
{
"id": "workbench_wall",
"name": {
"de": "Werkbank mit Lochwand",
"en": "Workbench with pegboard"
},
"size": [
2.0,
0.7,
1.9
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.4474,
"h": 0.0316,
"color": "wood"
},
{
"shape": "box",
"x": -0.475,
"z": -0.4286,
"w": 0.03,
"d": 0.0857,
"y": 0,
"h": 0.4474,
"color": "#5d6672"
},
{
"shape": "box",
"x": -0.475,
"z": 0.4286,
"w": 0.03,
"d": 0.0857,
"y": 0,
"h": 0.4474,
"color": "#5d6672"
},
{
"shape": "box",
"x": 0.475,
"z": -0.4286,
"w": 0.03,
"d": 0.0857,
"y": 0,
"h": 0.4474,
"color": "#5d6672"
},
{
"shape": "box",
"x": 0.475,
"z": 0.4286,
"w": 0.03,
"d": 0.0857,
"y": 0,
"h": 0.4474,
"color": "#5d6672"
},
{
"shape": "box",
"x": 0.0,
"z": -0.4714,
"w": 1,
"d": 0.0429,
"y": 0.5789,
"h": 0.4211,
"color": "#a4a9b1"
},
{
"shape": "box",
"x": -0.4,
"z": -0.4286,
"w": 0.02,
"d": 0.0286,
"y": 0.6842,
"h": 0.1053,
"color": "dark"
},
{
"shape": "box",
"x": -0.3,
"z": -0.4286,
"w": 0.02,
"d": 0.0286,
"y": 0.7368,
"h": 0.1053,
"color": "#c0392b"
},
{
"shape": "box",
"x": -0.2,
"z": -0.4286,
"w": 0.02,
"d": 0.0286,
"y": 0.7895,
"h": 0.1053,
"color": "dark"
},
{
"shape": "box",
"x": -0.1,
"z": -0.4286,
"w": 0.02,
"d": 0.0286,
"y": 0.6842,
"h": 0.1053,
"color": "#c0392b"
},
{
"shape": "box",
"x": 0.0,
"z": -0.4286,
"w": 0.02,
"d": 0.0286,
"y": 0.7368,
"h": 0.1053,
"color": "dark"
},
{
"shape": "box",
"x": 0.1,
"z": -0.4286,
"w": 0.02,
"d": 0.0286,
"y": 0.7895,
"h": 0.1053,
"color": "#c0392b"
},
{
"shape": "box",
"x": 0.2,
"z": -0.4286,
"w": 0.02,
"d": 0.0286,
"y": 0.6842,
"h": 0.1053,
"color": "dark"
},
{
"shape": "box",
"x": 0.3,
"z": -0.4286,
"w": 0.02,
"d": 0.0286,
"y": 0.7368,
"h": 0.1053,
"color": "#c0392b"
},
{
"shape": "box",
"x": 0.4,
"z": -0.4286,
"w": 0.02,
"d": 0.0286,
"y": 0.7895,
"h": 0.1053,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.95,
"d": 0.8571,
"y": 0.1579,
"h": 0.0211,
"color": "wood"
}
],
"surface": true
},
{
"id": "drill_press",
"name": {
"de": "Ständerbohrmaschine",
"en": "Drill press"
},
"size": [
0.4,
0.55,
1.6
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.9091,
"y": 0,
"h": 0.0312,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.0,
"z": -0.2727,
"w": 0.2,
"d": 0.1455,
"y": 0.0312,
"h": 0.9062,
"color": "metal"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.5,
"d": 0.4545,
"y": 0.4375,
"h": 0.025,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": -0.0909,
"w": 0.55,
"d": 0.7273,
"y": 0.7812,
"h": 0.1875,
"color": "#2f6b3a"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.1455,
"w": 0.05,
"d": 0.0364,
"y": 0.6562,
"h": 0.125,
"color": "metal"
}
],
"electric": true
},
{
"id": "table_saw",
"name": {
"de": "Tischkreissäge",
"en": "Table saw"
},
"size": [
1.0,
0.8,
0.9
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.6,
"d": 0.6875,
"y": 0,
"h": 0.8889,
"color": "#5d6672"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.8889,
"h": 0.0556,
"color": "metal",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.2,
"d": 0.0125,
"y": 0.9111,
"h": 0.0889,
"color": "#c0392b",
"axis": "x"
}
],
"electric": true,
"surface": true
},
{
"id": "compressor",
"name": {
"de": "Kompressor",
"en": "Air compressor"
},
"size": [
0.7,
0.35,
0.65
],
"parts": [
{
"shape": "cyl",
"x": 0.0,
"z": 0.0,
"w": 0.8571,
"d": 0.8571,
"y": 0.1538,
"h": 0.4615,
"color": "#c0392b",
"axis": "x"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.4286,
"d": 0.7143,
"y": 0.6154,
"h": 0.3077,
"color": "dark"
},
{
"shape": "cyl",
"x": -0.3571,
"z": 0.3429,
"w": 0.1429,
"d": 0.0857,
"y": 0,
"h": 0.1538,
"color": "dark",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.3571,
"z": 0.3429,
"w": 0.1429,
"d": 0.0857,
"y": 0,
"h": 0.1538,
"color": "dark",
"axis": "z"
}
],
"electric": true
},
{
"id": "welder",
"name": {
"de": "Schweißgerät",
"en": "Welder"
},
"size": [
0.3,
0.55,
0.45
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 0.8182,
"y": 0,
"h": 0.8889,
"color": "#2f6b9a",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.4182,
"w": 0.5,
"d": 0.0182,
"y": 0.5556,
"h": 0.1778,
"color": "#1d2533",
"screen": true
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.9333,
"d": 0.0909,
"y": 0.8889,
"h": 0.0889,
"color": "dark"
}
],
"electric": true
},
{
"id": "heavy_shelf",
"name": {
"de": "Schwerlastregal",
"en": "Heavy-duty shelving"
},
"size": [
1.8,
0.6,
2.0
],
"parts": [
{
"shape": "box",
"x": -0.4833,
"z": -0.45,
"w": 0.0278,
"d": 0.0833,
"y": 0,
"h": 1,
"color": "#2f6b9a"
},
{
"shape": "box",
"x": -0.4833,
"z": 0.45,
"w": 0.0278,
"d": 0.0833,
"y": 0,
"h": 1,
"color": "#2f6b9a"
},
{
"shape": "box",
"x": 0.4833,
"z": -0.45,
"w": 0.0278,
"d": 0.0833,
"y": 0,
"h": 1,
"color": "#2f6b9a"
},
{
"shape": "box",
"x": 0.4833,
"z": 0.45,
"w": 0.0278,
"d": 0.0833,
"y": 0,
"h": 1,
"color": "#2f6b9a"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.9778,
"d": 0.9333,
"y": 0.05,
"h": 0.02,
"color": "#c08a54"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.9778,
"d": 0.9333,
"y": 0.3,
"h": 0.02,
"color": "#c08a54"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.9778,
"d": 0.9333,
"y": 0.55,
"h": 0.02,
"color": "#c08a54"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.9778,
"d": 0.9333,
"y": 0.8,
"h": 0.02,
"color": "#c08a54"
},
{
"shape": "box",
"x": -0.2778,
"z": 0.0,
"w": 0.2222,
"d": 0.5833,
"y": 0.07,
"h": 0.15,
"color": "#5d6672"
},
{
"shape": "box",
"x": 0.1111,
"z": 0.0,
"w": 0.2222,
"d": 0.5833,
"y": 0.07,
"h": 0.15,
"color": "#5d6672"
},
{
"shape": "box",
"x": 0.2778,
"z": 0.0,
"w": 0.2222,
"d": 0.6667,
"y": 0.57,
"h": 0.15,
"color": "#e0b07a"
}
],
"surface": true
},
{
"id": "parts_cabinet",
"name": {
"de": "Kleinteilemagazin",
"en": "Small parts cabinet"
},
"size": [
0.5,
0.2,
0.4
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#5d6672"
},
{
"shape": "box",
"x": -0.36,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.075,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": -0.36,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.3,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": -0.36,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.525,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": -0.36,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.75,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": -0.12,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.075,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": -0.12,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.3,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": -0.12,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.525,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": -0.12,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.75,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": 0.12,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.075,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": 0.12,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.3,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": 0.12,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.525,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": 0.12,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.75,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": 0.36,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.075,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": 0.36,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.3,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": 0.36,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.525,
"h": 0.175,
"color": "#e8ecf2"
},
{
"shape": "box",
"x": 0.36,
"z": 0.5,
"w": 0.2,
"d": 0.05,
"y": 0.75,
"h": 0.175,
"color": "#e8ecf2"
}
],
"mount": "wall",
"wall_y": 1.2
},
{
"id": "tool_chest",
"name": {
"de": "Werkstattwagen",
"en": "Tool chest"
},
"size": [
0.75,
0.47,
1.0
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0.08,
"h": 0.9,
"color": "#c0392b",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.9067,
"d": 0.0213,
"y": 0.15,
"h": 0.02,
"color": "metal"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.9067,
"d": 0.0213,
"y": 0.28,
"h": 0.02,
"color": "metal"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.9067,
"d": 0.0213,
"y": 0.41,
"h": 0.02,
"color": "metal"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.9067,
"d": 0.0213,
"y": 0.54,
"h": 0.02,
"color": "metal"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.9067,
"d": 0.0213,
"y": 0.67,
"h": 0.02,
"color": "metal"
},
{
"shape": "box",
"x": 0.0,
"z": 0.5,
"w": 0.9067,
"d": 0.0213,
"y": 0.8,
"h": 0.02,
"color": "metal"
},
{
"shape": "cyl",
"x": -0.4,
"z": -0.383,
"w": 0.1067,
"d": 0.1702,
"y": 0,
"h": 0.08,
"color": "dark"
},
{
"shape": "cyl",
"x": -0.4,
"z": 0.383,
"w": 0.1067,
"d": 0.1702,
"y": 0,
"h": 0.08,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.4,
"z": -0.383,
"w": 0.1067,
"d": 0.1702,
"y": 0,
"h": 0.08,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.4,
"z": 0.383,
"w": 0.1067,
"d": 0.1702,
"y": 0,
"h": 0.08,
"color": "dark"
}
],
"surface": true
},
{
"id": "ev_bike_charger",
"name": {
"de": "Akkuladeplatz",
"en": "Battery charging shelf"
},
"size": [
0.8,
0.3,
0.5
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.08,
"color": "wood"
},
{
"shape": "box",
"x": -0.3125,
"z": 0.0,
"w": 0.15,
"d": 0.5,
"y": 0.08,
"h": 0.24,
"color": "dark"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.15,
"d": 0.5,
"y": 0.08,
"h": 0.24,
"color": "dark"
},
{
"shape": "box",
"x": 0.3125,
"z": 0.0,
"w": 0.15,
"d": 0.5,
"y": 0.08,
"h": 0.24,
"color": "dark"
},
{
"shape": "box",
"x": -0.3125,
"z": 0.2667,
"w": 0.0375,
"d": 0.0167,
"y": 0.24,
"h": 0.02,
"color": "#38e07b",
"glow": true
},
{
"shape": "box",
"x": 0.0,
"z": 0.2667,
"w": 0.0375,
"d": 0.0167,
"y": 0.24,
"h": 0.02,
"color": "#38e07b",
"glow": true
},
{
"shape": "box",
"x": 0.3125,
"z": 0.2667,
"w": 0.0375,
"d": 0.0167,
"y": 0.24,
"h": 0.02,
"color": "#38e07b",
"glow": true
}
],
"mount": "wall",
"wall_y": 1.1,
"electric": true
}
]
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,538 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.bad",
"name": "Bad extra",
"publisher": "NextFloor",
"description": "Doppelwaschtisch, Walk-in-Dusche, Handtuchheizkörper, Spiegelschrank, Waschturm",
"release": 1,
"items": [
{
"id": "double_vanity",
"name": {
"de": "Doppelwaschtisch",
"en": "Double vanity"
},
"size": [
1.4,
0.5,
0.85
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.35,
"h": 0.55,
"color": "wood",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.9,
"h": 0.1,
"color": "white"
},
{
"shape": "cyl",
"x": -0.25,
"z": 0.05,
"w": 0.3,
"d": 0.75,
"y": 0.86,
"h": 0.12,
"color": "white"
},
{
"shape": "cyl",
"x": 0.25,
"z": 0.05,
"w": 0.3,
"d": 0.75,
"y": 0.86,
"h": 0.12,
"color": "white"
},
{
"shape": "cyl",
"x": -0.25,
"z": -0.35,
"w": 0.03,
"d": 0.03,
"y": 1,
"h": 0.25,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.25,
"z": -0.35,
"w": 0.03,
"d": 0.03,
"y": 1,
"h": 0.25,
"color": "metal"
}
],
"mount": "wall",
"wall_y": 0.0
},
{
"id": "walkin_shower",
"name": {
"de": "Walk-in-Dusche",
"en": "Walk-in shower"
},
"size": [
1.4,
1.0,
2.1
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.02,
"color": "#d9dee6"
},
{
"shape": "box",
"x": 0.15,
"z": 0.48,
"w": 0.7,
"d": 0.03,
"y": 0.02,
"h": 0.95,
"color": "glass",
"edges": "glow"
},
{
"shape": "cyl",
"x": 0,
"z": -0.35,
"w": 0.18,
"d": 0.25,
"y": 0.92,
"h": 0.02,
"color": "metal"
},
{
"shape": "cyl",
"x": 0,
"z": -0.45,
"w": 0.02,
"d": 0.02,
"y": 0.5,
"h": 0.45,
"color": "metal"
},
{
"shape": "box",
"x": -0.3,
"z": -0.48,
"w": 0.25,
"d": 0.03,
"y": 0.4,
"h": 0.2,
"color": "#d9dee6"
}
]
},
{
"id": "towel_radiator",
"name": {
"de": "Handtuchheizkörper",
"en": "Towel radiator"
},
"size": [
0.55,
0.08,
1.2
],
"parts": [
{
"shape": "box",
"x": -0.45,
"z": 0,
"w": 0.08,
"d": 1,
"y": 0,
"h": 1,
"color": "white"
},
{
"shape": "box",
"x": 0.45,
"z": 0,
"w": 0.08,
"d": 1,
"y": 0,
"h": 1,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.6,
"y": 0.05,
"h": 0.025,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.6,
"y": 0.15,
"h": 0.025,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.6,
"y": 0.25,
"h": 0.025,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.6,
"y": 0.4,
"h": 0.025,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.6,
"y": 0.5,
"h": 0.025,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.6,
"y": 0.6,
"h": 0.025,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.6,
"y": 0.75,
"h": 0.025,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.6,
"y": 0.85,
"h": 0.025,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.6,
"y": 0.95,
"h": 0.025,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0.3,
"w": 0.7,
"d": 0.3,
"y": 0.55,
"h": 0.3,
"color": "#a5c9e8"
}
],
"mount": "wall",
"wall_y": 0.3,
"electric": true
},
{
"id": "mirror_cabinet",
"name": {
"de": "Spiegelschrank mit Licht",
"en": "Mirror cabinet with light"
},
"size": [
1.0,
0.15,
0.7
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.96,
"d": 0.02,
"y": 0.04,
"h": 0.92,
"color": "#c8dcec"
},
{
"shape": "box",
"x": 0,
"z": 0.3,
"w": 1,
"d": 0.4,
"y": 0,
"h": 0.04,
"color": "#fff1c9",
"glow": true
}
],
"mount": "wall",
"wall_y": 1.25,
"electric": true,
"light": "wall"
},
{
"id": "washer_tower",
"name": {
"de": "Waschturm (Waschmaschine + Trockner)",
"en": "Washer-dryer stack"
},
"size": [
0.6,
0.65,
1.75
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.49,
"color": "white",
"edges": true
},
{
"shape": "cyl",
"x": 0,
"z": 0.5,
"w": 0.6,
"d": 0.04,
"y": 0.08,
"h": 0.32,
"color": "#9aa6b8",
"axis": "z"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.51,
"h": 0.49,
"color": "white",
"edges": true
},
{
"shape": "cyl",
"x": 0,
"z": 0.5,
"w": 0.6,
"d": 0.04,
"y": 0.58,
"h": 0.32,
"color": "#9aa6b8",
"axis": "z"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.49,
"h": 0.02,
"color": "metal"
}
],
"electric": true
},
{
"id": "laundry_basket",
"name": {
"de": "Wäschekorb",
"en": "Laundry basket"
},
"size": [
0.45,
0.35,
0.6
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.9,
"color": "#c9a77a",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.9,
"y": 0.9,
"h": 0.1,
"color": "fabric"
}
]
},
{
"id": "bath_shelf",
"name": {
"de": "Badregal",
"en": "Bath shelf"
},
"size": [
0.4,
0.3,
1.6
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.03,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.3,
"h": 0.03,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.6,
"h": 0.03,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.97,
"h": 0.03,
"color": "white"
},
{
"shape": "box",
"x": -0.46,
"z": 0,
"w": 0.08,
"d": 1,
"y": 0,
"h": 1,
"color": "white"
},
{
"shape": "box",
"x": 0.46,
"z": 0,
"w": 0.08,
"d": 1,
"y": 0,
"h": 1,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0.05,
"w": 0.8,
"d": 0.8,
"y": 0.33,
"h": 0.15,
"color": "#a5c9e8"
},
{
"shape": "box",
"x": 0,
"z": 0.05,
"w": 0.8,
"d": 0.8,
"y": 0.63,
"h": 0.12,
"color": "white"
}
]
}
]
}
@@ -0,0 +1,632 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.energie",
"name": "Energie & Haustechnik",
"publisher": "NextFloor",
"description": "Wärmepumpe, Pelletkessel, Pufferspeicher, Batteriespeicher, Wechselrichter, Wallbox, Zählerschrank",
"release": 1,
"items": [
{
"id": "heat_pump",
"name": {
"de": "Wärmepumpe (Außeneinheit)",
"en": "Heat pump (outdoor unit)"
},
"size": [
1.1,
0.45,
0.9
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.06,
"h": 0.94,
"color": "white",
"edges": true
},
{
"shape": "cyl",
"x": -0.15,
"z": 0.5,
"w": 0.55,
"d": 0.04,
"y": 0.15,
"h": 0.7,
"color": "#2b3446",
"axis": "z"
},
{
"shape": "cyl",
"x": -0.15,
"z": 0.5,
"w": 0.12,
"d": 0.03,
"y": 0.43,
"h": 0.14,
"color": "metal",
"axis": "z"
},
{
"shape": "box",
"x": 0.33,
"z": 0.5,
"w": 0.25,
"d": 0.02,
"y": 0.1,
"h": 0.8,
"color": "#d9dee6"
},
{
"shape": "box",
"x": -0.4,
"z": 0,
"w": 0.1,
"d": 0.8,
"y": 0,
"h": 0.06,
"color": "dark"
},
{
"shape": "box",
"x": 0.4,
"z": 0,
"w": 0.1,
"d": 0.8,
"y": 0,
"h": 0.06,
"color": "dark"
}
],
"electric": true
},
{
"id": "pellet_boiler",
"name": {
"de": "Pelletkessel",
"en": "Pellet boiler"
},
"size": [
0.7,
0.9,
1.6
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.82,
"color": "white",
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.82,
"h": 0.18,
"color": "#d1293d",
"edges": "faint"
},
{
"shape": "box",
"x": 0.15,
"z": 0.5,
"w": 0.5,
"d": 0.02,
"y": 0.4,
"h": 0.25,
"color": "#2b3446"
},
{
"shape": "box",
"x": 0.15,
"z": 0.5,
"w": 0.3,
"d": 0.02,
"y": 0.48,
"h": 0.08,
"color": "#ff7a1a",
"glow": true
},
{
"shape": "box",
"x": -0.3,
"z": 0.5,
"w": 0.2,
"d": 0.02,
"y": 0.7,
"h": 0.08,
"color": "#3ea6ff",
"glow": true
},
{
"shape": "cyl",
"x": 0,
"z": -0.35,
"w": 0.18,
"d": 0.18,
"y": 1,
"h": 0.25,
"color": "metal"
}
],
"electric": true,
"light": "table"
},
{
"id": "buffer_tank",
"name": {
"de": "Pufferspeicher",
"en": "Buffer tank"
},
"size": [
0.9,
0.9,
1.9
],
"parts": [
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.95,
"color": "#d9dee6",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 0.98,
"d": 0.98,
"y": 0.95,
"h": 0.05,
"color": "white"
},
{
"shape": "cyl",
"x": 0.45,
"z": 0,
"w": 0.2,
"d": 0.06,
"y": 0.3,
"h": 0.06,
"color": "metal",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.45,
"z": 0,
"w": 0.2,
"d": 0.06,
"y": 0.7,
"h": 0.06,
"color": "metal",
"axis": "x"
}
]
},
{
"id": "hot_water_tank",
"name": {
"de": "Warmwasserspeicher",
"en": "Hot water tank"
},
"size": [
0.6,
0.6,
1.6
],
"parts": [
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.95,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 0.98,
"d": 0.98,
"y": 0.95,
"h": 0.05,
"color": "#d9dee6"
},
{
"shape": "box",
"x": 0,
"z": 0.48,
"w": 0.3,
"d": 0.04,
"y": 0.6,
"h": 0.1,
"color": "#3ea6ff"
}
]
},
{
"id": "home_battery",
"name": {
"de": "Batteriespeicher (Turm)",
"en": "Home battery (tower)"
},
"size": [
0.6,
0.3,
1.4
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.08,
"color": "dark"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.08,
"h": 0.165,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.25,
"h": 0.165,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.42,
"h": 0.165,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.59,
"h": 0.165,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.76,
"h": 0.165,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.93,
"h": 0.07,
"color": "dark"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.5,
"d": 0.02,
"y": 0.95,
"h": 0.03,
"color": "#38e07b",
"glow": true
}
],
"electric": true,
"light": "table"
},
{
"id": "inverter",
"name": {
"de": "Wechselrichter",
"en": "Inverter"
},
"size": [
0.5,
0.2,
0.6
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.95,
"d": 0.02,
"y": 0.75,
"h": 0.25,
"color": "#d1293d"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.4,
"d": 0.02,
"y": 0.4,
"h": 0.15,
"color": "#2b3446"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.2,
"d": 0.02,
"y": 0.45,
"h": 0.04,
"color": "#38e07b",
"glow": true
}
],
"mount": "wall",
"wall_y": 1.0,
"electric": true,
"light": "table"
},
{
"id": "wallbox",
"name": {
"de": "Wallbox",
"en": "Wallbox"
},
"size": [
0.25,
0.12,
0.4
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "glow"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.6,
"d": 0.02,
"y": 0.55,
"h": 0.15,
"color": "#3ea6ff",
"glow": true
},
{
"shape": "cyl",
"x": 0,
"z": 0.5,
"w": 0.35,
"d": 0.5,
"y": 0,
"h": 0.4,
"color": "dark",
"axis": "z"
}
],
"mount": "wall",
"wall_y": 0.9,
"electric": true,
"light": "table"
},
{
"id": "meter_cabinet",
"name": {
"de": "Zählerschrank",
"en": "Meter cabinet"
},
"size": [
0.8,
0.22,
1.1
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#d9dee6",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.96,
"d": 0.02,
"y": 0.02,
"h": 0.96,
"color": "white"
},
{
"shape": "box",
"x": 0.4,
"z": 0.5,
"w": 0.04,
"d": 0.02,
"y": 0.45,
"h": 0.12,
"color": "dark"
}
],
"mount": "wall",
"wall_y": 0.5
},
{
"id": "ventilation",
"name": {
"de": "Lüftungsanlage",
"en": "Ventilation unit"
},
"size": [
0.6,
0.6,
0.9
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": true
},
{
"shape": "cyl",
"x": -0.3,
"z": -0.1,
"w": 0.18,
"d": 0.18,
"y": 1,
"h": 0.15,
"color": "metal"
},
{
"shape": "cyl",
"x": -0.1,
"z": -0.1,
"w": 0.18,
"d": 0.18,
"y": 1,
"h": 0.15,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.1,
"z": -0.1,
"w": 0.18,
"d": 0.18,
"y": 1,
"h": 0.15,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.3,
"z": -0.1,
"w": 0.18,
"d": 0.18,
"y": 1,
"h": 0.15,
"color": "metal"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.4,
"d": 0.02,
"y": 0.7,
"h": 0.1,
"color": "#2b3446"
}
],
"electric": true
},
{
"id": "solar_carport_pillar",
"name": {
"de": "Carport-Stütze mit Solar-Kante",
"en": "Solar carport post"
},
"size": [
0.15,
0.15,
2.4
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "metal",
"edges": "glow"
}
]
}
]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,551 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.fitness",
"name": "Fitness (älter)",
"publisher": "NextFloor",
"description": "Laufband, Ergometer, Rudergerät, Hantelbank, Kraftstation, Yogamatte",
"release": 1,
"items": [
{
"id": "treadmill",
"name": {
"de": "Laufband",
"en": "Treadmill"
},
"size": [
0.85,
1.9,
1.45
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 1,
"d": 0.8,
"y": 0,
"h": 0.14,
"color": "dark",
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0.12,
"w": 0.7,
"d": 0.72,
"y": 0.14,
"h": 0.02,
"color": "#2b3446"
},
{
"shape": "box",
"x": -0.45,
"z": -0.38,
"w": 0.06,
"d": 0.08,
"y": 0.14,
"h": 0.75,
"color": "dark"
},
{
"shape": "box",
"x": 0.45,
"z": -0.38,
"w": 0.06,
"d": 0.08,
"y": 0.14,
"h": 0.75,
"color": "dark"
},
{
"shape": "loft",
"x": 0,
"z": -0.4,
"w": 1,
"d": 0.12,
"y": 0.85,
"h": 0.15,
"color": "dark",
"tz": -0.45,
"td": 0.06,
"edges": "glow"
},
{
"shape": "box",
"x": 0,
"z": -0.43,
"w": 0.4,
"d": 0.04,
"y": 0.9,
"h": 0.08,
"color": "#3ea6ff",
"glow": true
}
],
"electric": true,
"light": "table"
},
{
"id": "bike_trainer",
"name": {
"de": "Ergometer",
"en": "Exercise bike"
},
"size": [
0.55,
1.2,
1.35
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.6,
"d": 1,
"y": 0,
"h": 0.05,
"color": "dark"
},
{
"shape": "loft",
"x": 0,
"z": 0.1,
"w": 0.25,
"d": 0.25,
"y": 0.05,
"h": 0.6,
"color": "dark",
"tz": 0.05
},
{
"shape": "cyl",
"x": 0,
"z": -0.25,
"w": 0.25,
"d": 0.4,
"y": 0.1,
"h": 0.3,
"color": "metal",
"axis": "x"
},
{
"shape": "box",
"x": 0,
"z": 0.12,
"w": 0.5,
"d": 0.25,
"y": 0.65,
"h": 0.06,
"color": "dark"
},
{
"shape": "loft",
"x": 0,
"z": -0.35,
"w": 0.15,
"d": 0.1,
"y": 0.05,
"h": 0.85,
"color": "dark",
"tz": -0.3
},
{
"shape": "box",
"x": 0,
"z": -0.3,
"w": 0.8,
"d": 0.08,
"y": 0.88,
"h": 0.05,
"color": "metal"
},
{
"shape": "box",
"x": 0,
"z": -0.33,
"w": 0.3,
"d": 0.05,
"y": 0.93,
"h": 0.07,
"color": "#3ea6ff",
"glow": true
}
],
"electric": true,
"light": "table"
},
{
"id": "rower",
"name": {
"de": "Rudergerät",
"en": "Rowing machine"
},
"size": [
0.55,
2.1,
0.55
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.25,
"d": 0.85,
"y": 0.2,
"h": 0.12,
"color": "wood",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0,
"z": -0.4,
"w": 0.8,
"d": 0.2,
"y": 0,
"h": 0.9,
"color": "wood",
"axis": "x"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.5,
"d": 0.18,
"y": 0.32,
"h": 0.12,
"color": "dark"
},
{
"shape": "box",
"x": 0,
"z": 0.45,
"w": 0.4,
"d": 0.08,
"y": 0,
"h": 0.2,
"color": "dark"
}
]
},
{
"id": "weight_bench",
"name": {
"de": "Hantelbank",
"en": "Weight bench"
},
"size": [
1.2,
1.4,
1.2
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0.15,
"w": 0.25,
"d": 0.7,
"y": 0.36,
"h": 0.08,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.15,
"w": 0.06,
"d": 0.6,
"y": 0,
"h": 0.36,
"color": "metal"
},
{
"shape": "box",
"x": -0.4,
"z": -0.35,
"w": 0.05,
"d": 0.08,
"y": 0,
"h": 0.9,
"color": "metal"
},
{
"shape": "box",
"x": 0.4,
"z": -0.35,
"w": 0.05,
"d": 0.08,
"y": 0,
"h": 0.9,
"color": "metal"
},
{
"shape": "cyl",
"x": 0,
"z": -0.35,
"w": 1,
"d": 0.03,
"y": 0.82,
"h": 0.03,
"color": "metal",
"axis": "x"
},
{
"shape": "cyl",
"x": -0.45,
"z": -0.35,
"w": 0.05,
"d": 0.3,
"y": 0.7,
"h": 0.25,
"color": "dark",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.45,
"z": -0.35,
"w": 0.05,
"d": 0.3,
"y": 0.7,
"h": 0.25,
"color": "dark",
"axis": "x"
}
]
},
{
"id": "power_rack",
"name": {
"de": "Kraftstation",
"en": "Power rack"
},
"size": [
1.3,
1.3,
2.2
],
"parts": [
{
"shape": "box",
"x": -0.46,
"z": -0.46,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": -0.46,
"z": 0.46,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0.46,
"z": -0.46,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0.46,
"z": 0.46,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": -0.46,
"w": 1,
"d": 0.05,
"y": 0.97,
"h": 0.03,
"color": "dark"
},
{
"shape": "box",
"x": 0,
"z": 0.46,
"w": 1,
"d": 0.05,
"y": 0.97,
"h": 0.03,
"color": "dark"
},
{
"shape": "box",
"x": -0.46,
"z": 0,
"w": 0.05,
"d": 1,
"y": 0.97,
"h": 0.03,
"color": "dark"
},
{
"shape": "box",
"x": 0.46,
"z": 0,
"w": 0.05,
"d": 1,
"y": 0.97,
"h": 0.03,
"color": "dark"
},
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 1,
"d": 0.03,
"y": 0.55,
"h": 0.02,
"color": "metal",
"axis": "x"
}
]
},
{
"id": "yoga_mat",
"name": {
"de": "Yogamatte",
"en": "Yoga mat"
},
"size": [
0.65,
1.85,
0.01
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "#7a5ad1"
}
]
},
{
"id": "dumbbell_rack",
"name": {
"de": "Hantelablage",
"en": "Dumbbell rack"
},
"size": [
1.2,
0.5,
0.8
],
"parts": [
{
"shape": "loft",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"td": 0.4,
"tz": -0.2
},
{
"shape": "cyl",
"x": -0.3,
"z": 0.25,
"w": 0.08,
"d": 0.18,
"y": 0.4,
"h": 0.08,
"color": "metal",
"axis": "x"
},
{
"shape": "cyl",
"x": -0.3,
"z": -0.05,
"w": 0.08,
"d": 0.18,
"y": 0.8,
"h": 0.08,
"color": "metal",
"axis": "x"
},
{
"shape": "cyl",
"x": 0,
"z": 0.25,
"w": 0.08,
"d": 0.18,
"y": 0.4,
"h": 0.08,
"color": "metal",
"axis": "x"
},
{
"shape": "cyl",
"x": 0,
"z": -0.05,
"w": 0.08,
"d": 0.18,
"y": 0.8,
"h": 0.08,
"color": "metal",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.3,
"z": 0.25,
"w": 0.08,
"d": 0.18,
"y": 0.4,
"h": 0.08,
"color": "metal",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.3,
"z": -0.05,
"w": 0.08,
"d": 0.18,
"y": 0.8,
"h": 0.08,
"color": "metal",
"axis": "x"
}
]
}
]
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,838 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.kino",
"name": "Heimkino & Gaming",
"publisher": "NextFloor",
"description": "Leinwand, Beamer, Lautsprecher, Gaming-Platz und Arcade-Automat",
"release": 1,
"items": [
{
"id": "projection_screen",
"name": {
"de": "Leinwand",
"en": "Projection screen"
},
"size": [
2.6,
0.12,
1.6
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.94,
"h": 0.06,
"color": "dark"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.96,
"d": 0.4,
"y": 0.05,
"h": 0.88,
"color": "white",
"screen": true
}
],
"mount": "wall",
"wall_y": 0.6,
"electric": true
},
{
"id": "projector",
"name": {
"de": "Beamer",
"en": "Projector"
},
"size": [
0.4,
0.35,
0.15
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.1,
"h": 0.9,
"color": "white",
"edges": true
},
{
"shape": "cyl",
"x": 0.2,
"z": 0.5,
"w": 0.3,
"d": 0.1,
"y": 0.25,
"h": 0.5,
"color": "dark",
"axis": "z"
},
{
"shape": "cyl",
"x": 0,
"z": -0.1,
"w": 0.1,
"d": 0.1,
"y": 0.9,
"h": 0.1,
"color": "metal"
}
],
"mount": "ceiling",
"electric": true
},
{
"id": "floor_speaker",
"name": {
"de": "Standlautsprecher",
"en": "Floor speaker"
},
"size": [
0.25,
0.32,
1.05
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.04,
"h": 0.96,
"color": "dark",
"edges": true
},
{
"shape": "cyl",
"x": 0,
"z": 0.5,
"w": 0.6,
"d": 0.06,
"y": 0.12,
"h": 0.2,
"color": "#2b3446",
"axis": "z"
},
{
"shape": "cyl",
"x": 0,
"z": 0.5,
"w": 0.6,
"d": 0.06,
"y": 0.38,
"h": 0.2,
"color": "#2b3446",
"axis": "z"
},
{
"shape": "cyl",
"x": 0,
"z": 0.5,
"w": 0.3,
"d": 0.06,
"y": 0.75,
"h": 0.1,
"color": "metal",
"axis": "z"
},
{
"shape": "box",
"x": -0.42,
"z": -0.42,
"w": 0.1,
"d": 0.1,
"y": 0,
"h": 0.04,
"color": "metal"
},
{
"shape": "box",
"x": -0.42,
"z": 0.42,
"w": 0.1,
"d": 0.1,
"y": 0,
"h": 0.04,
"color": "metal"
},
{
"shape": "box",
"x": 0.42,
"z": -0.42,
"w": 0.1,
"d": 0.1,
"y": 0,
"h": 0.04,
"color": "metal"
},
{
"shape": "box",
"x": 0.42,
"z": 0.42,
"w": 0.1,
"d": 0.1,
"y": 0,
"h": 0.04,
"color": "metal"
}
],
"electric": true
},
{
"id": "subwoofer",
"name": {
"de": "Subwoofer",
"en": "Subwoofer"
},
"size": [
0.4,
0.4,
0.42
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": true
},
{
"shape": "cyl",
"x": 0,
"z": 0.5,
"w": 0.75,
"d": 0.05,
"y": 0.15,
"h": 0.7,
"color": "#2b3446",
"axis": "z"
}
],
"electric": true
},
{
"id": "soundbar",
"name": {
"de": "Soundbar",
"en": "Soundbar"
},
"size": [
1.0,
0.12,
0.07
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.96,
"d": 0.05,
"y": 0.15,
"h": 0.7,
"color": "#2b3446"
}
],
"mount": "surface",
"electric": true
},
{
"id": "gaming_desk",
"name": {
"de": "Gaming-Platz",
"en": "Gaming desk"
},
"size": [
1.6,
0.8,
1.25
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.56,
"h": 0.03,
"color": "dark",
"edges": "glow"
},
{
"shape": "box",
"x": -0.46,
"z": 0,
"w": 0.05,
"d": 0.85,
"y": 0,
"h": 0.56,
"color": "dark"
},
{
"shape": "box",
"x": 0.46,
"z": 0,
"w": 0.05,
"d": 0.85,
"y": 0,
"h": 0.56,
"color": "dark"
},
{
"shape": "box",
"x": -0.2,
"z": -0.32,
"w": 0.5,
"d": 0.06,
"y": 0.66,
"h": 0.3,
"color": "dark",
"screen": true
},
{
"shape": "box",
"x": 0.28,
"z": -0.25,
"w": 0.32,
"d": 0.06,
"y": 0.66,
"h": 0.28,
"color": "dark",
"screen": true,
"rot": -20
},
{
"shape": "cyl",
"x": -0.2,
"z": -0.35,
"w": 0.06,
"d": 0.06,
"y": 0.59,
"h": 0.07,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.28,
"z": -0.3,
"w": 0.06,
"d": 0.06,
"y": 0.59,
"h": 0.07,
"color": "metal"
},
{
"shape": "box",
"x": 0.4,
"z": -0.05,
"w": 0.12,
"d": 0.45,
"y": 0,
"h": 0.45,
"color": "dark",
"edges": "glow"
},
{
"shape": "box",
"x": 0.4,
"z": 0.17,
"w": 0.1,
"d": 0.02,
"y": 0.1,
"h": 0.25,
"color": "#a640ff",
"glow": true
},
{
"shape": "box",
"x": -0.05,
"z": 0.2,
"w": 0.35,
"d": 0.18,
"y": 0.59,
"h": 0.01,
"color": "body"
},
{
"shape": "box",
"x": 0.2,
"z": 0.2,
"w": 0.06,
"d": 0.1,
"y": 0.59,
"h": 0.015,
"color": "body"
},
{
"shape": "box",
"x": 0,
"z": -0.47,
"w": 0.98,
"d": 0.03,
"y": 0.59,
"h": 0.02,
"color": "#a640ff",
"glow": true
}
],
"electric": true,
"surface": true,
"light": "strip"
},
{
"id": "gaming_chair",
"name": {
"de": "Gaming-Stuhl",
"en": "Gaming chair"
},
"size": [
0.7,
0.7,
1.35
],
"parts": [
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.9,
"y": 0,
"h": 0.04,
"color": "dark"
},
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 0.08,
"d": 0.08,
"y": 0.04,
"h": 0.3,
"color": "metal"
},
{
"shape": "box",
"x": 0,
"z": 0.05,
"w": 0.7,
"d": 0.7,
"y": 0.34,
"h": 0.1,
"color": "dark",
"edges": true
},
{
"shape": "loft",
"x": 0,
"z": -0.32,
"w": 0.7,
"d": 0.14,
"y": 0.44,
"h": 0.56,
"color": "dark",
"tw": 0.55,
"td": 0.12,
"tz": -0.36,
"edges": true
},
{
"shape": "box",
"x": 0,
"z": -0.34,
"w": 0.2,
"d": 0.15,
"y": 0.6,
"h": 0.25,
"color": "#d1293d"
},
{
"shape": "box",
"x": -0.42,
"z": 0.05,
"w": 0.08,
"d": 0.5,
"y": 0.44,
"h": 0.12,
"color": "dark"
},
{
"shape": "box",
"x": 0.42,
"z": 0.05,
"w": 0.08,
"d": 0.5,
"y": 0.44,
"h": 0.12,
"color": "dark"
}
]
},
{
"id": "game_console",
"name": {
"de": "Spielkonsole",
"en": "Game console"
},
"size": [
0.4,
0.3,
0.1
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.6,
"d": 0.02,
"y": 0.4,
"h": 0.15,
"color": "#3ea6ff",
"glow": true
}
],
"mount": "surface",
"electric": true,
"light": "table"
},
{
"id": "arcade",
"name": {
"de": "Arcade-Automat",
"en": "Arcade cabinet"
},
"size": [
0.7,
0.8,
1.8
],
"parts": [
{
"shape": "box",
"x": 0,
"z": -0.1,
"w": 1,
"d": 0.8,
"y": 0,
"h": 0.55,
"color": "dark",
"edges": "glow"
},
{
"shape": "loft",
"x": 0,
"z": 0.15,
"w": 1,
"d": 0.4,
"y": 0.55,
"h": 0.06,
"color": "dark",
"tz": 0.05,
"td": 0.25
},
{
"shape": "box",
"x": 0,
"z": -0.15,
"w": 1,
"d": 0.7,
"y": 0.61,
"h": 0.33,
"color": "dark",
"edges": "glow"
},
{
"shape": "box",
"x": 0,
"z": 0.12,
"w": 0.8,
"d": 0.04,
"y": 0.63,
"h": 0.28,
"color": "dark",
"screen": true
},
{
"shape": "box",
"x": 0,
"z": -0.1,
"w": 1,
"d": 0.8,
"y": 0.94,
"h": 0.06,
"color": "#ff2e9a",
"glow": true
},
{
"shape": "cyl",
"x": -0.2,
"z": 0.3,
"w": 0.08,
"d": 0.08,
"y": 0.61,
"h": 0.05,
"color": "#d1293d"
},
{
"shape": "cyl",
"x": 0.15,
"z": 0.3,
"w": 0.06,
"d": 0.06,
"y": 0.61,
"h": 0.02,
"color": "#3ea6ff"
}
],
"electric": true,
"light": "table"
},
{
"id": "media_wall",
"name": {
"de": "Medienwand mit Fernseher",
"en": "Media wall with TV"
},
"size": [
3.0,
0.45,
2.2
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0.05,
"w": 1,
"d": 0.9,
"y": 0,
"h": 0.2,
"color": "wood",
"edges": "faint"
},
{
"shape": "box",
"x": -0.42,
"z": 0,
"w": 0.16,
"d": 1,
"y": 0.2,
"h": 0.8,
"color": "wood"
},
{
"shape": "box",
"x": 0.42,
"z": 0,
"w": 0.16,
"d": 1,
"y": 0.2,
"h": 0.8,
"color": "wood"
},
{
"shape": "box",
"x": 0,
"z": -0.35,
"w": 0.68,
"d": 0.3,
"y": 0.2,
"h": 0.8,
"color": "dark"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.55,
"d": 0.06,
"y": 0.3,
"h": 0.42,
"color": "dark",
"screen": true,
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0.05,
"w": 0.68,
"d": 0.9,
"y": 0.97,
"h": 0.03,
"color": "wood"
},
{
"shape": "box",
"x": -0.42,
"z": 0.1,
"w": 0.12,
"d": 0.6,
"y": 0.35,
"h": 0.12,
"color": "accent"
},
{
"shape": "box",
"x": -0.42,
"z": 0.1,
"w": 0.12,
"d": 0.6,
"y": 0.6,
"h": 0.12,
"color": "accent"
},
{
"shape": "box",
"x": 0.42,
"z": 0.1,
"w": 0.12,
"d": 0.6,
"y": 0.35,
"h": 0.12,
"color": "accent"
},
{
"shape": "box",
"x": 0.42,
"z": 0.1,
"w": 0.12,
"d": 0.6,
"y": 0.6,
"h": 0.12,
"color": "accent"
}
],
"electric": true
},
{
"id": "media_rack",
"name": {
"de": "Medienregal",
"en": "Media rack"
},
"size": [
1.8,
0.45,
0.5
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.1,
"h": 0.9,
"color": "dark",
"edges": true
},
{
"shape": "box",
"x": -0.46,
"z": -0.46,
"w": 0.03,
"d": 0.03,
"y": 0,
"h": 0.1,
"color": "metal"
},
{
"shape": "box",
"x": -0.46,
"z": 0.46,
"w": 0.03,
"d": 0.03,
"y": 0,
"h": 0.1,
"color": "metal"
},
{
"shape": "box",
"x": 0.46,
"z": -0.46,
"w": 0.03,
"d": 0.03,
"y": 0,
"h": 0.1,
"color": "metal"
},
{
"shape": "box",
"x": 0.46,
"z": 0.46,
"w": 0.03,
"d": 0.03,
"y": 0,
"h": 0.1,
"color": "metal"
},
{
"shape": "box",
"x": -0.25,
"z": 0.48,
"w": 0.45,
"d": 0.04,
"y": 0.3,
"h": 0.5,
"color": "body"
},
{
"shape": "box",
"x": 0.25,
"z": 0.48,
"w": 0.45,
"d": 0.04,
"y": 0.3,
"h": 0.5,
"color": "body"
}
],
"surface": true
}
]
}
@@ -0,0 +1,781 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.kueche",
"name": "Küche extra",
"publisher": "NextFloor",
"description": "Kaffeevollautomat, Mikrowelle, Dunstabzug, Weinkühlschrank, Küchenmaschine und mehr",
"release": 1,
"items": [
{
"id": "coffee_machine",
"name": {
"de": "Kaffeevollautomat",
"en": "Coffee machine"
},
"size": [
0.3,
0.45,
0.38
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0.42,
"w": 0.5,
"d": 0.16,
"y": 0.12,
"h": 0.4,
"color": "#202634"
},
{
"shape": "box",
"x": 0,
"z": 0.35,
"w": 0.4,
"d": 0.2,
"y": 0,
"h": 0.06,
"color": "metal"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.6,
"d": 0.02,
"y": 0.7,
"h": 0.18,
"color": "#3ea6ff",
"glow": true
}
],
"mount": "surface",
"electric": true
},
{
"id": "microwave",
"name": {
"de": "Mikrowelle",
"en": "Microwave"
},
"size": [
0.5,
0.4,
0.3
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "metal",
"edges": true
},
{
"shape": "box",
"x": -0.1,
"z": 0.5,
"w": 0.7,
"d": 0.02,
"y": 0.15,
"h": 0.7,
"color": "dark"
},
{
"shape": "box",
"x": 0.38,
"z": 0.5,
"w": 0.15,
"d": 0.02,
"y": 0.2,
"h": 0.6,
"color": "body"
}
],
"mount": "surface",
"electric": true
},
{
"id": "hood_island",
"name": {
"de": "Dunstabzug (Insel)",
"en": "Island hood"
},
"size": [
0.9,
0.6,
1.0
],
"parts": [
{
"shape": "loft",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.15,
"color": "metal",
"tw": 0.3,
"td": 0.4,
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.3,
"d": 0.4,
"y": 0.15,
"h": 0.85,
"color": "metal"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.8,
"d": 0.8,
"y": 0,
"h": 0.02,
"color": "#fff1c9",
"glow": true
}
],
"mount": "ceiling",
"electric": true,
"light": "spot"
},
{
"id": "wine_fridge",
"name": {
"de": "Weinkühlschrank",
"en": "Wine fridge"
},
"size": [
0.6,
0.6,
0.85
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.9,
"d": 0.02,
"y": 0.06,
"h": 0.88,
"color": "glass"
},
{
"shape": "cyl",
"x": -0.3,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.15,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": -0.1,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.15,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.1,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.15,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.3,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.15,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": -0.3,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.4,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": -0.1,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.4,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.1,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.4,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.3,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.4,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": -0.3,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.65,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": -0.1,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.65,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.1,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.65,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "cyl",
"x": 0.3,
"z": 0.3,
"w": 0.08,
"d": 0.5,
"y": 0.65,
"h": 0.08,
"color": "#6b1d2a",
"axis": "z"
},
{
"shape": "box",
"x": 0,
"z": 0.3,
"w": 0.9,
"d": 0.5,
"y": 0.94,
"h": 0.02,
"color": "#7ab8ff",
"glow": true
}
],
"electric": true,
"light": "table"
},
{
"id": "stand_mixer",
"name": {
"de": "Küchenmaschine",
"en": "Stand mixer"
},
"size": [
0.25,
0.35,
0.35
],
"parts": [
{
"shape": "box",
"x": 0,
"z": -0.2,
"w": 0.8,
"d": 0.6,
"y": 0,
"h": 0.1,
"color": "accent"
},
{
"shape": "box",
"x": 0,
"z": -0.3,
"w": 0.5,
"d": 0.3,
"y": 0.1,
"h": 0.6,
"color": "accent"
},
{
"shape": "box",
"x": 0,
"z": 0.05,
"w": 0.6,
"d": 0.8,
"y": 0.7,
"h": 0.25,
"color": "accent",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0,
"z": 0.15,
"w": 0.7,
"d": 0.55,
"y": 0.1,
"h": 0.45,
"color": "metal"
}
],
"mount": "surface",
"electric": true
},
{
"id": "toaster",
"name": {
"de": "Toaster",
"en": "Toaster"
},
"size": [
0.3,
0.18,
0.2
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "metal",
"edges": "faint"
},
{
"shape": "box",
"x": -0.2,
"z": 0,
"w": 0.15,
"d": 0.6,
"y": 0.95,
"h": 0.05,
"color": "dark"
},
{
"shape": "box",
"x": 0.2,
"z": 0,
"w": 0.15,
"d": 0.6,
"y": 0.95,
"h": 0.05,
"color": "dark"
}
],
"mount": "surface",
"electric": true
},
{
"id": "kettle",
"name": {
"de": "Wasserkocher",
"en": "Kettle"
},
"size": [
0.2,
0.15,
0.25
],
"parts": [
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 0.9,
"d": 1,
"y": 0,
"h": 0.1,
"color": "dark"
},
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 0.8,
"d": 0.9,
"y": 0.1,
"h": 0.8,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0.42,
"z": 0,
"w": 0.12,
"d": 0.3,
"y": 0.3,
"h": 0.55,
"color": "white"
}
],
"mount": "surface",
"electric": true
},
{
"id": "long_dining_table",
"name": {
"de": "Esstisch (lang)",
"en": "Long dining table"
},
"size": [
2.4,
1.0,
0.75
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.94,
"h": 0.06,
"color": "wood",
"edges": "faint"
},
{
"shape": "box",
"x": -0.4,
"z": 0,
"w": 0.04,
"d": 0.8,
"y": 0,
"h": 0.94,
"color": "dark"
},
{
"shape": "box",
"x": 0.4,
"z": 0,
"w": 0.04,
"d": 0.8,
"y": 0,
"h": 0.94,
"color": "dark"
},
{
"shape": "box",
"x": -0.4,
"z": 0,
"w": 0.08,
"d": 0.85,
"y": 0,
"h": 0.03,
"color": "dark"
},
{
"shape": "box",
"x": 0.4,
"z": 0,
"w": 0.08,
"d": 0.85,
"y": 0,
"h": 0.03,
"color": "dark"
}
],
"surface": true
},
{
"id": "bar_cart",
"name": {
"de": "Barwagen",
"en": "Bar cart"
},
"size": [
0.7,
0.4,
0.85
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.9,
"h": 0.04,
"color": "glass",
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.25,
"h": 0.04,
"color": "glass"
},
{
"shape": "box",
"x": -0.47,
"z": -0.47,
"w": 0.04,
"d": 0.04,
"y": 0.1,
"h": 0.9,
"color": "#c9a14a"
},
{
"shape": "box",
"x": -0.47,
"z": 0.47,
"w": 0.04,
"d": 0.04,
"y": 0.1,
"h": 0.9,
"color": "#c9a14a"
},
{
"shape": "box",
"x": 0.47,
"z": -0.47,
"w": 0.04,
"d": 0.04,
"y": 0.1,
"h": 0.9,
"color": "#c9a14a"
},
{
"shape": "box",
"x": 0.47,
"z": 0.47,
"w": 0.04,
"d": 0.04,
"y": 0.1,
"h": 0.9,
"color": "#c9a14a"
},
{
"shape": "cyl",
"x": -0.42,
"z": -0.42,
"w": 0.1,
"d": 0.25,
"y": 0,
"h": 0.12,
"color": "dark",
"axis": "x"
},
{
"shape": "cyl",
"x": -0.42,
"z": 0.42,
"w": 0.1,
"d": 0.25,
"y": 0,
"h": 0.12,
"color": "dark",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.42,
"z": -0.42,
"w": 0.1,
"d": 0.25,
"y": 0,
"h": 0.12,
"color": "dark",
"axis": "x"
},
{
"shape": "cyl",
"x": 0.42,
"z": 0.42,
"w": 0.1,
"d": 0.25,
"y": 0,
"h": 0.12,
"color": "dark",
"axis": "x"
},
{
"shape": "cyl",
"x": -0.2,
"z": 0,
"w": 0.1,
"d": 0.25,
"y": 0.94,
"h": 0.06,
"color": "#6b1d2a"
},
{
"shape": "cyl",
"x": 0.05,
"z": 0.05,
"w": 0.08,
"d": 0.2,
"y": 0.94,
"h": 0.05,
"color": "glass"
}
],
"surface": true
},
{
"id": "trash_station",
"name": {
"de": "Mülltrennung",
"en": "Waste sorting"
},
"size": [
0.6,
0.4,
0.6
],
"parts": [
{
"shape": "box",
"x": -0.33,
"z": 0,
"w": 0.3,
"d": 0.95,
"y": 0,
"h": 0.92,
"color": "#f2c94c",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.3,
"d": 0.95,
"y": 0,
"h": 0.92,
"color": "#3b7bb5",
"edges": "faint"
},
{
"shape": "box",
"x": 0.33,
"z": 0,
"w": 0.3,
"d": 0.95,
"y": 0,
"h": 0.92,
"color": "#5a5f6a",
"edges": "faint"
},
{
"shape": "box",
"x": -0.33,
"z": 0,
"w": 0.31,
"d": 0.97,
"y": 0.92,
"h": 0.08,
"color": "dark"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.31,
"d": 0.97,
"y": 0.92,
"h": 0.08,
"color": "dark"
},
{
"shape": "box",
"x": 0.33,
"z": 0,
"w": 0.31,
"d": 0.97,
"y": 0.92,
"h": 0.08,
"color": "dark"
}
]
}
]
}
@@ -0,0 +1,185 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.sanitaer_vigour",
"name": "Sanitär VIGOUR",
"publisher": "huepfer13",
"description": "Sanitär der Serie VIGOUR derby: Wand-WC, Urinal, Waschtisch 60, Faltpapier-Handtuchspender und Seifenspender",
"release": 1,
"items": [
{
"id": "vigour_derby_wand_wc",
"name": {
"de": "Wand-Tiefspül-WC derby",
"en": "Wall-hung washdown WC derby"
},
"size": [
0.36,
0.54,
0.355
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.36,
"d": 0.54,
"y": 0.0,
"h": 0.2556,
"color": "#f2f2ee",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.36,
"d": 0.4968,
"y": 0.2556,
"h": 0.0994,
"color": "#f2f2ee",
"edges": "faint"
}
],
"surface": false
},
{
"id": "vigour_derby_urinal",
"name": {
"de": "Urinal derby verdeckter Zulauf",
"en": "Urinal derby, concealed supply"
},
"size": [
0.285,
0.3,
0.565
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.285,
"d": 0.3,
"y": 0.0,
"h": 0.565,
"color": "#f2f2ee",
"edges": "faint"
}
],
"surface": false
},
{
"id": "vigour_derby_wt_600",
"name": {
"de": "Waschtisch derby 600",
"en": "Washbasin derby 600"
},
"size": [
0.6,
0.485,
0.17
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.6,
"d": 0.485,
"y": 0.0,
"h": 0.17,
"color": "#f2f2ee",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": -0.1725,
"w": 0.05,
"d": 0.14,
"y": 0.17,
"h": 0.16,
"color": "#c8ccd2",
"edges": "faint"
}
],
"surface": false
},
{
"id": "vigour_derby_plus_handtuch",
"name": {
"de": "Faltpapier-Handtuchspender derby plus",
"en": "Folded paper towel dispenser derby plus"
},
"size": [
0.28,
0.125,
0.31
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.28,
"d": 0.125,
"y": 0.0,
"h": 0.31,
"color": "#f2f2ee",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.0075,
"w": 0.05,
"d": 0.14,
"y": 0.31,
"h": 0.16,
"color": "#c8ccd2",
"edges": "faint"
}
],
"surface": false
},
{
"id": "vigour_derby_plus_seife",
"name": {
"de": "Seifenspender derby plus",
"en": "Soap dispenser derby plus"
},
"size": [
0.066,
0.11,
0.266
],
"parts": [
{
"shape": "box",
"x": 0.0,
"z": 0.0,
"w": 0.066,
"d": 0.11,
"y": 0.0,
"h": 0.266,
"color": "#f2f2ee",
"edges": "faint"
},
{
"shape": "box",
"x": 0.0,
"z": 0.015,
"w": 0.05,
"d": 0.14,
"y": 0.266,
"h": 0.16,
"color": "#c8ccd2",
"edges": "faint"
}
],
"surface": false
}
]
}
@@ -0,0 +1,793 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.schlafen",
"name": "Schlafen & Kinder",
"publisher": "NextFloor",
"description": "Boxspringbett, Babybett, Wickelkommode, Schminktisch, Hochbett",
"release": 1,
"items": [
{
"id": "boxspring",
"name": {
"de": "Boxspringbett",
"en": "Box spring bed"
},
"size": [
1.8,
2.1,
1.2
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0.04,
"w": 1,
"d": 0.92,
"y": 0,
"h": 0.3,
"color": "fabric",
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0.04,
"w": 0.98,
"d": 0.9,
"y": 0.3,
"h": 0.2,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0.05,
"w": 0.96,
"d": 0.88,
"y": 0.5,
"h": 0.05,
"color": "cushion"
},
{
"shape": "box",
"x": 0,
"z": -0.48,
"w": 1,
"d": 0.06,
"y": 0,
"h": 1,
"color": "fabric",
"edges": true
},
{
"shape": "box",
"x": -0.22,
"z": -0.38,
"w": 0.4,
"d": 0.12,
"y": 0.5,
"h": 0.14,
"color": "white"
},
{
"shape": "box",
"x": 0.22,
"z": -0.38,
"w": 0.4,
"d": 0.12,
"y": 0.5,
"h": 0.14,
"color": "white"
}
]
},
{
"id": "baby_crib",
"name": {
"de": "Babybett",
"en": "Baby crib"
},
"size": [
0.75,
1.3,
0.95
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.3,
"h": 0.12,
"color": "white"
},
{
"shape": "box",
"x": -0.48,
"z": -0.48,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 1,
"color": "white"
},
{
"shape": "box",
"x": -0.48,
"z": 0.48,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 1,
"color": "white"
},
{
"shape": "box",
"x": 0.48,
"z": -0.48,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 1,
"color": "white"
},
{
"shape": "box",
"x": 0.48,
"z": 0.48,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 1,
"color": "white"
},
{
"shape": "box",
"x": -0.35,
"z": -0.48,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": -0.2,
"z": -0.48,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": -0.05,
"z": -0.48,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": 0.1,
"z": -0.48,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": 0.25,
"z": -0.48,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": -0.35,
"z": 0.48,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": -0.2,
"z": 0.48,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": -0.05,
"z": 0.48,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": 0.1,
"z": 0.48,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": 0.25,
"z": 0.48,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": -0.48,
"z": -0.35,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": -0.48,
"z": -0.15,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": -0.48,
"z": 0.05,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": -0.48,
"z": 0.25,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": 0.48,
"z": -0.35,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": 0.48,
"z": -0.15,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": 0.48,
"z": 0.05,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": 0.48,
"z": 0.25,
"w": 0.03,
"d": 0.03,
"y": 0.42,
"h": 0.55,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.96,
"d": 0.96,
"y": 0.95,
"h": 0.05,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.9,
"y": 0.42,
"h": 0.06,
"color": "#bfe3d0"
}
]
},
{
"id": "changing_table",
"name": {
"de": "Wickelkommode",
"en": "Changing table"
},
"size": [
1.0,
0.75,
0.95
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 1,
"d": 0.75,
"y": 0,
"h": 0.92,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.92,
"h": 0.04,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.9,
"d": 0.85,
"y": 0.96,
"h": 0.04,
"color": "#bfe3d0"
},
{
"shape": "box",
"x": 0,
"z": 0.48,
"w": 0.9,
"d": 0.02,
"y": 0.08,
"h": 0.25,
"color": "body"
},
{
"shape": "box",
"x": 0,
"z": 0.48,
"w": 0.9,
"d": 0.02,
"y": 0.38,
"h": 0.25,
"color": "body"
},
{
"shape": "box",
"x": 0,
"z": 0.48,
"w": 0.9,
"d": 0.02,
"y": 0.66,
"h": 0.25,
"color": "body"
}
]
},
{
"id": "vanity_table",
"name": {
"de": "Schminktisch",
"en": "Vanity table"
},
"size": [
1.0,
0.45,
1.4
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.5,
"h": 0.04,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": -0.45,
"z": -0.45,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 0.5,
"color": "white"
},
{
"shape": "box",
"x": -0.45,
"z": 0.45,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 0.5,
"color": "white"
},
{
"shape": "box",
"x": 0.45,
"z": -0.45,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 0.5,
"color": "white"
},
{
"shape": "box",
"x": 0.45,
"z": 0.45,
"w": 0.05,
"d": 0.05,
"y": 0,
"h": 0.5,
"color": "white"
},
{
"shape": "box",
"x": 0.3,
"z": 0,
"w": 0.35,
"d": 0.9,
"y": 0.38,
"h": 0.12,
"color": "white"
},
{
"shape": "cyl",
"x": 0,
"z": -0.3,
"w": 0.5,
"d": 0.08,
"y": 0.6,
"h": 0.38,
"color": "#c8dcec",
"axis": "z"
},
{
"shape": "cyl",
"x": 0,
"z": -0.32,
"w": 0.55,
"d": 0.06,
"y": 0.58,
"h": 0.42,
"color": "#ffe7b0",
"glow": true,
"axis": "z"
}
],
"surface": true,
"electric": true,
"light": "table"
},
{
"id": "clothes_rail",
"name": {
"de": "Kleiderstange",
"en": "Clothes rail"
},
"size": [
1.2,
0.5,
1.6
],
"parts": [
{
"shape": "box",
"x": -0.47,
"z": 0,
"w": 0.04,
"d": 0.9,
"y": 0,
"h": 0.03,
"color": "metal"
},
{
"shape": "box",
"x": 0.47,
"z": 0,
"w": 0.04,
"d": 0.9,
"y": 0,
"h": 0.03,
"color": "metal"
},
{
"shape": "cyl",
"x": -0.47,
"z": 0,
"w": 0.04,
"d": 0.04,
"y": 0,
"h": 1,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.47,
"z": 0,
"w": 0.04,
"d": 0.04,
"y": 0,
"h": 1,
"color": "metal"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.96,
"d": 0.04,
"y": 0.97,
"h": 0.02,
"color": "metal"
},
{
"shape": "box",
"x": -0.3,
"z": 0,
"w": 0.08,
"d": 0.8,
"y": 0.45,
"h": 0.5,
"color": "fabric"
},
{
"shape": "box",
"x": -0.15,
"z": 0,
"w": 0.08,
"d": 0.8,
"y": 0.45,
"h": 0.5,
"color": "accent"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.08,
"d": 0.8,
"y": 0.45,
"h": 0.5,
"color": "#b5523b"
},
{
"shape": "box",
"x": 0.15,
"z": 0,
"w": 0.08,
"d": 0.8,
"y": 0.45,
"h": 0.5,
"color": "white"
},
{
"shape": "box",
"x": 0.3,
"z": 0,
"w": 0.08,
"d": 0.8,
"y": 0.45,
"h": 0.5,
"color": "dark"
}
]
},
{
"id": "loft_bed_desk",
"name": {
"de": "Hochbett mit Schreibtisch",
"en": "Loft bed with desk"
},
"size": [
1.0,
2.0,
1.85
],
"parts": [
{
"shape": "box",
"x": -0.47,
"z": -0.47,
"w": 0.06,
"d": 0.06,
"y": 0,
"h": 1,
"color": "wood"
},
{
"shape": "box",
"x": -0.47,
"z": 0.47,
"w": 0.06,
"d": 0.06,
"y": 0,
"h": 1,
"color": "wood"
},
{
"shape": "box",
"x": 0.47,
"z": -0.47,
"w": 0.06,
"d": 0.06,
"y": 0,
"h": 1,
"color": "wood"
},
{
"shape": "box",
"x": 0.47,
"z": 0.47,
"w": 0.06,
"d": 0.06,
"y": 0,
"h": 1,
"color": "wood"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.58,
"h": 0.05,
"color": "wood",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.95,
"d": 0.95,
"y": 0.63,
"h": 0.1,
"color": "white"
},
{
"shape": "box",
"x": -0.48,
"z": 0,
"w": 0.04,
"d": 1,
"y": 0.73,
"h": 0.15,
"color": "wood"
},
{
"shape": "box",
"x": 0.48,
"z": 0.1,
"w": 0.04,
"d": 0.8,
"y": 0.73,
"h": 0.15,
"color": "wood"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.95,
"d": 0.5,
"y": 0.39,
"h": 0.03,
"color": "white"
},
{
"shape": "box",
"x": 0,
"z": -0.3,
"w": 0.6,
"d": 0.1,
"y": 0.42,
"h": 0.18,
"color": "dark",
"screen": true
}
],
"electric": true
},
{
"id": "toy_box",
"name": {
"de": "Spielzeugkiste",
"en": "Toy box"
},
"size": [
0.7,
0.45,
0.45
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.9,
"color": "#f2c94c",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.9,
"h": 0.1,
"color": "#3b7bb5"
}
]
}
]
}
@@ -0,0 +1,715 @@
{
"format": "nfpack",
"version": 1,
"id": "nextfloor.technik",
"name": "Büro & Homelab",
"publisher": "NextFloor",
"description": "Höhenverstellbarer Schreibtisch, Server-Rack, NAS, 3D-Drucker, Router",
"release": 1,
"items": [
{
"id": "standing_desk",
"name": {
"de": "Schreibtisch höhenverstellbar",
"en": "Standing desk"
},
"size": [
1.6,
0.8,
1.2
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.6,
"h": 0.03,
"color": "wood",
"edges": "faint"
},
{
"shape": "box",
"x": -0.4,
"z": -0.05,
"w": 0.05,
"d": 0.08,
"y": 0,
"h": 0.6,
"color": "dark"
},
{
"shape": "box",
"x": 0.4,
"z": -0.05,
"w": 0.05,
"d": 0.08,
"y": 0,
"h": 0.6,
"color": "dark"
},
{
"shape": "box",
"x": -0.4,
"z": -0.05,
"w": 0.08,
"d": 0.7,
"y": 0,
"h": 0.02,
"color": "dark"
},
{
"shape": "box",
"x": 0.4,
"z": -0.05,
"w": 0.08,
"d": 0.7,
"y": 0,
"h": 0.02,
"color": "dark"
},
{
"shape": "box",
"x": -0.18,
"z": -0.32,
"w": 0.36,
"d": 0.05,
"y": 0.71,
"h": 0.27,
"color": "dark",
"screen": true
},
{
"shape": "box",
"x": 0.2,
"z": -0.32,
"w": 0.36,
"d": 0.05,
"y": 0.71,
"h": 0.27,
"color": "dark",
"screen": true
},
{
"shape": "cyl",
"x": -0.18,
"z": -0.36,
"w": 0.05,
"d": 0.05,
"y": 0.63,
"h": 0.08,
"color": "metal"
},
{
"shape": "cyl",
"x": 0.2,
"z": -0.36,
"w": 0.05,
"d": 0.05,
"y": 0.63,
"h": 0.08,
"color": "metal"
},
{
"shape": "box",
"x": 0,
"z": 0.15,
"w": 0.3,
"d": 0.18,
"y": 0.63,
"h": 0.01,
"color": "body"
}
],
"electric": true,
"surface": true
},
{
"id": "server_rack",
"name": {
"de": "Server-Rack (19 Zoll)",
"en": "Server rack (19 inch)"
},
"size": [
0.6,
0.8,
1.9
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": "glow"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.9,
"d": 0.02,
"y": 0.03,
"h": 0.94,
"color": "glass"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.86,
"d": 0.8,
"y": 0.1,
"h": 0.06,
"color": "#1d2433",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.86,
"d": 0.8,
"y": 0.2,
"h": 0.06,
"color": "#1d2433",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.86,
"d": 0.8,
"y": 0.3,
"h": 0.06,
"color": "#1d2433",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.86,
"d": 0.8,
"y": 0.42,
"h": 0.06,
"color": "#1d2433",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.86,
"d": 0.8,
"y": 0.55,
"h": 0.06,
"color": "#1d2433",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.86,
"d": 0.8,
"y": 0.68,
"h": 0.06,
"color": "#1d2433",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.1,
"w": 0.86,
"d": 0.8,
"y": 0.8,
"h": 0.06,
"color": "#1d2433",
"edges": "faint"
},
{
"shape": "box",
"x": -0.3,
"z": 0.46,
"w": 0.05,
"d": 0.02,
"y": 0.12,
"h": 0.02,
"color": "#38e07b",
"glow": true
},
{
"shape": "box",
"x": -0.3,
"z": 0.46,
"w": 0.05,
"d": 0.02,
"y": 0.22,
"h": 0.02,
"color": "#38e07b",
"glow": true
},
{
"shape": "box",
"x": -0.3,
"z": 0.46,
"w": 0.05,
"d": 0.02,
"y": 0.32,
"h": 0.02,
"color": "#38e07b",
"glow": true
},
{
"shape": "box",
"x": -0.3,
"z": 0.46,
"w": 0.05,
"d": 0.02,
"y": 0.44,
"h": 0.02,
"color": "#38e07b",
"glow": true
},
{
"shape": "box",
"x": -0.3,
"z": 0.46,
"w": 0.05,
"d": 0.02,
"y": 0.57,
"h": 0.02,
"color": "#38e07b",
"glow": true
},
{
"shape": "box",
"x": -0.3,
"z": 0.46,
"w": 0.05,
"d": 0.02,
"y": 0.7,
"h": 0.02,
"color": "#38e07b",
"glow": true
},
{
"shape": "box",
"x": -0.3,
"z": 0.46,
"w": 0.05,
"d": 0.02,
"y": 0.82,
"h": 0.02,
"color": "#38e07b",
"glow": true
}
],
"electric": true,
"light": "strip"
},
{
"id": "nas",
"name": {
"de": "NAS",
"en": "NAS"
},
"size": [
0.2,
0.25,
0.22
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": true
},
{
"shape": "box",
"x": -0.3,
"z": 0.5,
"w": 0.18,
"d": 0.02,
"y": 0.1,
"h": 0.8,
"color": "#2b3446"
},
{
"shape": "box",
"x": -0.1,
"z": 0.5,
"w": 0.18,
"d": 0.02,
"y": 0.1,
"h": 0.8,
"color": "#2b3446"
},
{
"shape": "box",
"x": 0.1,
"z": 0.5,
"w": 0.18,
"d": 0.02,
"y": 0.1,
"h": 0.8,
"color": "#2b3446"
},
{
"shape": "box",
"x": 0.3,
"z": 0.5,
"w": 0.18,
"d": 0.02,
"y": 0.1,
"h": 0.8,
"color": "#2b3446"
},
{
"shape": "box",
"x": 0.35,
"z": 0.5,
"w": 0.05,
"d": 0.02,
"y": 0.85,
"h": 0.05,
"color": "#38e07b",
"glow": true
}
],
"mount": "surface",
"electric": true,
"light": "table"
},
{
"id": "printer_3d",
"name": {
"de": "3D-Drucker",
"en": "3D printer"
},
"size": [
0.5,
0.5,
0.6
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.12,
"color": "dark",
"edges": true
},
{
"shape": "box",
"x": -0.45,
"z": 0,
"w": 0.08,
"d": 0.1,
"y": 0.12,
"h": 0.85,
"color": "metal"
},
{
"shape": "box",
"x": 0.45,
"z": 0,
"w": 0.08,
"d": 0.1,
"y": 0.12,
"h": 0.85,
"color": "metal"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 0.1,
"y": 0.92,
"h": 0.06,
"color": "metal"
},
{
"shape": "box",
"x": 0,
"z": 0,
"w": 0.75,
"d": 0.75,
"y": 0.25,
"h": 0.02,
"color": "#d1293d"
},
{
"shape": "box",
"x": 0.1,
"z": 0,
"w": 0.14,
"d": 0.14,
"y": 0.7,
"h": 0.12,
"color": "dark"
},
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 0.18,
"d": 0.18,
"y": 0.27,
"h": 0.15,
"color": "#38e07b"
}
],
"electric": true
},
{
"id": "office_printer",
"name": {
"de": "Drucker",
"en": "Printer"
},
"size": [
0.45,
0.4,
0.25
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 0.8,
"color": "white",
"edges": true
},
{
"shape": "box",
"x": 0,
"z": 0.4,
"w": 0.7,
"d": 0.3,
"y": 0.25,
"h": 0.04,
"color": "body"
},
{
"shape": "box",
"x": 0,
"z": -0.1,
"w": 0.8,
"d": 0.6,
"y": 0.8,
"h": 0.2,
"color": "#d9dee6"
}
],
"mount": "surface",
"electric": true
},
{
"id": "router",
"name": {
"de": "Router / Access Point",
"en": "Router / access point"
},
"size": [
0.25,
0.25,
0.04
],
"parts": [
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "white",
"edges": "faint"
},
{
"shape": "cyl",
"x": 0,
"z": 0,
"w": 0.3,
"d": 0.3,
"y": 0.9,
"h": 0.12,
"color": "#3ea6ff",
"glow": true
}
],
"mount": "ceiling",
"electric": true,
"light": "downlight"
},
{
"id": "tower_pc",
"name": {
"de": "PC (Tower)",
"en": "Tower PC"
},
"size": [
0.22,
0.48,
0.48
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0,
"h": 1,
"color": "dark",
"edges": "glow"
},
{
"shape": "box",
"x": -0.5,
"z": 0,
"w": 0.02,
"d": 0.8,
"y": 0.2,
"h": 0.7,
"color": "glass"
},
{
"shape": "box",
"x": -0.48,
"z": 0,
"w": 0.02,
"d": 0.7,
"y": 0.25,
"h": 0.6,
"color": "#a640ff",
"glow": true
}
],
"electric": true,
"light": "strip"
},
{
"id": "filing_cabinet",
"name": {
"de": "Rollcontainer",
"en": "Drawer pedestal"
},
"size": [
0.42,
0.55,
0.6
],
"parts": [
{
"shape": "box",
"x": 0,
"z": 0,
"w": 1,
"d": 1,
"y": 0.08,
"h": 0.92,
"color": "white",
"edges": "faint"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.9,
"d": 0.02,
"y": 0.12,
"h": 0.26,
"color": "body"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.9,
"d": 0.02,
"y": 0.42,
"h": 0.26,
"color": "body"
},
{
"shape": "box",
"x": 0,
"z": 0.5,
"w": 0.9,
"d": 0.02,
"y": 0.72,
"h": 0.26,
"color": "body"
},
{
"shape": "cyl",
"x": -0.4,
"z": -0.4,
"w": 0.1,
"d": 0.1,
"y": 0,
"h": 0.08,
"color": "dark"
},
{
"shape": "cyl",
"x": -0.4,
"z": 0.4,
"w": 0.1,
"d": 0.1,
"y": 0,
"h": 0.08,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.4,
"z": -0.4,
"w": 0.1,
"d": 0.1,
"y": 0,
"h": 0.08,
"color": "dark"
},
{
"shape": "cyl",
"x": 0.4,
"z": 0.4,
"w": 0.1,
"d": 0.1,
"y": 0,
"h": 0.08,
"color": "dark"
}
]
}
]
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+294
View File
@@ -0,0 +1,294 @@
"""Sensors from the plan: how many windows and doors are open and how many lights are on, per floor and for the house.
They count what the plan links: the contacts of its doors and windows (a garage door by its cover), and the lights of
its device pins and lamps. Automations and voice can use them without listing the entities of a floor by hand.
"""
from __future__ import annotations
from collections.abc import Callable
from datetime import timedelta
from typing import Any
from homeassistant.components.sensor import SensorEntity, SensorStateClass
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import Event, EventStateChangedData, HomeAssistant, callback
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.event import async_track_state_change_event, async_track_time_interval
from . import ble
from .const import DOMAIN, SIGNAL_BUILDING_UPDATED
HOUSE = "house"
KINDS = ("open", "lights_on")
def _is_light(entity_id: Any) -> bool:
return isinstance(entity_id, str) and entity_id.startswith("light.")
def floor_lights(floor: dict[str, Any]) -> set[str]:
"""The lights the plan shows on a floor: device pins and the lights of lamps (with their extra lights)."""
lights = {p.get("entity_id") for p in floor.get("placements", []) if _is_light(p.get("entity_id"))}
for item in floor.get("furniture", []):
if _is_light(item.get("entity")):
lights.add(item["entity"])
lights.update(e for e in item.get("extra_lights") or [] if _is_light(e))
return {e for e in lights if e}
def floor_openings(floor: dict[str, Any]) -> list[dict[str, Any]]:
"""The doors, windows and garage doors of a floor that have an entity telling whether they are open."""
out = []
for o in floor.get("openings", []):
sensors = [o.get(k) for k in ("contact", "contact2", "tilt", "tilt2") if isinstance(o.get(k), str) and o.get(k)]
cover = o.get("cover") if o.get("type") == "garage" and isinstance(o.get("cover"), str) else None
if sensors or cover:
out.append({"sensors": sensors, "cover": cover})
return out
def _floors(building: dict[str, Any]) -> list[dict[str, Any]]:
return [f for f in building.get("floors", []) if not f.get("layer")]
class _Counter:
"""What one sensor counts: the lights or the openings of some floors, read from the current states."""
def __init__(self, hass: HomeAssistant, kind: str) -> None:
self.hass = hass
self.kind = kind
self.lights: set[str] = set()
self.openings: list[dict[str, Any]] = []
def take(self, floors: list[dict[str, Any]]) -> None:
self.lights = set().union(*(floor_lights(f) for f in floors)) if floors else set()
self.openings = [o for f in floors for o in floor_openings(f)]
def watched(self) -> set[str]:
if self.kind == "lights_on":
return set(self.lights)
return {e for o in self.openings for e in [*o["sensors"], o["cover"]] if e}
def _state(self, entity_id: str) -> str | None:
st = self.hass.states.get(entity_id)
return st.state if st else None
def count(self) -> tuple[int, list[str]]:
if self.kind == "lights_on":
on = sorted(e for e in self.lights if self._state(e) == "on")
return len(on), on
open_ids: list[str] = []
for o in self.openings:
hit = next((e for e in o["sensors"] if self._state(e) == "on"), None)
if hit is None and o["cover"] and self._state(o["cover"]) in ("open", "opening", "closing"):
hit = o["cover"]
if hit:
open_ids.append(hit)
return len(open_ids), sorted(open_ids)
class NextFloorCountSensor(SensorEntity):
"""Open windows and doors, or lights on, on one floor or in the whole house."""
_attr_has_entity_name = True
_attr_should_poll = False
_attr_state_class = SensorStateClass.MEASUREMENT
def __init__(self, hass: HomeAssistant, entry: ConfigEntry, scope: str, name: str, kind: str) -> None:
"""Count `kind` on the floor `scope` (or the whole house)."""
self.scope = scope
self._counter = _Counter(hass, kind)
self._unsub_states: Callable[[], None] | None = None
self._attr_unique_id = f"{entry.entry_id}_{scope}_{kind}"
self._attr_translation_key = f"{'house' if scope == HOUSE else 'floor'}_{kind}"
self._attr_translation_placeholders = {"floor": name}
self._attr_icon = "mdi:window-open-variant" if kind == "open" else "mdi:lightbulb-group"
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, entry.entry_id)}, name="NextFloor", entry_type=DeviceEntryType.SERVICE
)
self._ids: list[str] = []
def take(self, building: dict[str, Any]) -> None:
"""Follow the floors of the (new) plan; a floor that is gone leaves the sensor unavailable."""
floors = _floors(building)
mine = floors if self.scope == HOUSE else [f for f in floors if f.get("id") == self.scope]
self._attr_available = self.scope == HOUSE or bool(mine)
if mine and self.scope != HOUSE:
self._attr_translation_placeholders = {"floor": mine[0].get("name") or self.scope}
self._counter.take(mine)
self._refresh()
if self.hass is not None and self.platform is not None:
self._watch()
@callback
def _watch(self) -> None:
if self._unsub_states:
self._unsub_states()
watched = sorted(self._counter.watched())
self._unsub_states = async_track_state_change_event(self.hass, watched, self._changed) if watched else None
@callback
def _changed(self, _event: Event[EventStateChangedData]) -> None:
self._refresh()
self.async_write_ha_state()
def _refresh(self) -> None:
n, ids = self._counter.count()
self._attr_native_value = n
self._ids = ids
@property
def extra_state_attributes(self) -> dict[str, Any]:
"""The entities that are open or on, for templates and notifications."""
return {"entities": self._ids}
async def async_added_to_hass(self) -> None:
"""Start following the states."""
self._watch()
async def async_will_remove_from_hass(self) -> None:
"""Stop following the states."""
if self._unsub_states:
self._unsub_states()
self._unsub_states = None
BLE_POLL = timedelta(seconds=2)
# a tag that no scanner has heard for this long is "away"
BLE_AWAY_AFTER = timedelta(minutes=2)
UNKNOWN = "unknown"
class NextFloorBleSensor(SensorEntity):
"""The room a Bluetooth tag is in, from its signal at the scanners and the fingerprints recorded in the editor."""
_attr_has_entity_name = True
_attr_should_poll = False
_attr_icon = "mdi:bluetooth-connect"
def __init__(self, hass: HomeAssistant, entry: ConfigEntry, tag: dict[str, Any]) -> None:
"""Locate `tag` (a dict of the plan's settings.ble.tags)."""
self.hass = hass
self.tag_id = tag["id"]
self._tag = tag
self._rooms: dict[str, dict[str, str]] = {}
self._smoother = ble.Smoother()
self._history: list[dict[str, float]] = []
self._last_heard: Any = None
self._room_id: str | None = None
self._detail: dict[str, Any] = {}
self._unsub: Callable[[], None] | None = None
self._attr_unique_id = f"{entry.entry_id}_ble_{tag['id']}"
self._attr_name = tag["name"]
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, entry.entry_id)}, name="NextFloor", entry_type=DeviceEntryType.SERVICE
)
self._attr_native_value = UNKNOWN
def take(self, building: dict[str, Any]) -> None:
"""Follow the (new) plan: the tag's fingerprints and the room names."""
found = next((t for t in ble.tags_of(building) if t["id"] == self.tag_id), None)
self._attr_available = found is not None
if found is not None:
self._tag = found
self._attr_name = found["name"]
self._rooms = ble.rooms_of(building)
@callback
def poll(self, _now: Any = None) -> None:
"""Read the scanners, compare with the fingerprints and update the room (smoothed)."""
from homeassistant.util import dt as dt_util
address = ble.tag_address(self.hass, self._tag)
readings = ble.scanner_readings(self.hass, address) if address else {}
now = dt_util.utcnow()
if readings:
self._last_heard = now
merged = ble.smooth_reading(self._history, {src: rssi for src, (_n, rssi) in readings.items()})
room, dist, margin = ble.locate(self._tag.get("prints") or [], merged)
shown = self._smoother.update(room)
self._detail = {
"room_id": shown,
"distance_db": None if dist == float("inf") else round(dist, 1),
"margin_db": round(margin, 1),
"scanners": {name: rssi for _src, (name, rssi) in readings.items()},
"address": address,
}
elif self._last_heard is None or now - self._last_heard > BLE_AWAY_AFTER:
self._history.clear()
self._smoother = ble.Smoother()
shown = None
self._detail = {"room_id": None, "scanners": {}, "address": address}
else:
shown = self._smoother.room
self._room_id = shown
info = self._rooms.get(shown) if shown else None
self._attr_native_value = info["name"] if info else UNKNOWN
self._detail["floor"] = info["floor"] if info else None
if self.platform is not None:
self.async_write_ha_state()
@property
def extra_state_attributes(self) -> dict[str, Any]:
"""The room id and floor, how far the match is, and what each scanner hears."""
return dict(self._detail)
async def async_added_to_hass(self) -> None:
"""Start reading the scanners."""
self._unsub = async_track_time_interval(self.hass, self.poll, BLE_POLL)
async def async_will_remove_from_hass(self) -> None:
"""Stop reading."""
if self._unsub:
self._unsub()
self._unsub = None
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None:
"""Add the house sensors and one pair per floor; floors added later get theirs when the plan is saved."""
data = hass.data[DOMAIN]
sensors: dict[tuple[str, str], NextFloorCountSensor] = {}
@callback
def sync(_revision: int | None = None) -> None:
building = data.building
new: list[NextFloorCountSensor] = []
scopes = [(HOUSE, "")] + [(f["id"], f.get("name") or f["id"]) for f in _floors(building)]
for scope, name in scopes:
for kind in KINDS:
sensor = sensors.get((scope, kind))
if sensor is None:
sensor = sensors[(scope, kind)] = NextFloorCountSensor(hass, entry, scope, name, kind)
new.append(sensor)
for sensor in sensors.values():
sensor.take(building)
if sensor not in new and sensor.hass is not None:
sensor.async_write_ha_state()
if new:
async_add_entities(new)
ble_sensors: dict[str, NextFloorBleSensor] = {}
@callback
def sync_ble(_revision: int | None = None) -> None:
building = data.building
new_ble: list[NextFloorBleSensor] = []
for tag in ble.tags_of(building):
sensor = ble_sensors.get(tag["id"])
if sensor is None:
sensor = ble_sensors[tag["id"]] = NextFloorBleSensor(hass, entry, tag)
new_ble.append(sensor)
for sensor in ble_sensors.values():
sensor.take(building)
if sensor not in new_ble and sensor.platform is not None:
sensor.async_write_ha_state()
if new_ble:
async_add_entities(new_ble)
sync()
sync_ble()
entry.async_on_unload(async_dispatcher_connect(hass, SIGNAL_BUILDING_UPDATED, sync))
entry.async_on_unload(async_dispatcher_connect(hass, SIGNAL_BUILDING_UPDATED, sync_ble))
+41
View File
@@ -0,0 +1,41 @@
announce:
fields:
message:
required: true
example: "Dinner is ready!"
selector:
text:
multiline: true
rooms:
example: "Kitchen, Living room"
selector:
text:
multiple: true
floor:
example: "Ground floor"
selector:
text:
on_speakers:
default: true
selector:
boolean:
on_screens:
default: true
selector:
boolean:
screens:
example: "Hallway"
selector:
text:
multiple: true
tts_entity:
selector:
entity:
domain: tts
reload_screens:
fields:
template:
example: "kitchen_tablet"
selector:
text:
+219
View File
@@ -0,0 +1,219 @@
"""Persistence for NextFloor.
The building (rooms, walls, furniture, placements) and the background images live in separate
stores so frequent saves from the editor never rewrite the large image data.
"""
from __future__ import annotations
import logging
import time
from typing import Any
import uuid
from homeassistant.core import HomeAssistant
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.storage import Store
import voluptuous as vol
from .const import (
HISTORY_INTERVAL,
HISTORY_MAX,
SIGNAL_BUILDING_UPDATED,
STORAGE_KEY_BUILDING,
STORAGE_KEY_HISTORY,
STORAGE_KEY_IMAGES,
STORAGE_KEY_PACKS,
STORAGE_MINOR_VERSION,
STORAGE_VERSION,
)
from .packs import PackError, load_builtin_packs
from .schema import BUILDING_SCHEMA, empty_building, image_ids
_LOGGER = logging.getLogger(__name__)
def complete(building: dict[str, Any]) -> dict[str, Any]:
"""Fill fields added in later versions with their defaults (keeps the building when it is invalid)."""
try:
return BUILDING_SCHEMA(building)
except vol.Invalid as err:
_LOGGER.warning("Stored building does not validate (%s); loading it unchanged", err)
return building
class _BuildingStore(Store):
"""Building store with migrations between minor versions."""
async def _async_migrate_func(self, old_major_version: int, old_minor_version: int, old_data: dict) -> dict:
# 1 -> 2: newer optional fields (openings, furniture, energy, presence) get their defaults
if old_minor_version < 2 and old_data.get("building"):
old_data = {**old_data, "building": complete(old_data["building"])}
return old_data
def _stores(hass: HomeAssistant) -> tuple[Store, Store, Store, Store]:
return (
_BuildingStore(hass, STORAGE_VERSION, STORAGE_KEY_BUILDING, minor_version=STORAGE_MINOR_VERSION),
Store(hass, STORAGE_VERSION, STORAGE_KEY_IMAGES),
Store(hass, STORAGE_VERSION, STORAGE_KEY_HISTORY),
Store(hass, STORAGE_VERSION, STORAGE_KEY_PACKS),
)
def _summary(building: dict[str, Any]) -> dict[str, int]:
floors = building.get("floors", [])
return {
"floors": len(floors),
"rooms": sum(len(f.get("rooms", [])) for f in floors),
"furniture": sum(len(f.get("furniture", [])) for f in floors),
}
class NextFloorData:
"""Building and images of one installation."""
def __init__(self, hass: HomeAssistant) -> None:
"""Initialise the stores."""
self.hass = hass
self._building_store, self._image_store, self._history_store, self._pack_store = _stores(hass)
self.building: dict[str, Any] = empty_building()
self.revision = 0
self._images: dict[str, str] = {}
self._history: list[dict[str, Any]] = []
# imported furniture packs (checked payloads, see packs.py)
self.packs: list[dict[str, Any]] = []
# the packs that come with the integration (packs/*.json)
self.builtin_packs: list[dict[str, Any]] = []
async def async_load(self) -> None:
"""Load both stores and drop images no floor refers to any more."""
stored = await self._building_store.async_load()
if stored:
self.building = complete(stored.get("building") or empty_building())
self.revision = int(stored.get("revision", 0))
packs = await self._pack_store.async_load()
self.packs = list((packs or {}).get("packs", []))
try:
self.builtin_packs = await self.hass.async_add_executor_job(load_builtin_packs)
except (OSError, PackError) as err:
_LOGGER.error("The furniture packs that come with NextFloor could not be loaded: %s", err)
history = await self._history_store.async_load()
self._history = list((history or {}).get("snapshots", []))
images = await self._image_store.async_load()
self._images = dict((images or {}).get("images", {}))
unused = set(self._images) - image_ids(self.building)
if unused:
_LOGGER.debug("Removing %d unused background images", len(unused))
for image_id in unused:
self._images.pop(image_id)
await self._save_images()
async def async_save_building(self, building: dict[str, Any]) -> int:
"""Store a validated building, bump the revision and notify subscribers.
The state before the save becomes a restore point when the last one is older than
HISTORY_INTERVAL, so a long editing session leaves a trail without saving every step.
"""
last = self._history[-1]["saved_at"] if self._history else 0
if self.building.get("floors") and time.time() - last > HISTORY_INTERVAL:
await self.async_snapshot()
self.building = building
self.revision += 1
await self._building_store.async_save({"revision": self.revision, "building": building})
async_dispatcher_send(self.hass, SIGNAL_BUILDING_UPDATED, self.revision)
return self.revision
async def async_snapshot(self, name: str | None = None) -> str:
"""Keep the current building as a restore point; a named one (a version) stays when older ones go."""
snapshot_id = uuid.uuid4().hex[:12]
point: dict[str, Any] = {
"id": snapshot_id,
"revision": self.revision,
"saved_at": time.time(),
"building": self.building,
}
if name:
point["name"] = name
self._history.append(point)
named = [h for h in self._history if h.get("name")][-HISTORY_MAX:]
unnamed = [h for h in self._history if not h.get("name")][-HISTORY_MAX:]
keep = {id(h) for h in named + unnamed}
self._history = [h for h in self._history if id(h) in keep]
await self._history_store.async_save({"snapshots": self._history})
return snapshot_id
async def async_delete_snapshot(self, snapshot_id: str) -> bool:
"""Remove a restore point; False when there is none of that id."""
before = len(self._history)
self._history = [h for h in self._history if h["id"] != snapshot_id]
if len(self._history) == before:
return False
await self._history_store.async_save({"snapshots": self._history})
return True
def history(self) -> list[dict[str, Any]]:
"""Restore points, newest first, without their buildings."""
return [
{
"id": h["id"],
"revision": h["revision"],
"saved_at": h["saved_at"],
**({"name": h["name"]} if h.get("name") else {}),
**_summary(h["building"]),
}
for h in reversed(self._history)
]
def snapshot(self, snapshot_id: str) -> dict[str, Any] | None:
"""Building of a restore point."""
return next((h["building"] for h in self._history if h["id"] == snapshot_id), None)
@property
def all_packs(self) -> list[dict[str, Any]]:
"""The built-in packs and the imported ones."""
return [*self.builtin_packs, *self.packs]
async def async_add_pack(self, payload: dict[str, Any]) -> None:
"""Keep an imported pack; a newer file of the same pack replaces the old one."""
entry = {**payload, "imported_at": time.time()}
self.packs = [p for p in self.packs if p["id"] != payload["id"]] + [entry]
await self._pack_store.async_save({"packs": self.packs})
@property
def images(self) -> dict[str, str]:
"""All stored images (id -> data URL)."""
return dict(self._images)
async def async_restore(self, building: dict[str, Any], packs: list[dict[str, Any]]) -> int:
"""Replace the plan and the packs from a backup; the state before becomes a restore point."""
await self.async_snapshot()
self.packs = packs
await self._pack_store.async_save({"packs": self.packs})
return await self.async_save_building(building)
async def async_remove_pack(self, pack_id: str) -> bool:
"""Remove a pack (furniture using it stays in the plan as plain boxes)."""
kept = [p for p in self.packs if p["id"] != pack_id]
if len(kept) == len(self.packs):
return False
self.packs = kept
await self._pack_store.async_save({"packs": self.packs})
return True
def get_image(self, image_id: str) -> str | None:
"""Return an image as data URL."""
return self._images.get(image_id)
async def async_set_image(self, image_id: str, data: str) -> None:
"""Store an image."""
self._images[image_id] = data
await self._save_images()
async def async_delete_image(self, image_id: str) -> None:
"""Remove an image."""
if self._images.pop(image_id, None) is not None:
await self._save_images()
async def _save_images(self) -> None:
await self._image_store.async_save({"images": self._images})
@@ -0,0 +1,66 @@
"""A one-time note for people who installed NextFloor before it joined the official HACS store."""
# ruff: noqa: E501, RUF001
from __future__ import annotations
from datetime import UTC, datetime
from homeassistant.components import persistent_notification
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.storage import Store
from .const import DOMAIN
NOTICE_ID = f"{DOMAIN}_official_store"
STORAGE_KEY = f"{DOMAIN}.store_notice"
# installs made before this day came in as a custom repository; later ones can only come from the store
STORE_SINCE = datetime(2026, 11, 4, tzinfo=UTC)
TITLE = {
"en": "NextFloor is now in the official HACS store",
"de": "NextFloor ist jetzt im offiziellen HACS-Store",
"fr": "NextFloor est maintenant dans le store HACS officiel",
"es": "NextFloor ya está en la tienda oficial de HACS",
"it": "NextFloor è ora nello store ufficiale di HACS",
"nl": "NextFloor staat nu in de officiële HACS-store",
"pl": "NextFloor jest teraz w oficjalnym sklepie HACS",
"pt": "O NextFloor já está na loja oficial do HACS",
"sv": "NextFloor finns nu i den officiella HACS-butiken",
"zh": "NextFloor 现已进入 HACS 官方商店",
}
MESSAGE = {
"en": "Thank you for using NextFloor! You installed it as a custom repository; it is now part of the official HACS store, so new installs just search for *NextFloor* in HACS. **Nothing to do for you:** your installation, plan and settings stay as they are, and updates keep coming through HACS. HACS recognises NextFloor as a regular repository by itself once it has refreshed its list.",
"de": "Danke, dass du NextFloor nutzt! Du hast es als eigenes Repository installiert; jetzt gehört es zum offiziellen HACS-Store, neue Nutzer suchen einfach nach *NextFloor* in HACS. **Du musst nichts tun:** Installation, Plan und Einstellungen bleiben wie sie sind, Updates kommen weiter über HACS. HACS erkennt NextFloor von selbst als normales Repository, sobald es seine Liste aktualisiert hat.",
"fr": "Merci d'utiliser NextFloor ! Vous l'avez installé comme dépôt personnalisé ; il fait désormais partie du store HACS officiel, les nouveaux utilisateurs cherchent simplement *NextFloor* dans HACS. **Rien à faire :** votre installation, votre plan et vos réglages restent tels quels, et les mises à jour continuent d'arriver via HACS. HACS reconnaît NextFloor comme un dépôt normal dès qu'il a actualisé sa liste.",
"es": "¡Gracias por usar NextFloor! Lo instalaste como repositorio personalizado; ahora forma parte de la tienda oficial de HACS y los nuevos usuarios solo buscan *NextFloor* en HACS. **No tienes que hacer nada:** tu instalación, tu plano y tus ajustes siguen igual, y las actualizaciones siguen llegando por HACS. HACS reconoce NextFloor como repositorio normal en cuanto actualice su lista.",
"it": "Grazie per usare NextFloor! L'hai installato come repository personalizzato; ora fa parte dello store ufficiale di HACS e i nuovi utenti cercano semplicemente *NextFloor* in HACS. **Non devi fare nulla:** installazione, planimetria e impostazioni restano come sono e gli aggiornamenti continuano ad arrivare tramite HACS. HACS riconosce NextFloor come repository normale da solo, dopo aver aggiornato il suo elenco.",
"nl": "Bedankt voor het gebruik van NextFloor! Je hebt het als eigen repository geïnstalleerd; het hoort nu bij de officiële HACS-store, nieuwe gebruikers zoeken gewoon naar *NextFloor* in HACS. **Je hoeft niets te doen:** installatie, plattegrond en instellingen blijven zoals ze zijn en updates komen nog steeds via HACS. HACS herkent NextFloor zelf als gewone repository zodra de lijst is vernieuwd.",
"pl": "Dziękujemy za korzystanie z NextFloor! Zainstalowano go jako repozytorium niestandardowe; jest już częścią oficjalnego sklepu HACS, więc nowi użytkownicy po prostu szukają *NextFloor* w HACS. **Nie musisz nic robić:** instalacja, plan i ustawienia pozostają bez zmian, a aktualizacje nadal przychodzą przez HACS. HACS sam rozpozna NextFloor jako zwykłe repozytorium po odświeżeniu listy.",
"pt": "Obrigado por usar o NextFloor! Você o instalou como repositório personalizado; agora ele faz parte da loja oficial do HACS e os novos usuários só procuram *NextFloor* no HACS. **Você não precisa fazer nada:** instalação, planta e configurações continuam como estão, e as atualizações seguem pelo HACS. O HACS reconhece o NextFloor como repositório normal sozinho depois de atualizar a lista.",
"sv": "Tack för att du använder NextFloor! Du installerade det som eget arkiv; nu ingår det i den officiella HACS-butiken och nya användare söker bara efter *NextFloor* i HACS. **Du behöver inte göra något:** installation, ritning och inställningar är oförändrade och uppdateringarna kommer fortsatt via HACS. HACS känner själv igen NextFloor som ett vanligt arkiv när listan har uppdaterats.",
"zh": "感谢使用 NextFloor!你是通过自定义仓库安装的;现在它已进入 HACS 官方商店,新用户直接在 HACS 里搜索 *NextFloor* 即可。**你无需做任何事:**安装、平面图和设置保持不变,更新仍通过 HACS 提供。HACS 刷新列表后会自动把 NextFloor 识别为普通仓库。",
}
def _lang(hass: HomeAssistant) -> str:
language = (hass.config.language or "en").lower()
for key in (language, language.split("-")[0]):
if key in MESSAGE:
return key
return "zh" if language.startswith("zh") else "en"
async def async_notify_official_store(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Show the note once, and only for an installation older than the store listing. Returns whether it was shown."""
created = getattr(entry, "created_at", None)
if created is None or created >= STORE_SINCE:
return False
store: Store[dict[str, bool]] = Store(hass, 1, STORAGE_KEY)
if (await store.async_load() or {}).get("shown"):
return False
lang = _lang(hass)
persistent_notification.async_create(hass, MESSAGE[lang], title=TITLE[lang], notification_id=NOTICE_ID)
await store.async_save({"shown": True})
return True
+86
View File
@@ -0,0 +1,86 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Adds a sidebar page where you draw your home and see it in 3D."
}
},
"abort": {
"single_instance_allowed": "NextFloor is already set up."
}
},
"services": {
"announce": {
"name": "Announcement",
"description": "Speaks a message in rooms of the plan, each through its own speaker, and shows and speaks it on every open NextFloor screen.",
"fields": {
"message": {
"name": "Message",
"description": "What is said."
},
"rooms": {
"name": "Rooms",
"description": "Rooms by name, room id or area id. Empty: every room with a speaker (rooms in their quiet time are left out)."
},
"floor": {
"name": "Floor",
"description": "Only the rooms of this floor (name or id)."
},
"on_speakers": {
"name": "On the speakers",
"description": "Speak in the rooms."
},
"on_screens": {
"name": "On the screens",
"description": "Show and speak it on the open NextFloor screens."
},
"screens": {
"name": "Only these screens",
"description": "Names of NextFloor screens (set on each screen). Empty: every screen."
},
"tts_entity": {
"name": "Text-to-speech",
"description": "Instead of the one chosen in the plan, or the first one."
}
}
},
"reload_screens": {
"name": "Reload screens",
"description": "Makes the open NextFloor screens load their page again, a few seconds apart, for example after an update.",
"fields": {
"template": {
"name": "Card template",
"description": "Only the screens whose card uses this template. Empty: every open screen."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "No room of the plan matches the rooms given."
},
"no_tts": {
"message": "No speaker could say it: set up a text-to-speech entity in Home Assistant."
},
"not_loaded": {
"message": "NextFloor is not set up."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}: open windows and doors"
},
"floor_lights_on": {
"name": "{floor}: lights on"
},
"house_open": {
"name": "Open windows and doors"
},
"house_lights_on": {
"name": "Lights on"
}
}
}
}
@@ -0,0 +1,76 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Přidá stránku na postranní panel, na které si nakreslíte svůj dům a uvidíte ho ve 3D."
}
},
"abort": {
"single_instance_allowed": "NextFloor je již nakonfigurován."
}
},
"services": {
"announce": {
"name": "Oznámení",
"description": "Přečte zprávu v místnostech plánu (každou přes její vlastní reproduktor) a zároveň ji zobrazí a přečte na každé otevřené obrazovce NextFloor.",
"fields": {
"message": {
"name": "Zpráva",
"description": "Co má být řečeno."
},
"rooms": {
"name": "Místnosti",
"description": "Místnosti podle názvu, ID místnosti nebo ID oblasti. Prázdné: každá místnost s reproduktorem (místnosti v době nočního klidu/ticha jsou vynechány)."
},
"floor": {
"name": "Podlaží",
"description": "Pouze místnosti tohoto podlaží (název nebo ID)."
},
"on_speakers": {
"name": "Na reproduktorech",
"description": "Hlásit v místnostech."
},
"on_screens": {
"name": "Na obrazovkách",
"description": "Zobrazit a přečíst na otevřených obrazovkách NextFloor."
},
"screens": {
"name": "Pouze tyto obrazovky",
"description": "Názvy obrazovek NextFloor (nastavené na každé obrazovce). Prázdné: všechny."
},
"tts_entity": {
"name": "Převod textu na řeč (TTS)",
"description": "Místo vybrané v plánu nebo první dostupné."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "Žádná místnost v plánu neodpovídá zadaným parametrům."
},
"no_tts": {
"message": "Žádný reproduktor nemohl zprávu přečíst: nakonfigurujte v Home Assistant entitu převodu textu na řeč."
},
"not_loaded": {
"message": "NextFloor není nakonfigurován."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}: otevřená okna a dveře"
},
"floor_lights_on": {
"name": "{floor}: rozsvícená světla"
},
"house_open": {
"name": "Otevřená okna a dveře"
},
"house_lights_on": {
"name": "Rozsvícená světla"
}
}
}
}
@@ -0,0 +1,86 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Fügt eine Seite in der Seitenleiste hinzu, auf der du deine Wohnung zeichnest und in 3D siehst."
}
},
"abort": {
"single_instance_allowed": "NextFloor ist bereits eingerichtet."
}
},
"services": {
"announce": {
"name": "Durchsage",
"description": "Spricht eine Nachricht in Räumen des Plans, jeweils über deren eigenen Lautsprecher, und zeigt und spricht sie auf jedem offenen NextFloor-Bildschirm.",
"fields": {
"message": {
"name": "Nachricht",
"description": "Was gesagt wird."
},
"rooms": {
"name": "Räume",
"description": "Räume nach Name, Raum-ID oder Bereichs-ID. Leer: jeder Raum mit Lautsprecher (Räume in ihrer Ruhezeit bleiben aus)."
},
"floor": {
"name": "Etage",
"description": "Nur die Räume dieser Etage (Name oder ID)."
},
"on_speakers": {
"name": "Auf den Lautsprechern",
"description": "In den Räumen sprechen."
},
"on_screens": {
"name": "Auf den Bildschirmen",
"description": "Auf den offenen NextFloor-Bildschirmen zeigen und sprechen."
},
"screens": {
"name": "Nur diese Bildschirme",
"description": "Namen von NextFloor-Bildschirmen (an jedem Bildschirm vergeben). Leer: alle Bildschirme."
},
"tts_entity": {
"name": "Text-zu-Sprache",
"description": "Statt der im Plan gewählten oder der ersten."
}
}
},
"reload_screens": {
"name": "Bildschirme neu laden",
"description": "Lässt die geöffneten NextFloor-Bildschirme ihre Seite neu laden, mit einigen Sekunden Abstand, zum Beispiel nach einem Update.",
"fields": {
"template": {
"name": "Kartenvorlage",
"description": "Nur die Bildschirme, deren Karte diese Vorlage nutzt. Leer: alle geöffneten Bildschirme."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "Kein Raum des Plans passt zu den angegebenen Räumen."
},
"no_tts": {
"message": "Kein Lautsprecher konnte es sagen: Richte in Home Assistant eine Text-zu-Sprache-Entität ein."
},
"not_loaded": {
"message": "NextFloor ist nicht eingerichtet."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}: offene Fenster und Türen"
},
"floor_lights_on": {
"name": "{floor}: Lichter an"
},
"house_open": {
"name": "Offene Fenster und Türen"
},
"house_lights_on": {
"name": "Lichter an"
}
}
}
}
@@ -0,0 +1,86 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Adds a sidebar page where you draw your home and see it in 3D."
}
},
"abort": {
"single_instance_allowed": "NextFloor is already set up."
}
},
"services": {
"announce": {
"name": "Announcement",
"description": "Speaks a message in rooms of the plan, each through its own speaker, and shows and speaks it on every open NextFloor screen.",
"fields": {
"message": {
"name": "Message",
"description": "What is said."
},
"rooms": {
"name": "Rooms",
"description": "Rooms by name, room id or area id. Empty: every room with a speaker (rooms in their quiet time are left out)."
},
"floor": {
"name": "Floor",
"description": "Only the rooms of this floor (name or id)."
},
"on_speakers": {
"name": "On the speakers",
"description": "Speak in the rooms."
},
"on_screens": {
"name": "On the screens",
"description": "Show and speak it on the open NextFloor screens."
},
"screens": {
"name": "Only these screens",
"description": "Names of NextFloor screens (set on each screen). Empty: every screen."
},
"tts_entity": {
"name": "Text-to-speech",
"description": "Instead of the one chosen in the plan, or the first one."
}
}
},
"reload_screens": {
"name": "Reload screens",
"description": "Makes the open NextFloor screens load their page again, a few seconds apart, for example after an update.",
"fields": {
"template": {
"name": "Card template",
"description": "Only the screens whose card uses this template. Empty: every open screen."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "No room of the plan matches the rooms given."
},
"no_tts": {
"message": "No speaker could say it: set up a text-to-speech entity in Home Assistant."
},
"not_loaded": {
"message": "NextFloor is not set up."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}: open windows and doors"
},
"floor_lights_on": {
"name": "{floor}: lights on"
},
"house_open": {
"name": "Open windows and doors"
},
"house_lights_on": {
"name": "Lights on"
}
}
}
}
@@ -0,0 +1,76 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Añade una página en la barra lateral donde dibujas tu casa y la ves en 3D."
}
},
"abort": {
"single_instance_allowed": "NextFloor ya está configurado."
}
},
"services": {
"announce": {
"name": "Anuncio",
"description": "Dice un mensaje en habitaciones del plano, cada una por su propio altavoz, y lo muestra y dice en cada pantalla de NextFloor abierta.",
"fields": {
"message": {
"name": "Mensaje",
"description": "Lo que se dice."
},
"rooms": {
"name": "Habitaciones",
"description": "Habitaciones por nombre, id de habitación o id de área. Vacío: cada habitación con altavoz (las que están en su hora de silencio quedan fuera)."
},
"floor": {
"name": "Planta",
"description": "Solo las habitaciones de esta planta (nombre o id)."
},
"on_speakers": {
"name": "En los altavoces",
"description": "Hablar en las habitaciones."
},
"on_screens": {
"name": "En las pantallas",
"description": "Mostrar y decir en las pantallas de NextFloor abiertas."
},
"screens": {
"name": "Solo estas pantallas",
"description": "Nombres de pantallas de NextFloor (fijados en cada pantalla). Vacío: todas."
},
"tts_entity": {
"name": "Texto a voz",
"description": "En lugar del elegido en el plano, o el primero."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "Ninguna habitación del plano coincide con las indicadas."
},
"no_tts": {
"message": "Ningún altavoz pudo decirlo: configura una entidad de texto a voz en Home Assistant."
},
"not_loaded": {
"message": "NextFloor no está configurado."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}: ventanas y puertas abiertas"
},
"floor_lights_on": {
"name": "{floor}: luces encendidas"
},
"house_open": {
"name": "Ventanas y puertas abiertas"
},
"house_lights_on": {
"name": "Luces encendidas"
}
}
}
}
@@ -0,0 +1,76 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Ajoute une page dans la barre latérale pour dessiner votre maison et la voir en 3D."
}
},
"abort": {
"single_instance_allowed": "NextFloor est déjà configuré."
}
},
"services": {
"announce": {
"name": "Annonce",
"description": "Prononce un message dans des pièces du plan, chacune par son propre haut-parleur, et l'affiche et le prononce sur chaque écran NextFloor ouvert.",
"fields": {
"message": {
"name": "Message",
"description": "Ce qui est dit."
},
"rooms": {
"name": "Pièces",
"description": "Pièces par nom, id de pièce ou id de zone. Vide : chaque pièce avec un haut-parleur (les pièces en heure calme sont exclues)."
},
"floor": {
"name": "Étage",
"description": "Seulement les pièces de cet étage (nom ou id)."
},
"on_speakers": {
"name": "Sur les haut-parleurs",
"description": "Parler dans les pièces."
},
"on_screens": {
"name": "Sur les écrans",
"description": "Afficher et prononcer sur les écrans NextFloor ouverts."
},
"screens": {
"name": "Seulement ces écrans",
"description": "Noms d'écrans NextFloor (définis sur chaque écran). Vide : tous les écrans."
},
"tts_entity": {
"name": "Synthèse vocale",
"description": "Au lieu de celle choisie dans le plan, ou de la première."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "Aucune pièce du plan ne correspond aux pièces indiquées."
},
"no_tts": {
"message": "Aucun haut-parleur n'a pu le dire : configurez une entité de synthèse vocale dans Home Assistant."
},
"not_loaded": {
"message": "NextFloor n'est pas configuré."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor} : fenêtres et portes ouvertes"
},
"floor_lights_on": {
"name": "{floor} : lumières allumées"
},
"house_open": {
"name": "Fenêtres et portes ouvertes"
},
"house_lights_on": {
"name": "Lumières allumées"
}
}
}
}
@@ -0,0 +1,76 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Aggiunge una pagina nella barra laterale dove disegni la tua casa e la vedi in 3D."
}
},
"abort": {
"single_instance_allowed": "NextFloor è già configurato."
}
},
"services": {
"announce": {
"name": "Annuncio",
"description": "Pronuncia un messaggio nelle stanze del piano, ognuna con il proprio altoparlante, e lo mostra e pronuncia su ogni schermo NextFloor aperto.",
"fields": {
"message": {
"name": "Messaggio",
"description": "Ciò che viene detto."
},
"rooms": {
"name": "Stanze",
"description": "Stanze per nome, id della stanza o id dell'area. Vuoto: ogni stanza con un altoparlante (quelle nell'ora di silenzio restano escluse)."
},
"floor": {
"name": "Piano",
"description": "Solo le stanze di questo piano (nome o id)."
},
"on_speakers": {
"name": "Sugli altoparlanti",
"description": "Parlare nelle stanze."
},
"on_screens": {
"name": "Sugli schermi",
"description": "Mostrare e pronunciare sugli schermi NextFloor aperti."
},
"screens": {
"name": "Solo questi schermi",
"description": "Nomi di schermi NextFloor (impostati su ogni schermo). Vuoto: tutti."
},
"tts_entity": {
"name": "Sintesi vocale",
"description": "Invece di quella scelta nel piano, o della prima."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "Nessuna stanza del piano corrisponde a quelle indicate."
},
"no_tts": {
"message": "Nessun altoparlante ha potuto dirlo: configura un'entità di sintesi vocale in Home Assistant."
},
"not_loaded": {
"message": "NextFloor non è configurato."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}: finestre e porte aperte"
},
"floor_lights_on": {
"name": "{floor}: luci accese"
},
"house_open": {
"name": "Finestre e porte aperte"
},
"house_lights_on": {
"name": "Luci accese"
}
}
}
}
@@ -0,0 +1,76 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Voegt een pagina in de zijbalk toe waar je je huis tekent en in 3D ziet."
}
},
"abort": {
"single_instance_allowed": "NextFloor is al ingesteld."
}
},
"services": {
"announce": {
"name": "Omroep",
"description": "Spreekt een bericht uit in kamers van het plan, elk via de eigen luidspreker, en toont en spreekt het op elk open NextFloor-scherm.",
"fields": {
"message": {
"name": "Bericht",
"description": "Wat er gezegd wordt."
},
"rooms": {
"name": "Kamers",
"description": "Kamers op naam, kamer-id of ruimte-id. Leeg: elke kamer met een luidspreker (kamers in hun stille tijd blijven buiten)."
},
"floor": {
"name": "Verdieping",
"description": "Alleen de kamers van deze verdieping (naam of id)."
},
"on_speakers": {
"name": "Op de luidsprekers",
"description": "In de kamers spreken."
},
"on_screens": {
"name": "Op de schermen",
"description": "Tonen en uitspreken op de open NextFloor-schermen."
},
"screens": {
"name": "Alleen deze schermen",
"description": "Namen van NextFloor-schermen (op elk scherm ingesteld). Leeg: alle schermen."
},
"tts_entity": {
"name": "Tekst-naar-spraak",
"description": "In plaats van die in het plan, of de eerste."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "Geen kamer van het plan past bij de opgegeven kamers."
},
"no_tts": {
"message": "Geen luidspreker kon het zeggen: stel een tekst-naar-spraak-entiteit in Home Assistant in."
},
"not_loaded": {
"message": "NextFloor is niet ingesteld."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}: open ramen en deuren"
},
"floor_lights_on": {
"name": "{floor}: lampen aan"
},
"house_open": {
"name": "Open ramen en deuren"
},
"house_lights_on": {
"name": "Lampen aan"
}
}
}
}
@@ -0,0 +1,76 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Dodaje stronę na pasku bocznym, na której rysujesz swój dom i widzisz go w 3D."
}
},
"abort": {
"single_instance_allowed": "NextFloor jest już skonfigurowany."
}
},
"services": {
"announce": {
"name": "Komunikat",
"description": "Wypowiada wiadomość w pomieszczeniach planu, każdym przez jego własny głośnik, i pokazuje ją oraz wypowiada na każdym otwartym ekranie NextFloor.",
"fields": {
"message": {
"name": "Wiadomość",
"description": "Co zostanie powiedziane."
},
"rooms": {
"name": "Pomieszczenia",
"description": "Pomieszczenia po nazwie, id pomieszczenia lub id obszaru. Puste: każde pomieszczenie z głośnikiem (te w czasie ciszy są pomijane)."
},
"floor": {
"name": "Piętro",
"description": "Tylko pomieszczenia tego piętra (nazwa lub id)."
},
"on_speakers": {
"name": "Na głośnikach",
"description": "Mówić w pomieszczeniach."
},
"on_screens": {
"name": "Na ekranach",
"description": "Pokazać i wypowiedzieć na otwartych ekranach NextFloor."
},
"screens": {
"name": "Tylko te ekrany",
"description": "Nazwy ekranów NextFloor (ustawione na każdym ekranie). Puste: wszystkie."
},
"tts_entity": {
"name": "Zamiana tekstu na mowę",
"description": "Zamiast wybranej w planie lub pierwszej."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "Żadne pomieszczenie planu nie pasuje do podanych."
},
"no_tts": {
"message": "Żaden głośnik nie mógł tego powiedzieć: skonfiguruj w Home Assistant encję zamiany tekstu na mowę."
},
"not_loaded": {
"message": "NextFloor nie jest skonfigurowany."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}: otwarte okna i drzwi"
},
"floor_lights_on": {
"name": "{floor}: włączone światła"
},
"house_open": {
"name": "Otwarte okna i drzwi"
},
"house_lights_on": {
"name": "Włączone światła"
}
}
}
}
@@ -0,0 +1,76 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Adiciona uma página na barra lateral onde desenha a sua casa e a vê em 3D."
}
},
"abort": {
"single_instance_allowed": "O NextFloor já está configurado."
}
},
"services": {
"announce": {
"name": "Anúncio",
"description": "Diz uma mensagem em divisões do plano, cada uma pelo seu próprio altifalante, e mostra-a e di-la em cada ecrã NextFloor aberto.",
"fields": {
"message": {
"name": "Mensagem",
"description": "O que é dito."
},
"rooms": {
"name": "Divisões",
"description": "Divisões por nome, id da divisão ou id da área. Vazio: cada divisão com altifalante (as que estão no período de silêncio ficam de fora)."
},
"floor": {
"name": "Piso",
"description": "Só as divisões deste piso (nome ou id)."
},
"on_speakers": {
"name": "Nos altifalantes",
"description": "Falar nas divisões."
},
"on_screens": {
"name": "Nos ecrãs",
"description": "Mostrar e dizer nos ecrãs NextFloor abertos."
},
"screens": {
"name": "Só estes ecrãs",
"description": "Nomes de ecrãs NextFloor (definidos em cada ecrã). Vazio: todos."
},
"tts_entity": {
"name": "Texto para voz",
"description": "Em vez do escolhido no plano, ou do primeiro."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "Nenhuma divisão do plano corresponde às indicadas."
},
"no_tts": {
"message": "Nenhum altifalante o conseguiu dizer: configure uma entidade de texto para voz no Home Assistant."
},
"not_loaded": {
"message": "O NextFloor não está configurado."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}: janelas e portas abertas"
},
"floor_lights_on": {
"name": "{floor}: luzes acesas"
},
"house_open": {
"name": "Janelas e portas abertas"
},
"house_lights_on": {
"name": "Luzes acesas"
}
}
}
}
@@ -0,0 +1,76 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "Lägger till en sida i sidofältet där du ritar ditt hem och ser det i 3D."
}
},
"abort": {
"single_instance_allowed": "NextFloor är redan konfigurerat."
}
},
"services": {
"announce": {
"name": "Utrop",
"description": "Säger ett meddelande i rum i planen, vart och ett genom sin egen högtalare, och visar och säger det på varje öppen NextFloor-skärm.",
"fields": {
"message": {
"name": "Meddelande",
"description": "Det som sägs."
},
"rooms": {
"name": "Rum",
"description": "Rum efter namn, rum-id eller område-id. Tomt: varje rum med högtalare (rum under sin tysta tid utesluts)."
},
"floor": {
"name": "Våning",
"description": "Bara rummen på denna våning (namn eller id)."
},
"on_speakers": {
"name": "I högtalarna",
"description": "Tala i rummen."
},
"on_screens": {
"name": "På skärmarna",
"description": "Visa och säga på de öppna NextFloor-skärmarna."
},
"screens": {
"name": "Bara dessa skärmar",
"description": "Namn på NextFloor-skärmar (satta på varje skärm). Tomt: alla."
},
"tts_entity": {
"name": "Text till tal",
"description": "I stället för den valda i planen, eller den första."
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "Inget rum i planen matchar de angivna."
},
"no_tts": {
"message": "Ingen högtalare kunde säga det: lägg till en text-till-tal-entitet i Home Assistant."
},
"not_loaded": {
"message": "NextFloor är inte konfigurerat."
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}: öppna fönster och dörrar"
},
"floor_lights_on": {
"name": "{floor}: tända lampor"
},
"house_open": {
"name": "Öppna fönster och dörrar"
},
"house_lights_on": {
"name": "Tända lampor"
}
}
}
}
@@ -0,0 +1,76 @@
{
"config": {
"step": {
"user": {
"title": "NextFloor",
"description": "添加一个侧边栏页面,在里面绘制你的家,并以 3D 查看。"
}
},
"abort": {
"single_instance_allowed": "NextFloor 已经配置好了。"
}
},
"services": {
"announce": {
"name": "播报",
"description": "在平面图的房间里播报消息,每个房间通过自己的音箱,并在每个打开的 NextFloor 屏幕上显示并朗读。",
"fields": {
"message": {
"name": "消息",
"description": "要说的话。"
},
"rooms": {
"name": "房间",
"description": "按房间名、房间 id 或区域 id 指定。留空:所有带音箱的房间(处于静音时段的房间会被跳过)。"
},
"floor": {
"name": "楼层",
"description": "只播报到这一层的房间(名称或 id)。"
},
"on_speakers": {
"name": "在音箱上",
"description": "在房间里说出来。"
},
"on_screens": {
"name": "在屏幕上",
"description": "在打开的 NextFloor 屏幕上显示并朗读。"
},
"screens": {
"name": "仅这些屏幕",
"description": "NextFloor 屏幕的名称(在每个屏幕上设置)。留空:所有屏幕。"
},
"tts_entity": {
"name": "文字转语音",
"description": "代替平面图里选定的那个,或第一个。"
}
}
}
},
"exceptions": {
"no_rooms": {
"message": "平面图里没有房间与给定的房间匹配。"
},
"no_tts": {
"message": "没有音箱能播报:请在 Home Assistant 里配置一个文字转语音实体。"
},
"not_loaded": {
"message": "NextFloor 尚未配置。"
}
},
"entity": {
"sensor": {
"floor_open": {
"name": "{floor}:开着的门窗"
},
"floor_lights_on": {
"name": "{floor}:开着的灯"
},
"house_open": {
"name": "开着的门窗"
},
"house_lights_on": {
"name": "开着的灯"
}
}
}
}
+391
View File
@@ -0,0 +1,391 @@
"""Websocket commands used by the panel, the card and the editor."""
from __future__ import annotations
import time
from typing import Any
from homeassistant.components import websocket_api
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.loader import async_get_integration
import voluptuous as vol
from . import ble
from .const import DOMAIN, SIGNAL_ANNOUNCE, SIGNAL_BUILDING_UPDATED
from .packs import MAX_PACK_SIZE, PackError, parse_pack, validate_payload
from .schema import BUILDING_SCHEMA, IMAGE_DATA
from .storage import NextFloorData, complete
_IMAGE_ID = vol.All(str, vol.Length(min=1, max=64), vol.Match(r"^[A-Za-z0-9_\-.]+$"))
@callback
def async_register_commands(hass: HomeAssistant) -> None:
"""Register all websocket commands."""
for command in (
ws_get_building,
ws_save_building,
ws_subscribe_building,
ws_subscribe_announcements,
ws_get_image,
ws_set_image,
ws_delete_image,
ws_history_list,
ws_history_snapshot,
ws_history_restore,
ws_history_get,
ws_history_delete,
ws_packs_list,
ws_packs_import,
ws_packs_remove,
ws_backup_export,
ws_backup_import,
ws_ble_devices,
ws_ble_scan,
):
websocket_api.async_register_command(hass, command)
def _data(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict) -> NextFloorData | None:
data: NextFloorData | None = hass.data.get(DOMAIN)
if data is None:
connection.send_error(msg["id"], "not_loaded", "NextFloor is not set up")
return data
@websocket_api.websocket_command({vol.Required("type"): "nextfloor/building/get"})
@websocket_api.async_response
async def ws_get_building(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""Return the building, its revision and the running integration version.
The frontend compares the version with its own: after an update the new frontend files are served
at once, but the backend (and its validation) only changes with a restart.
"""
if (data := _data(hass, connection, msg)) is None:
return
integration = await async_get_integration(hass, DOMAIN)
connection.send_result(
msg["id"], {"building": data.building, "revision": data.revision, "version": str(integration.version)}
)
@websocket_api.websocket_command(
{
vol.Required("type"): "nextfloor/building/save",
vol.Required("building"): BUILDING_SCHEMA,
}
)
@websocket_api.require_admin
@websocket_api.async_response
async def ws_save_building(
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]
) -> None:
"""Replace the building."""
if (data := _data(hass, connection, msg)) is None:
return
revision = await data.async_save_building(msg["building"])
connection.send_result(msg["id"], {"revision": revision})
@websocket_api.websocket_command({vol.Required("type"): "nextfloor/building/subscribe"})
@callback
def ws_subscribe_building(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""Send the new revision whenever the building changes."""
@callback
def forward(revision: int) -> None:
connection.send_message(websocket_api.event_message(msg["id"], {"revision": revision}))
connection.subscriptions[msg["id"]] = async_dispatcher_connect(hass, SIGNAL_BUILDING_UPDATED, forward)
connection.send_result(msg["id"])
@websocket_api.websocket_command({vol.Required("type"): "nextfloor/announcements/subscribe"})
@callback
def ws_subscribe_announcements(
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]
) -> None:
"""Send every announcement to the screen (any user: wall tablets often sign in as one without admin rights)."""
@callback
def forward(payload: dict[str, Any]) -> None:
connection.send_message(websocket_api.event_message(msg["id"], payload))
connection.subscriptions[msg["id"]] = async_dispatcher_connect(hass, SIGNAL_ANNOUNCE, forward)
connection.send_result(msg["id"])
@websocket_api.websocket_command({vol.Required("type"): "nextfloor/image/get", vol.Required("image_id"): _IMAGE_ID})
@callback
def ws_get_image(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""Return a background image as data URL."""
if (data := _data(hass, connection, msg)) is None:
return
image = data.get_image(msg["image_id"])
if image is None:
connection.send_error(msg["id"], "not_found", "Image not found")
return
connection.send_result(msg["id"], {"data": image})
@websocket_api.websocket_command(
{
vol.Required("type"): "nextfloor/image/set",
vol.Required("image_id"): _IMAGE_ID,
vol.Required("data"): IMAGE_DATA,
}
)
@websocket_api.require_admin
@websocket_api.async_response
async def ws_set_image(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""Store a background image."""
if (data := _data(hass, connection, msg)) is None:
return
await data.async_set_image(msg["image_id"], msg["data"])
connection.send_result(msg["id"])
@websocket_api.websocket_command({vol.Required("type"): "nextfloor/image/delete", vol.Required("image_id"): _IMAGE_ID})
@websocket_api.require_admin
@websocket_api.async_response
async def ws_delete_image(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""Remove a background image."""
if (data := _data(hass, connection, msg)) is None:
return
await data.async_delete_image(msg["image_id"])
connection.send_result(msg["id"])
@websocket_api.websocket_command({vol.Required("type"): "nextfloor/history/list"})
@websocket_api.require_admin
@callback
def ws_history_list(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""List the restore points (newest first)."""
if (data := _data(hass, connection, msg)) is None:
return
connection.send_result(msg["id"], {"snapshots": data.history()})
@websocket_api.websocket_command(
{
vol.Required("type"): "nextfloor/history/snapshot",
vol.Optional("name"): vol.All(str, vol.Strip, vol.Length(max=60)),
}
)
@websocket_api.require_admin
@websocket_api.async_response
async def ws_history_snapshot(
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]
) -> None:
"""Keep the current building as a restore point (e.g. before an import), or as a named version."""
if (data := _data(hass, connection, msg)) is None:
return
snapshot_id = await data.async_snapshot(msg.get("name") or None)
connection.send_result(msg["id"], {"id": snapshot_id})
@websocket_api.websocket_command(
{vol.Required("type"): "nextfloor/history/get", vol.Required("snapshot_id"): _IMAGE_ID}
)
@websocket_api.require_admin
@callback
def ws_history_get(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""The building of a restore point, to compare it with the plan."""
if (data := _data(hass, connection, msg)) is None:
return
building = data.snapshot(msg["snapshot_id"])
if building is None:
connection.send_error(msg["id"], "not_found", "Restore point not found")
return
connection.send_result(msg["id"], {"building": complete(building)})
@websocket_api.websocket_command(
{vol.Required("type"): "nextfloor/history/delete", vol.Required("snapshot_id"): _IMAGE_ID}
)
@websocket_api.require_admin
@websocket_api.async_response
async def ws_history_delete(
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]
) -> None:
"""Remove a restore point (a version that is no longer needed)."""
if (data := _data(hass, connection, msg)) is None:
return
if not await data.async_delete_snapshot(msg["snapshot_id"]):
connection.send_error(msg["id"], "not_found", "Restore point not found")
return
connection.send_result(msg["id"])
@websocket_api.websocket_command(
{vol.Required("type"): "nextfloor/history/restore", vol.Required("snapshot_id"): _IMAGE_ID}
)
@websocket_api.require_admin
@websocket_api.async_response
async def ws_history_restore(
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]
) -> None:
"""Go back to a restore point; the current state becomes a restore point itself."""
if (data := _data(hass, connection, msg)) is None:
return
building = data.snapshot(msg["snapshot_id"])
if building is None:
connection.send_error(msg["id"], "not_found", "Restore point not found")
return
await data.async_snapshot()
revision = await data.async_save_building(complete(building))
connection.send_result(msg["id"], {"revision": revision})
@websocket_api.websocket_command({vol.Required("type"): "nextfloor/packs/list"})
@callback
def ws_packs_list(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""Return the built-in and the imported furniture packs (every user needs them to see the furniture)."""
if (data := _data(hass, connection, msg)) is None:
return
connection.send_result(msg["id"], {"packs": data.all_packs})
@websocket_api.websocket_command(
{
vol.Required("type"): "nextfloor/packs/import",
vol.Required("pack"): vol.All(str, vol.Length(max=MAX_PACK_SIZE)),
}
)
@websocket_api.require_admin
@websocket_api.async_response
async def ws_packs_import(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""Check a pack file's content, then keep it."""
if (data := _data(hass, connection, msg)) is None:
return
try:
payload = parse_pack(msg["pack"])
except PackError as err:
connection.send_error(msg["id"], err.code, err.detail or err.code)
return
if any(p["id"] == payload["id"] for p in data.builtin_packs):
connection.send_error(msg["id"], "builtin", "a pack that comes with NextFloor has this id")
return
await data.async_add_pack(payload)
connection.send_result(
msg["id"],
{
"id": payload["id"],
"name": payload["name"],
"publisher": payload["publisher"],
"items": len(payload["items"]),
},
)
@websocket_api.websocket_command(
{vol.Required("type"): "nextfloor/packs/remove", vol.Required("pack_id"): vol.All(str, vol.Length(max=64))}
)
@websocket_api.require_admin
@websocket_api.async_response
async def ws_packs_remove(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""Remove an imported pack."""
if (data := _data(hass, connection, msg)) is None:
return
if not await data.async_remove_pack(msg["pack_id"]):
connection.send_error(msg["id"], "not_found", "Pack not found")
return
connection.send_result(msg["id"])
# ---------------------------------------------------------------------------- backup
BACKUP_FORMAT = "nextfloor-backup"
@websocket_api.websocket_command({vol.Required("type"): "nextfloor/backup/export"})
@websocket_api.require_admin
@callback
def ws_backup_export(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""The plan and the packs for a backup file (the frontend adds the images one by one)."""
if (data := _data(hass, connection, msg)) is None:
return
connection.send_result(
msg["id"], {"format": BACKUP_FORMAT, "version": 1, "building": data.building, "packs": data.packs}
)
@websocket_api.websocket_command(
{
vol.Required("type"): "nextfloor/backup/import",
vol.Required("building"): dict,
vol.Optional("packs", default=[]): [dict],
}
)
@websocket_api.require_admin
@websocket_api.async_response
async def ws_backup_import(
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]
) -> None:
"""Replace the plan and the imported packs from a backup. Packs are checked again; ones that do not
pass (or that come with NextFloor anyway) are reported as skipped. The state before becomes a restore point."""
if (data := _data(hass, connection, msg)) is None:
return
try:
building = BUILDING_SCHEMA(msg["building"])
except vol.Invalid as err:
connection.send_error(msg["id"], "invalid_format", str(err))
return
builtin = {p["id"] for p in data.builtin_packs}
packs: list[dict[str, Any]] = []
skipped: list[dict[str, str]] = []
for entry in msg["packs"]:
name = str(entry.get("id") or "?")
if name in builtin:
continue
# backups of older versions kept the pack as signed ("source"); the content is the same
content = entry.get("source") if isinstance(entry.get("source"), dict) else entry
content = {k: v for k, v in content.items() if k not in ("imported_at", "source", "builtin")}
try:
clean = validate_payload(content)
except PackError as err:
skipped.append({"id": name, "reason": err.code})
continue
packs.append({**clean, "imported_at": time.time()})
revision = await data.async_restore(complete(building), packs)
connection.send_result(
msg["id"],
{
"revision": revision,
"building": data.building,
"packs": len(packs),
"skipped": skipped,
},
)
@websocket_api.websocket_command({vol.Required("type"): "nextfloor/ble/devices"})
@websocket_api.require_admin
@callback
def ws_ble_devices(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""The Bluetooth scanners Home Assistant has and the devices they hear, for choosing a tag in the editor."""
connection.send_result(msg["id"], ble.discovered(hass))
@websocket_api.websocket_command(
{
vol.Required("type"): "nextfloor/ble/scan",
vol.Exclusive("address", "tag"): vol.All(str, vol.Match(r"^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$")),
vol.Exclusive("entity", "tag"): vol.All(str, vol.Match(r"^device_tracker\.[a-z0-9_]+$")),
}
)
@websocket_api.require_admin
@callback
def ws_ble_scan(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None:
"""What every scanner hears of a tag right now (the editor polls this while you walk through a room)."""
address = ble.tag_address(hass, msg)
readings = ble.scanner_readings(hass, address) if address else {}
connection.send_result(
msg["id"],
{
"address": address,
"available": ble.available(hass),
"readings": {src: {"name": name, "rssi": rssi} for src, (name, rssi) in readings.items()},
},
)