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
Copy file name to clipboardExpand all lines: source/getting-started/installation-raspberry-pi-image.markdown
+45-23Lines changed: 45 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -46,30 +46,38 @@ To login to your Raspberry Pi running HASSbian your going to be using a ssh clie
46
46
47
47
Connect to the Raspberry Pi over ssh. Default user name is `pi` and password is `raspberry`.
48
48
Linux and Mac OS users execute the following command in a terminal.
49
+
49
50
```bash
50
51
$ ssh pi@ip-address-of-pi
51
52
```
53
+
52
54
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
55
54
56
#### {% linkable_title Start/Stop/Restart Home Assistant on HaSSbian %}
55
57
Log in as the `pi` account account and execute the following commands:
- Stop the Home Assistant service running on HASSbian
74
82
- Open a shell as the `homeassistant` user running the Homeassistant service and that has ownership over the Home Assistant installation.
75
83
- Change into the virtual Python environment at `/src/homeassistant/` containing the Home Assistant installation.
@@ -79,60 +87,74 @@ This will in order do the following:
79
87
80
88
#### {% linkable_title Manually launch Home Assistant on HASSbian %}
81
89
Log in as the `pi` account and execute the following commands:
90
+
82
91
```bash
83
-
sudo su -s /bin/bash homeassistant
84
-
source /srv/homeassistant/bin/activate
85
-
hass
92
+
$ sudo su -s /bin/bash homeassistant
93
+
$ source /srv/homeassistant/bin/activate
94
+
$ hass
86
95
```
96
+
87
97
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
98
89
99
#### {% linkable_title Check your configuration on HASSbian %}
90
100
Log in as the `pi` account and execute the following commands:
101
+
91
102
```bash
92
-
sudo su -s /bin/bash homeassistant
93
-
source /srv/homeassistant/bin/activate
94
-
hass --script check_config
103
+
$ sudo su -s /bin/bash homeassistant
104
+
$ source /srv/homeassistant/bin/activate
105
+
$ hass --script check_config
95
106
```
107
+
96
108
This will output any errors in your configuration files to console.
97
109
98
110
#### {% linkable_title Read the Home Assistant log file on HASSbian %}
99
111
Log in as the `pi` account and execute the following commands:
112
+
100
113
```bash
101
-
sudo su -s /bin/bash homeassistant
102
-
cd /home/homeassistant/.homeassistant
103
-
nano homeassistant.log
114
+
$ sudo su -s /bin/bash homeassistant
115
+
$ cd /home/homeassistant/.homeassistant
116
+
$ nano homeassistant.log
104
117
```
118
+
105
119
This will in order do the following:
120
+
106
121
- Open a shell as the `homeassistant` user.
107
122
- Change directory to the Home Assistant configuration directory.
108
123
- Open the log file in the nano editor.
109
124
110
-
Optionaly, you can also view the log with `journalctl`.
125
+
Optionaly, you can also view the log with `journalctl`.
111
126
Log in as the `pi` account and execute the following commands:
#### {% linkable_title Edit the Home Assistant configuration on HASSbian %}
117
133
Log in as the `pi` account and execute the following commands:
134
+
118
135
```bash
119
-
sudo su -s /bin/bash homeassistant
120
-
cd /home/homeassistant/.homeassistant
121
-
nano configuration.yaml
136
+
$ sudo su -s /bin/bash homeassistant
137
+
$ cd /home/homeassistant/.homeassistant
138
+
$ nano configuration.yaml
122
139
```
140
+
123
141
This will in order do the following:
142
+
124
143
- Open a shell as the `homeassistant` user.
125
144
- Change directory to the Home Assistant configuration directory.
126
145
- Open the configuration file in the nano editor.
146
+
127
147
It's generally recommended that you read the [Getting started][configuring-homeassistant] guide for how to configure Home Assistant.
128
148
129
149
#### {% linkable_title Upgrade and update HASSbian %}
130
150
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
151
Log in as the `pi` account and execute the following commands:
152
+
132
153
```bash
133
-
sudo apt-get update
134
-
sudo apt-get upgrade
154
+
$ sudo apt-get update
155
+
$ sudo apt-get upgrade
135
156
```
157
+
136
158
Press `Y` to confirm that you would like to continue.
0 commit comments