Skip to content

Home Automation


How do I run DietPi-Software and install optimised software items?

To install any of the DietPi optimised software items listed below run from the command line:


Choose Browse Software and select one or more items. Finally select Install.
DietPi will do all the necessary steps to install and start these software items.

DietPi-Software menu screenshot

To see all the DietPi configurations options, review the DietPi Tools section.

Return to the Optimised Software list

Home Assistant

Home Assistant is an open-source home automation platform running on Python 3. Track and control all devices at home and automate control. Perfect to run on a Raspberry Pi.

Home Assistant pictogram

Long installation duration

The install process on slower SBC models can take a very long time, up to 2 hours, hence take a coffee, find some other activity and check back once in a while. It will show Installing Python-3.x.x… a very long time.
If you want to see processing details, run htop on a dedicated terminal or SSH session to watch Python build process live.

After dietpi-software has finished and the service starts the first time, please go through the following steps manually:

  • Run htop and wait until the CPU usage of the homeassistant processes goes down to nearly zero.
  • Run systemctl restart home-assistant
  • Run htop and wait until the CPU usage of the homeassistant processes goes down to nearly zero.
  • Open the HA web UI (see “Access to the web interface” tab). It will again install some Python modules on first access, which can again take a little while. Always check htop if you are unsure, which reveals any currently running Python/pip module install process.

Optional usage of the Home Assistant Community Store (HACS)

The Home Assistant Community Store (HACS) provides further community driven integrations, themes, etc.
To activate it, follow this guide:

The web interface is accessible via port 8123:

URL: http://<your.IP>:8123

The configuration files are stored system-wide within:

Please see the online documentation:

Home Assistant is installed within a dedicated Python environment, powered by: pyenv/pyenv.
This places a standalone Python instance which runs completely independent from any other installed Python instance or modules. If you need to install additional Python modules into this pyenv environment, update Python itself or similar, you need to open a shell as user homeassistant and activate the pyenv environment:

sudo -u homeassistant bash
. /home/homeassistant/
pip3 install <module> # Or whichever install/update you need to do

IKEA TRÅDFRI: apt install autoconf

To view Home Assistant logs, run the following command from console:

journalctl -u home-assistant

To quickly update Home Assistant to the current version, run:


To update as well the whole pyenv Python version, reinstall Home Assistant:

dietpi-software reinstall 157

Official documentation:


Domoticz is a Home Automation System that lets you monitor and configure various devices like lights, switches, various sensors/meters like for temperature, rain, wind, UV radiation, electric fields, gas, water and much more. Notifications/Alerts can be sent to any mobile device.

Domoticz web interface screenshot

The web interface is accessible via port 8124 resp. 8424:

  • HTTP: http://<your.IP>:8124
  • HTTPS: https://<your.IP>:8424
journalctl -u domoticz

Use the following commands to control the Domoticz system service:

systemctl status domoticz
systemctl stop domoticz
systemctl start domoticz
systemctl restart domoticz



Source code: domoticz/domoticz


TasmoAdmin is an administrative website for devices flashed with Tasmota to be used for smart home systems.

Also installs:

  • Webserver (based on your preference)
  • PHP

TasmoAdmin logo


Source code: reloxx13/TasmoAdmin
Credits: Implemented by @svh1985

Return to the Optimised Software list