Home lab and smart home diagrams

draw.io 06 May 2025

Share:

Over on the home lab, home networking and smart home subreddits, it has been fantastic to see diagrams of increasingly complex home computing and network setups being shared. Diagrams help home you understand the physical and logical connections between networked devices, and are useful for setting up security zones, upgrading hardware and debugging connection problems.
A home network example with many smart home components

Home lab, home hub, home network and smart home diagrams are the common terms used interchangeably to refer to a range of infrastructure diagrams. These diagrams may organise devices and components by physical location, by security and access, by cabled connections, or in another logical grouping.

Draw custom smart home shapes

Many Internet of Things (IoT) devices and services are used in smart homes. These are rapidly developed and shape libraries in technical diagramming apps can’t keep up. In draw.io, you can create your own custom shapes for these devices.

The example above uses the new Network 2025 shape library, with many custom shapes for smart devices and home appliances.

  1. Use Search Shapes to find and add multiple shapes from the draw.io libraries.
  2. Drag a selection box around all the shapes that make up your custom shape, right click and Group them together.

For example, this custom wall heater shape uses four overlapping hairpin exchanger shapes, grouped together.
Make a new custom shape by combining and group multiple shapes from the draw.io shape libraries

The custom hub shapes below combine rounded rectangles, circles, ethernet port shapes, and a delay shape as an antenna.
Make a new custom shape by combining and group multiple shapes from the draw.io shape libraries
A custom hub shape lets you:

  • label each port
  • attach connectors to the ethernet port shapes within the custom shape

More ways to create custom shapes

Edit an existing shape: Change the attachment points of the Network library’s switch shape so connectors sit more neatly on each port. The mesh and router shapes have been edited to have four fixed connection points.
Edit an existing shape's connection points to attach connectors precisely where you want them to go

Draw a freehand shape: Click on the Freehand tool in the toolbar or select Arrange > Insert > Freehand from the menu. Disable the brush checkbox before drawing so you can style the outline and fill colours of your freehand shape.
Draw a new shape freehand - deselect the Brush option to style it with outline and fill colours

Add a logo image: Drag and drop the file onto the drawing canvas.
You can import logo image files into a draw.io smart home diagram with drag and drop

Experienced users: Draw a new complex custom shape by describing its geometry and style in XML.

Create home lab zones with containers

While you can show/hide parts of your diagram with tags and layers, for home lab or smart home diagrams, container zones are more practical.

  1. Place a rectangular shape on the drawing canvas. While it is selected, click on To Back in the Arrange tab.
    Send a zone shape to the back behind the devices in that zone.
  2. Select the rectangle zone shape, expand the Properties in the Style tab of the format panel and enable the Container checkbox. Ensure the Collapsible checkbox is not enabled to always keep it expanded.
    Turn a shape into a non-collapsible container by editing the shape Properties in the Style tab
  3. Drag the devices that belong in that zone over the rectangle and drop them when its outline is purple in light mode, or green in dark mode.
    Drag and drop device shapes into the zone container shape

Now you can move and resize the container and its devices inside will move and resize with it.

Use placeholders for smart IP labels

You can use a shape property on the container zone that assigns a subnet address, then use a placeholder in the device label. When you move a device from one zone to another, its label will automatically update.

  1. Right click on the container shape and select Edit Shape.
  2. Enter the name of a shape property and click Add Property and enable the Placeholders checkbox.
    Add a shape property to a container shape and enable the placeholders checkbox to turn it into a variable that can be displayed by other shapes inside the parent container shape
  3. Enter a value for the shape property (in this case, the subnet address) and click Apply.
    Add a value for the shape property so it can be displayed in its child shapes' labels
  4. For each shape in the zone, right click and select Edit Shape, enable the Placeholders checkbox and click Apply.
  5. Click on a shape and type the container zone’s property name surrounded by percentage characters (%) in the label to add the placeholder. You can add other text before or after the placeholder. In this example the label is written as %subnet%.4 which will display as 192.168.1.4.
    Enter the name of the container shape's property in the label surrounded by percentage characters

Tip: Change the container’s property and the labels of all its devices will update automatically.

Learn more about placeholders in draw.io

Home lab and smart home diagrams help you stay on top of your growing Internet of Things and home network
Open this example in draw.io

Rack diagrams for complex smart homes

Rack diagrams, just like their physical counterparts, hold servers, switches and other components neatly together.

  1. Click on More Shapes and enable the Rack shape library.
    Enable the rack library in draw.io
  2. Add one of the rack container shapes to your diagram.
    Add a rack shape to your diagram
  3. Drop each element of your rack just under the one above and it will fall into position.
    Drop rack elements into your diagram for neater home hub servers

Open this rack diagram example in draw.io

Save your custom shape library

  1. Drag each of your custom shapes from the drawing canvas onto the Scratchpad.
  2. Edit the Scratchpad (click on the pen icon). Name each custom shape if you want to.
  3. Export and save your custom shape library to an .xml file.
    Export your custom home lab shape library from the Scratchpad

Learn more about working with custom shape libraries

Follow us on GitHub, Twitter, Facebook.

Share: