Skip to content
All articles

Smart Domotik, part 4: Inside the automation cabinet

The browser is the part of Smart Domotik I use every day. This time I want to show what’s behind it. The controller handles the inputs and outputs in the cabinet. The interface and reporting run on separate machines in the rack beside it.

The relays and the controller

I brought the lighting relay connections to a central location. The main cabinet holds the controller and its expansion boards. The input side reads the state of the lights. The output side uses additional relays so the small relays on the expansion boards don’t have to take the load directly. I put the switching relays in a separate cabinet to reduce the number of wires running into the controller enclosure.

That gives me the behavior I wanted in part 2. Someone can use a wall button, and the controller reads back the resulting state for the browser.

Smart Domotik controller and expansion boards visible behind the cabinet cover
The controller cabinet after several revisions, with the expansion boards mounted and a clear cover held by supports I printed on my PowerWasp.

Energy monitoring and backup power

A separate Arduino reads the energy sensors. It shows readings on a display at the cabinet and sends them to the server for reports and live statistics. Another Arduino handles the alarm independently. The cabinet has its own protective devices and a backup battery, so I can isolate it for maintenance and keep the automation electronics powered through an interruption.

The server rack beside it

The boards have enough capacity to handle the physical controls. I run the web interface on redundant servers in the adjacent rack so I can expand the software independently. The servers have a separate supply and UPS units of their own.

The server rack beside the controller cabinet, showing switches and patch cables
The rack next to the controller cabinet. The web interface and reporting run here.

The cabinet has already changed several times as I’ve added components. Keeping the controller, energy monitoring and web server separate means I can extend one part without rebuilding the others.

Smart Domotik series · Part 1 — The controller and browser interface · Part 2 — Wiring and manual controls · Part 3 — Scenes · Part 4