Skip to content

Commit e64f035

Browse files
authored
Orange Pi Zero Blog post (home-assistant#2624)
* Add blog post about Orange Pi Zero and Home Assistant * Fix typos
1 parent 17d53d6 commit e64f035

File tree

4 files changed

+134
-0
lines changed

4 files changed

+134
-0
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
---
2+
layout: post
3+
title: "Home Assistant on an Orange Pi Zero"
4+
description: "Installing Home Assistant on a Orange Pi Zero with armbian."
5+
date: 2017-05-13 09:00:00
6+
date_formatted: "May 13, 2017"
7+
author: Fabian Affolter
8+
author_twitter: fabaff
9+
comments: true
10+
categories: How-To
11+
og_image: /images/blog/2017-05-orangepi/social.png
12+
---
13+
14+
This blog post is about the setup of Home Assistant on an (Orange Pi Zero)[http://www.orangepi.org/orangepizero/]. Like the setup on a [Raspberry Pi Zero](/blog/2017/05/01/home-assistant-on-raspberry-pi-zero-in-30-minutes/) it will only take a couple of minutes to get a fully functional super cheap (less than 18 Euro incl. casing and power supply) Home Assistant hub. The reasons to use an Orange Pi Zero beside the prize are the built-in Ethernet port and the availability.
15+
16+
<p class="img">
17+
<img src="/images/blog/2017-05-orangepi/orangie-pi-setup.png" />
18+
</p>
19+
20+
<!--more-->
21+
22+
Download the [Armbian](https://www.armbian.com/orange-pi-zero/) and create the SD card with [Etcher](https://etcher.io/). There is no possibility to connect a display to the Orange Pi Zero. This means that you need a wired network setup with DHCP server. After your Orange Pi Zero is running, give it some time, and look for its IP address. The hostname is `orangepizero`.
23+
24+
If you found the IP address then use your SSH client to connect to the Orange Pi Zero. The default password is `1234`.
25+
26+
```bash
27+
$ ssh root@192.168.0.151
28+
[...]
29+
root@192.168.0.151's password:
30+
You are required to change your password immediately (root enforced)
31+
___ ____ _ _____
32+
/ _ \ _ __ __ _ _ __ __ _ ___ | _ \(_) |__ /___ _ __ ___
33+
| | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | / // _ \ '__/ _ \
34+
| |_| | | | (_| | | | | (_| | __/ | __/| | / /| __/ | | (_) |
35+
\___/|_| \__,_|_| |_|\__, |\___| |_| |_| /____\___|_| \___/
36+
|___/
37+
38+
Welcome to ARMBIAN 5.27.170514 nightly Ubuntu 16.04.2 LTS 4.11.0-sun8i
39+
System load: 0.86 0.35 0.13 Up time: 9 min
40+
Memory usage: 5 % of 496MB IP: 192.168.0.151
41+
CPU temp: 39°C
42+
Usage of /: 16% of 7.1G
43+
44+
[ General system configuration: armbian-config ]
45+
New to Armbian? Check the documentation first: https://docs.armbian.com
46+
47+
Changing password for root.
48+
(current) UNIX password:
49+
Enter new UNIX password:
50+
Retype new UNIX password:
51+
52+
You are using Armbian nightly build.
53+
54+
It is provided AS IS with NO WARRANTY and NO END USER SUPPORT.
55+
56+
Creating a new user account. Press <Ctrl-C> to abort
57+
58+
Please provide a username (eg. your forename): ha
59+
Trying to add user ha
60+
perl: warning: Setting locale failed.
61+
perl: warning: Please check that your locale settings:
62+
LANGUAGE = "en_US.UTF-8",
63+
LC_ALL = (unset),
64+
LC_PAPER = "de_CH.UTF-8",
65+
LC_MONETARY = "de_CH.UTF-8",
66+
LC_NUMERIC = "de_CH.UTF-8",
67+
LC_MESSAGES = "en_US.UTF-8",
68+
LC_MEASUREMENT = "de_CH.UTF-8",
69+
LC_TIME = "de_CH.UTF-8",
70+
LANG = "en_US.UTF-8"
71+
are supported and installed on your system.
72+
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
73+
Adding user `ha' ...
74+
Adding new group `ha' (1000) ...
75+
Adding new user `ha' (1000) with group `ha' ...
76+
Creating home directory `/home/ha' ...
77+
Copying files from `/etc/skel' ...
78+
Enter new UNIX password:
79+
Retype new UNIX password:
80+
passwd: password updated successfully
81+
Changing the user information for ha
82+
Enter the new value, or press ENTER for the default
83+
Full Name []: homeassistant
84+
Room Number []:
85+
Work Phone []:
86+
Home Phone []:
87+
Other []:
88+
Is the information correct? [Y/n] y
89+
90+
Dear homeassistant, your account ha has been created and is sudo enabled.
91+
Please use this account for your daily work from now on.
92+
93+
root@orangepizero:~#
94+
```
95+
Get the latest details about the packages.
96+
97+
```bash
98+
root@orangepizero:~# apt-get update
99+
Hit:1 http://ports.ubuntu.com xenial InRelease
100+
Get:2 http://ports.ubuntu.com xenial-security InRelease [102 kB]
101+
Hit:3 http://beta.armbian.com xenial InRelease
102+
Get:4 http://ports.ubuntu.com xenial-updates InRelease [102 kB]
103+
Get:5 http://ports.ubuntu.com xenial-backports InRelease [102 kB]
104+
Get:6 http://ports.ubuntu.com xenial-updates/main armhf Packages [479 kB]
105+
Get:7 http://ports.ubuntu.com xenial-updates/universe armhf Packages [419 kB]
106+
Fetched 1205 kB in 7s (158 kB/s)
107+
Reading package lists... Done
108+
```
109+
Let's run an upgrade to make sure that all available packages are up-to-date.
110+
111+
```bash
112+
root@orangepizero:~# apt-get upgrade
113+
```
114+
Now, we are installing the requirements for Home Assistant.
115+
116+
```bash
117+
root@orangepizero:~# apt-get install python3-dev python3-pip python3-venv
118+
```
119+
120+
Those steps to install Home Assistant are described in the [documentation](/docs/installation/armbian/) and the guide for [`venv`](/docs/installation/virtualenv/) as well. Switch to the create user `ha` and perform the remaining installation steps which are reduced to the minimum below:
121+
122+
```bash
123+
ha@orangepizero:~$ pyvenv-3.5 homeassistant
124+
ha@orangepizero:~$ cd homeassistant && source bin/activate
125+
(homeassistant) ha@orangepizero:~/homeassistant$ pip3 install --upgrade pip
126+
(homeassistant) ha@orangepizero:~/homeassistant$ pip3 install homeassistant
127+
(homeassistant) ha@orangepizero:~/homeassistant$ hass
128+
```
129+
130+
<p class="img">
131+
<img src="/images/blog/2017-05-orangepi/orange-pi-running.png" />
132+
</p>
133+
134+
To make it ready for daily usage, don't forget to enable [autostart](/docs/autostart/).
Loading
Loading
104 KB
Loading

0 commit comments

Comments
 (0)