Skip to content
项目

关于

Home Assistant 交互式平面图卡片,配有可视化拖放编辑器,可编辑墙壁、门、家具、文本和设备控件。

其他项目

这些数字如何统计

可以做什么

  • Visual editor — draw walls, doors, windows and furniture, or trace an existing plan.
  • Lighting — light from your lamps, day/night dimming, sunlight, moonlight and ambient daylight.
  • Rooms and presence — zoom into rooms, show presence and track positions.
  • 2D and 3D — the same plan flat or raised, with multipane windows and doors, roofs and a whole-house view.

实测星标增长

24小时
+2
7天
+8
15天
+18
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Easy Floorplan

hacs release license

A Home Assistant Lovelace card for building an interactive floorplan with a visual drag-and-drop editor. Draw walls, place furniture and connect your devices to see and control your home in 2D or 3D.

Buy Me A Coffee

Installation · Your first plan · Documentation

https://github.com/user-attachments/assets/ee1d5fb9-e40e-43af-a748-70698e2e455e

Features

The guides cover every feature and option.

Installation

HACS (recommended)

Distributed as a custom repository. Add it in one click:

Open Easy Floorplan in HACS

Or add it manually:

  1. In Home Assistant, open HACS.
  2. Open ⋮ → Custom repositories.
  3. Add https://github.com/nicosandller/easy-floorplan with category Dashboard (also called Plugin).
  4. Find Easy Floorplan and click Download.
  5. Hard-refresh your browser (Cmd/Ctrl-Shift-R).

HACS adds the dashboard resource automatically.

Manual

  1. Download easy-floorplan-card.js from the latest release.
  2. Copy it to <config>/www/easy-floorplan-card.js.
  3. Add a dashboard resource under Settings → Dashboards → ⋮ → Resources → Add:
    • URL: /local/easy-floorplan-card.js
    • Type: JavaScript module
  4. Hard-refresh your browser.

Create your first plan

  1. Edit your Home Assistant dashboard, select Add card, open the By card tab and choose Easy Floorplan. Its tile shows a sample room; your new card starts empty.
  2. In the visual editor, choose Wall and drag to draw each wall.
  3. Choose Door or Window and place it on a wall.
  4. Choose + Add → Device, move it into place, then select its Home Assistant entity in the Selection inspector.
  5. Save the card and leave dashboard edit mode to try the controls.

The visual editor writes the configuration for you. To start through a Manual card instead, paste this YAML and switch to the visual editor:

type: custom:easy-floorplan-card
overlayScale: plan

Use the element guide for device settings, rooms, trackers and animations. The editor guide explains saving without closing the editor and locking finished elements in place.

Documentation

Guide What it covers
Editor Applying changes and locking elements in place.
Editor workspace Drawing tools, settings tabs, zoom and phone layouts, with screenshots.
Elements and controls Devices, openings, rooms, trackers and animations, with examples.
Configuration YAML keys, defaults, coordinates and a complete example.
Lighting Device light, sun, moon, skylights, ambient daylight and clouds.
Appearance Skins, colors, line art, SVG export, 3D view, room navigation, scaling and styling.
Behaviour Actions, visibility, floor navigation and unavailable entities. Behavior → Show code editor sets YAML-only actions, such as popup-card's fire-dom-event, on one element without the whole-card YAML.
Roofs Roof styles (gable, hip, shed, flat), configuration, overhang, and editing
Outdoor 3D Stacking Multi-floor exterior elevation, ground slabs, and roof rendering.
Floor summaries Aggregated switcher badges (climate, presence, lights, openings) with sensor discovery.
Callout info-panels Spatial telemetry HUD cards with leader lines anchored to elements in 2D/3D.
Furniture symbols Creating and contributing your own symbols.
Video walkthrough A community setup guide in Italian.

See the release notes for published changes.

Development

Build commands and test guidance are in Contributing. The local Home Assistant guide explains the Docker demo, its sample plan and the development workflow.

Support

Use Issues to report bugs or request features, and Discussions to ask questions and share your setup.

License

MIT

探索相关项目

加载中…