How to Install Home Assistant on an Industrial IoT Gateway (EG5120)
Written by: Jens Zhou
|
Published on
|
Time to read 6 min
Author: Jens Zhou, Technical Support Engineer at Robustel
Jens Zhou is a Technical Support Engineer at Robustel, where he specializes in helping customers deploy and troubleshoot industrial IoT solutions. With a deep focus on edge computing and wireless connectivity, he provides expert guidance on integrating gateways, sensors, and cloud platforms to build reliable and scalable systems.
As smart homes and offices become increasingly popular, many users are seeking a more powerful, reliable, and private alternative to consumer-grade hubs.
This guide provides a step-by-step tutorial on how to install Home Assistant on a gateway, specifically using the container version on the Robustel EG5120 industrial gateway. By leveraging the EG5120's robust hardware and Debian-based OS, you can create an exceptionally efficient and stable smart control center.
This guide is perfect for developers, power users, and system integrators looking to build a professional-grade automation hub.
Introduction: Why Run Home Assistant on an Industrial Gateway?
So, you've decided to build a smart home or office using the powerful, open-source platform,Home Assistant. That's a fantastic choice. The next question is: what hardware should you run it on? While many people start with a Raspberry Pi or a small PC, I've seen countless users run into stability and performance issues as their smart home grows.
What if you could run your entire smart home on a piece of hardware designed for 24/7 reliability in the most demanding environments? That's what this guide is all about. We're going to show you how to install Home Assistant on a IoT gateway built for industrial use—the Robustel EG5120 Industrial IoT Edge Gateway. By using its powerful processor and reliable storage, you can build a smart control center that is both incredibly powerful and exceptionally stable.
Product Spotlight: The Robustel EG5120 Industrial IoT Edge Gateway
The EG5120 is the ideal hardware foundation for a high-performance Home Assistant hub. It's an industrial-grade device engineered for reliability and powerful edge computing.
Key EG5120 Specifications:
Processor:Quad-Core ARM Cortex-A53, 1.6 GHz (NXP i.MX8)
Operating System:RobustOS Pro (based on Debian 11 with Long-Term Support)
Interfaces: 2x Gigabit Ethernet (LAN/WAN), Dual SIM slots, 2x RS232/RS485 Serial Ports, Digital I/O.
Industrial Design:Rugged aluminum housing with a wide operating temperature range (-40°C to +70°C).
Its powerful processor ensures a smooth Home Assistant experience, while its industrial interfaces allow for future expansion with professional-grade sensors and equipment. For more details, visit the officialEG5120 Industrial IoT Edge Gateway product page.
What You'll Need
Before you begin, let's make sure you have everything ready. This will ensure a smooth installation process.
Hardware List:
1 x Robustel EG5120 Industrial IoT Edge Gateway
1 x Power Supply (e.g., 24V DC/2A recommended)
1 x Ethernet Cable
An active internet connection for the gateway (via Ethernet or a SIM card)
Software/Firmware Version:
The EG5120 should be runningRobustOS Pro(which is based on Debian 11).
Information Needed:
The IP address of your EG5120 on your local network (default is192.168.0.1).
Login credentials for the EG5120 (default isadmin/admin).
Knowledge Needed:
Basic familiarity with the Linux command line.
A general understanding of what Docker containers are.
Step-by-Step Installation Guide
This guide will walk you through the entire process, from initial login to having a running Home Assistant instance with extended capabilities.
Step 1: Initial Login and System Setup
First, we need to log in to the EG5120's management page and ensure it's ready for software installation.
Connect your computer to the EG5120's LAN port and open a browser to the default management address:http://192.168.0.1.
Log in with the default username (admin) and password (admin). You will be prompted to change this on your first login for security.
Ensure the device is connected to the internet. You can check the "Internet Status" on the homepage.
Navigate to System > User Management and create a new sudo user. This user will be used for installing software via the command line. Set a secure password.
Step 2: Install Docker on RobustOS Pro
Next, we'll log in via SSH and install the Docker engine, which will run our Home Assistant container.
Use an SSH tool (like Windows Terminal or PuTTY) to log in to your EG5120 with the sudo user credentials you just created.
Run the following commands to update your system's package lists and install Docker's dependencies:
Bash
Add Docker’s official GPG key to ensure the software is authentic:
Bash
Set up the Docker repository and install the Docker engine:
Bash
Verify the installation by checking the Docker service status:
Bash
You should see an "active (running)" status.
Step 3: Deploy the Home Assistant Container
Now for the exciting part! We will pull the official Home Assistant image and run it as a container.
Run the followingdocker runcommand in your SSH terminal.
Note:We are mapping a local folder/usr/local/HAconfigon the gateway to the/configdirectory inside the container. This ensures your Home Assistant configuration is safely stored on the gateway's main storage.
<!-- end list -->
Bash
The image is large, and the initial setup may take a few minutes.
You can check the running status with the command: sudo docker ps.
Step 4: Access and Configure Home Assistant
Once the container is running, open a web browser on the same network and go to:http://:8123(e.g.,http://192.168.0.1:8123).
You will be greeted by the Home Assistant onboarding screen. Create your primary user account.
Home Assistant will automatically discover many smart devices on your network. You can now begin adding your devices and building automations.
Step 5: Extend Your System with HACS (Home Assistant Community Store)
To unlock thousands of community-built integrations for nearly any smart device imaginable, you need to install HACS.
Log in to the EG5120 via SSH and navigate to your Home Assistant config directory:
Bash
Create thecustom_componentsfolder if it doesn't exist:
Bash
Download the latest HACS release from GitHub. (You may need to installwgetandunzipfirst:sudo apt install wget unzip)
Bash
Create thehacsfolder and extract the archive into it:
Bash
Go to the Home Assistant web interface, navigate toSettings > System, and clickRestart.
After restarting, go toSettings > Devices & Services > Add Integration, search for "HACS", and follow the on-screen instructions, which will require you to link HACS to yourGitHub account.
Conclusion: A Powerful and Reliable Smart Hub
Congratulations! You have successfully learned how to install Home Assistant on IoT Gateways, transforming your industrial-grade Robustel EG5120 into an exceptionally powerful and reliable smart control center. By leveraging Docker and the Debian-based RobustOS Pro, you have built a flexible, scalable, and secure foundation for all your automation projects, from smart offices to advanced home control.
Frequently Asked Questions (FAQ)
Q1: Why use an industrial gateway like the EG5120 for Home Assistant instead of a Raspberry Pi?
A1: While a Raspberry Pi is a great starting point, the EG5120 offers superior reliability with its industrial-grade components and eMMC storage (which is less prone to corruption than SD cards). Its powerful processor and ample RAM also provide better performance as your smart home grows.
Q2: How do I find the Home Assistant configuration path on my EG5120?
A2: The path is defined by the -v option in your docker run command. In our guide, we used -v /usr/local/HAconfig:/config, so your configuration path on the gateway's file system is /usr/local/HAconfig.
Q3: What should I do if the Home Assistant Docker image fails to download?
A3: First, check your gateway's internet connection using the ping google.com command in the SSH terminal. If the internet is working, the image registry may be restricted in your region. You may need to configure a proxy for Docker.