You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add more instructions to HASSbian docs.
* Update installation-raspberry-pi-image.markdown
- Add viewing of log trough journalctl
- Add information about status command for Home Assistant service
- Fix formatting
description: "Instructions to flash the Home Assistant Hassbian image on a Raspberry Pi."
3
+
title: "HASSbian image for Raspberry Pi"
4
+
description: "Instructions to flash the Home Assistant HASSbian image on a Raspberry Pi."
5
5
date: 2016-09-26 21:00
6
6
sidebar: true
7
7
comments: false
8
8
sharing: true
9
9
footer: true
10
10
---
11
11
12
-
The easiest way to install Home Assistant on your Raspberry Pi is by using Hassbian: a Raspberry Pi image with Home Assistant built-in. The image will install the latest version of Home Assistant on initial boot (~5 minutes).
12
+
The easiest way to install Home Assistant on your Raspberry Pi is by using HASSbian: a Raspberry Pi image with Home Assistant built-in. The image will install the latest version of Home Assistant on initial boot (~5 minutes).
13
13
14
14
1.[Download the latest image][image-download]
15
15
2. Flash the image to an SD card:
16
16
-[Windows][flash-windows]
17
17
-[Linux][flash-linux]
18
-
-[Mac][flash-macos]
18
+
-[Mac OS][flash-macos]
19
19
3. Ensure your Raspberry Pi has access to the internet.
20
-
4. Insert SD card to Raspberry Pi and turn it on. Initial installation of Home Assistant will take 5 minutes.
20
+
4. Insert SD card to Raspberry Pi and turn it on. Initial installation of Home Assistant will take about 5 minutes.
21
21
22
22
These instructions are also available as a [video](https://www.youtube.com/watch?v=iIz6XqDwHEk).
23
23
@@ -36,21 +36,104 @@ Some extra tips:
36
36
37
37
### {% linkable_title Technical Details %}
38
38
39
-
- Home Assistant is installed in a virtual Python environment at `src/homeassistant`
39
+
- Home Assistant is installed in a virtual Python environment at `/src/homeassistant/`
40
40
- Home Assistant will be started as a service run by the user `homeassistant`
41
-
42
-
{% comment %}
43
-
44
-
TODO:
45
-
46
-
Add instructions:
47
-
48
-
- How to login via shell (?) or at least mention how to work with a Pi
49
-
- How to restart HASS
50
-
- How to see the logs for config validation
51
-
- How to update the config
52
-
53
-
{% endcomment %}
41
+
- The configuration is located at `/home/homeassistant/.homeassistant`
42
+
43
+
### {% linkable_title Managing your HASSbian installation %}
44
+
#### {% linkable_title Login to HASSbian on the Raspberry Pi %}
45
+
To login to your Raspberry Pi running HASSbian your going to be using a ssh client. Depending on your platform there are several alternatives for doing this. Linux and Max OS generally have a ssh client installed. Windows users are recommended to download and install the ssh client [Putty][ssh-putty].
46
+
47
+
Connect to the Raspberry Pi over ssh. Default user name is `pi` and password is `raspberry`.
48
+
Linux and Mac OS users execute the following command in a terminal.
49
+
```bash
50
+
$ ssh pi@ip-address-of-pi
51
+
```
52
+
Windows users start [Putty][ssh-putty], enter the IP address of the Raspberry Pi in the *Host name* field and port 22 in the *Port* field. Then click *Open* and a terminal window will open. Enter the credentials. Default user name is `pi` and password is `raspberry`.
53
+
54
+
#### {% linkable_title Start/Stop/Restart Home Assistant on HaSSbian %}
55
+
Log in as the `pi` account account and execute the following commands:
- Stop the Home Assistant service running on HASSbian
74
+
- Open a shell as the `homeassistant` user running the Homeassistant service and that has ownership over the Home Assistant installation.
75
+
- Change into the virtual Python environment at `/src/homeassistant/` containing the Home Assistant installation.
76
+
- Upgrade the Home Assistant installation to the latest release.
77
+
- Exit the shell and return to the `pi` user.
78
+
- Restart the Home Assistant service.
79
+
80
+
#### {% linkable_title Manually launch Home Assistant on HASSbian %}
81
+
Log in as the `pi` account and execute the following commands:
82
+
```bash
83
+
sudo su -s /bin/bash homeassistant
84
+
source /srv/homeassistant/bin/activate
85
+
hass
86
+
```
87
+
This will start Home Assistant in your shell and output anything that ends up in the log and more into the console. This will fail if the Home Assistant service is already running so don't forget to [stop][stop-homeassistant] it first.
88
+
89
+
#### {% linkable_title Check your configuration on HASSbian %}
90
+
Log in as the `pi` account and execute the following commands:
91
+
```bash
92
+
sudo su -s /bin/bash homeassistant
93
+
source /srv/homeassistant/bin/activate
94
+
hass --script check_config
95
+
```
96
+
This will output any errors in your configuration files to console.
97
+
98
+
#### {% linkable_title Read the Home Assistant log file on HASSbian %}
99
+
Log in as the `pi` account and execute the following commands:
100
+
```bash
101
+
sudo su -s /bin/bash homeassistant
102
+
cd /home/homeassistant/.homeassistant
103
+
nano homeassistant.log
104
+
```
105
+
This will in order do the following:
106
+
- Open a shell as the `homeassistant` user.
107
+
- Change directory to the Home Assistant configuration directory.
108
+
- Open the log file in the nano editor.
109
+
110
+
Optionaly, you can also view the log with `journalctl`.
111
+
Log in as the `pi` account and execute the following commands:
#### {% linkable_title Edit the Home Assistant configuration on HASSbian %}
117
+
Log in as the `pi` account and execute the following commands:
118
+
```bash
119
+
sudo su -s /bin/bash homeassistant
120
+
cd /home/homeassistant/.homeassistant
121
+
nano configuration.yaml
122
+
```
123
+
This will in order do the following:
124
+
- Open a shell as the `homeassistant` user.
125
+
- Change directory to the Home Assistant configuration directory.
126
+
- Open the configuration file in the nano editor.
127
+
It's generally recommended that you read the [Getting started][configuring-homeassistant] guide for how to configure Home Assistant.
128
+
129
+
#### {% linkable_title Upgrade and update HASSbian %}
130
+
HASSbian is based on Raspbian and uses the same repositories. Any changes to Raspbian will be reflected in HASSbian. To update and upgrade system packages and installed software (excluding Home Assistant) do the following.
131
+
Log in as the `pi` account and execute the following commands:
132
+
```bash
133
+
sudo apt-get update
134
+
sudo apt-get upgrade
135
+
```
136
+
Press `Y` to confirm that you would like to continue.
54
137
55
138
### {% linkable_title Troubleshooting %}
56
139
@@ -69,3 +152,6 @@ In addition to this site, check out these sources for additional help:
Copy file name to clipboardExpand all lines: source/getting-started/updating.markdown
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The default way to update Home Assistant to the latest release, when available,
16
16
$ pip3 install --upgrade homeassistant
17
17
```
18
18
19
-
Different installation methods as [Raspberry Pi All-In-One Installer](/getting-started/installation-raspberry-pi-all-in-one/#upgrading), [Vagrant](/getting-started/installation-vagrant/), or [Virtualenv](/getting-started/installation-virtualenv/#upgrading-home-assistant) may have an alternative way for updating Home Assistant.
19
+
Different installation methods as [HASSbian](/getting-started/installation-raspberry-pi-image/#update-home-assistant-on-hassbian), [Raspberry Pi All-In-One Installer](/getting-started/installation-raspberry-pi-all-in-one/#upgrading), [Vagrant](/getting-started/installation-vagrant/), or [Virtualenv](/getting-started/installation-virtualenv/#upgrading-home-assistant) may have an alternative way for updating Home Assistant.
20
20
21
21
After updating, restart Home Assistant for the changes to take effect. This means that you have to restart `hass` itself or the [autostarting](/getting-started/autostart/) daemon if you use any.
0 commit comments