# ๐ House Plan โ an interactive house plan for Home Assistant **A live map of your home right inside Home Assistant: floors, rooms and devices on a real floor plan โ with live states, temperature and signal strength. Everything is configured with the mouse, without a single line of YAML.**  ๐ท๐บ [ะะพะบัะผะตะฝัะฐัะธั ะฝะฐ ััััะบะพะผ](README.ru.md) --- ## What it is and why House Plan shows your smart home the way it actually looks โ on a floor plan. Instead of long lists of entities, you see rooms and devices in their real places: where the leak is, what the temperature is in the kids' room, whether the light is on in the hallway, whether the gate is open. This is convenient when: - you have many devices and lists are awkward to use; - you need to grasp the state of the house "at a glance"; - you want to give access to family members โ anyone can figure out a picture; - you want a beautiful overview screen for a wall-mounted tablet. The integration consists of two parts that are installed together: - **the Lovelace card** `houseplan-card` โ the interactive plan itself; - **the server-side component** โ stores the room markup and icon positions in Home Assistant, so the plan is identical in all browsers and on all devices. --- ## How it differs from alternatives A house plan in Home Assistant is usually built with `picture-elements`, `ha-floorplan` and similar solutions. There you have to write YAML by hand, calculate the coordinates of every icon, and edit the config again after every change. House Plan works differently: | | House Plan | Typical solutions (picture-elements / ha-floorplan) | |---|---|---| | **Setup** | Entirely through the UI, with the mouse | Manual YAML and code editing | | **Adding devices** | Automatic, by room | You type in every entity by hand | | **Icon coordinates** | Drag with the mouse | You count pixels and write them into the config | | **Room markup** | Built-in outline editor | You draw in an external SVG editor | | **Storage** | On the HA server (shared by all devices) | In the dashboard YAML | | **Zoom** | Smooth zoom, everything stays crisp (vector) | Usually a fixed image | Key advantages in short: - **No code at all.** Everything โ spaces, rooms, devices โ is configured with clicks. - **Automatic device placement.** Outline a room and bind it to a Home Assistant area โ the devices of that area appear on the plan by themselves. - **Manual additions of your own.** Any device, group or even a "virtual" point can be placed on the plan manually, with a name, icon, model, link and an attached PDF manual. - **Live states.** Temperature, Zigbee signal strength, on/off, open/closed โ everything updates in real time. - **Crisp zoom.** Zooming in does not "blur" the picture: the plan, labels and icons remain vector-sharp at any scale. --- ## Installation ### Via HACS (recommended) 1. Open **HACS โ menu (โฎ) โ Custom repositories**. 2. Paste the URL of this repository, set the category to **Integration**, and click **Add**. 3. Find **House Plan** in the list, install it and **restart Home Assistant**. 4. Go to **Settings โ Devices & Services โ Add integration** and select **House Plan**. The card is registered automatically โ no need to add a Lovelace resource manually. ### Manually 1. Copy the `custom_components/houseplan` folder into the `config/custom_components` directory of your Home Assistant. 2. Restart Home Assistant. 3. Add the integration: **Settings โ Devices & Services โ Add integration โ House Plan**. ### Adding a plan screen Create a new dashboard tab (a "Panel" view works best) and add the card: ```yaml type: custom:houseplan-card title: House plan ``` Nothing else needs to be specified โ everything else is configured right on the screen. --- ## How to use ### Step 1. Add a space (floor) On first open the plan is still empty โ House Plan immediately offers to create the first space. If your Home Assistant already has **floors** configured, a wizard offers to create a space for each floor (names prefilled, a plan image is asked for one by one; any floor can be skipped).  In the dialog, set a **name** (for example, "1st floor") and **upload a background** โ a floor-plan image in SVG, PNG or JPG format. Both fields are required: without a plan the "Save" button stays disabled.  > ๐ก You can draw the background in any floor planner (for example, REMPLANNER) or photograph a paper plan. SVG works best โ it stays crisp when zoomed in. Later you can add as many spaces as you like (floors, yard, garage) with the **๏ผ** button next to the tabs. ### Step 2. Outline the rooms After the first space is added, the card switches to markup mode by itself. Click grid points, connecting them with lines, and close the room outline by clicking the first point. As soon as the outline is closed, the room-save dialog appears. Here you need to **bind the room to a Home Assistant area** โ this is exactly what enables the automation. For utility rooms with no devices (hall, sauna) there is a **"No area"** button.  ### Step 3. Devices appear by themselves As soon as you save a room bound to an area, **the devices of that area are automatically laid out inside the outline**. These are the same devices shown on the **Settings โ Devices โ (filtered by the room)** page โ only the meaningful ones, without service records, bridges and duplicates. By default only meaningful devices make it onto the plan โ service records, bridges and duplicates are filtered out. If you need to see **absolutely all** devices of the area, enable the **๐ "Show all devices"** button in the header. From here on you can just use the plan: clicking an icon opens the device card with the model, link and a button to jump into Home Assistant.  ### Step 4. Zoom The mouse wheel or the **๏ผ / โน / ๏ผ** buttons zoom the plan in and out; on a touch screen the two-finger pinch works. Zoomed out you see the whole plan, zoomed in you see the details, and everything stays crisp. The zoom level is remembered separately for each space.  ### Step 5. Put the icons in their places Device icons can be **dragged with the mouse at any time** โ no separate "edit mode" needs to be enabled. Positions are saved on the server and are identical in all browsers and devices. The **โบ** button in the header restores the automatic layout.  ### Tap actions: control devices from the plan By default a tap on an icon opens its info card. In the card settings you can switch **Tap on a device** to *Toggle* โ a tap then switches lights, sockets, fans and humidifiers directly on the plan (wall-tablet style). For safety, a card-wide toggle never affects locks, alarms, covers or valves; you can consciously enable toggle for a specific device (except locks and alarms โ those never toggle from the plan) in its edit dialog. A **long press** always opens the info card. ### Icon rules Which MDI icon a device gets is decided by **icon rules** โ editable right in the card (the โฌก button in the header): an ordered list of โname pattern โ iconโ regexes with a live test field, bilingual defaults (EN/RU) and a one-click reset. When no rule matches, the entity *device class* decides (thermometer for temperature sensors, etc.). ### Step 6. Adding your own devices manually Not everything has to be left to the automation. With the **๏ผ** button in the header you can place any device, group or a **virtual point** on the plan (for example, an "Inlet valve" that does not exist as a device). Set a name, icon, model, link, description and, if you wish, attach a **PDF manual**.  --- ## Uninstalling 1. Remove the card (or the tab with the plan) from the dashboard. 2. **Settings โ Devices & Services โ House Plan โ Delete** the integration entry. 3. Remove the integration from **HACS** (or delete the `custom_components/houseplan` folder if installed manually) and restart Home Assistant. 4. Optionally delete the saved plan data: the `config/houseplan/` files (backgrounds and attachments) and the `houseplan.config` / `houseplan.layout` entries in the `config/.storage` directory. --- ## Frequently asked questions **Do I need to write anything in YAML?** No. The only line is adding the card to the dashboard; everything else is done with the mouse. **My devices did not appear on the plan.** A device appears only if its Home Assistant area is bound to a drawn room. Check that the device has a room assigned (Settings โ Devices) and that the room is outlined and bound to that area. If the device exists but is hidden by curation (bridges, service records, duplicates) โ enable the **๐ "Show all devices"** button in the header. **Can I hide an unwanted device or rename it?** Yes โ click the device on the plan and press "Edit" in its card: there you can change the name, icon, model or hide the icon. **Is the data stored in the cloud?** No. Everything is stored locally in your Home Assistant. ---
Screenshots were taken on a real Home Assistant configuration.