How to Install Home Assistant on IoT Gateways
by Dusun IoT in Circuits > Electronics
6 Views, 0 Favorites, 0 Comments
How to Install Home Assistant on IoT Gateways
This post describes how to connect the IoT gateway to your host computer and network, and how to install Home Assistant application on IoT Gateway. Take DSGW-210 IoT Edge Gateway as an example. DSGW-210 IoT gateway hardware is launched by DUSUN, using a Quad-core Cortex-A35 processor, the processor speed is up to 1.5GHZ, supports multiple wireless protocols, ZigBee, Bluetooth, Z-WAVE, LoRaWAN, Wi-Fi, Cellular network, which can be easily upgraded to scale alongside your needs.
Home Assistant, a free and open-source software designed for home automation, provides an easy and secure way to control all of your smart home devices. Home Assistant makes it possible to centralize all of the smart devices you have in your home, regardless of brand and enables you to control them via an easy, user-friendly way –including via voice. With all of these smart devices working together, you can set many kinds of scenes, which would otherwise not be possible. The following instruction will guide you through the process of installation and setting up the Home Assistant.
Downloads
Supplies
DSGW-210 IoT Edge Gateway, Home Assistant Software
Target Setup
This section describes how to connect the gateway to your host computer and network.
Connecting a gateway – Power
1. Make sure that the power adapter is 5V/3A.
2. Select the appropriate power plug adaptor for your geographical location. Insert it into the slot on the Universal Power Supply; then plug the power supply into an outlet.
3. Connect the output plug of the power supply to the gateway
Connecting a gateway – USB port
1. Connect one end of the USB cable to the USB port on the laptop or desktop
2. Connect the other end of the USB cable to the USB port on the gateway.
Downloads
Install OS Agent, Docker, and Dependencies
Step 1. In the terminal run the following commands to update the Debian OS, install Docker, and the required dependencies for the OS Agent and the Supervised installer. Execute the following commands one at a time.
sudo -i
apt update && sudo apt upgrade -y && sudo apt autoremove -y
apt --fix-broken install
apt-get install jq curl avahi-daemon apparmor-utils udisks2 libglib2.0-bin network-manager dbus
wget -y
curl -fsSL get.docker.com | sh
Copy
Step 2. Visit the OS Agent page and then replace the version number with the latest available, into the commands below:
https://github.com/home-assistant/os-agent/releases/tag/1.2.2
Step 3. Execute the following commands one at a time
wget https://github.com/home-assistant/os-
agent/releases/download/1.2.2/osagent_1.2.2_linux_x86_64.deb
dpkg -i os-agent_1.2.2_linux_x86_64.deb
Copy
5.2 Install Home Assistant Supervised
Step 1. Enter each line of the below commands into the terminal and execute them one at a time
Sudo -
Copy
Step 2. Execute the following commands one at a time
wget https://github.com/home-assistant/supervised
installer/releases/latest/download/homeassistant-supervised.deb
dpkg -i homeassistant-supervised.deb
Copy
Step 3. You may be prompted to choose a machine type during the installation
Install Home Assistant Supervised
Step 1. Enter each line of the below commands into the terminal and execute them one at a time
Sudo -
Copy
Step 2. Execute the following commands one at a time
wget https://github.com/home-assistant/supervised
installer/releases/latest/download/homeassistant-supervised.deb
dpkg -i homeassistant-supervised.deb
Copy
Step 3. You may be prompted to choose a machine type during the installation
Run and Configure the Home Assistant
http://your.ip.address.here:8123/
If everything is successful, you should see the following screen:
NOTE: Since there are always changes and updates to get up-to-date information, please refer to https://community.home-assistant.io/t/installing-home-assistantsupervised-on-debian-11/200253