Site updated at 2017-11-28 17:09:01 UTC
This commit is contained in:
parent
aa7e9f3dcf
commit
0ad508cd64
28 changed files with 80 additions and 180 deletions
|
@ -75,109 +75,9 @@
|
|||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
<p>The <a href="https://github.com/home-assistant/fabric-home-assistant">Raspberry Pi All-In-One Installer</a> deploys a complete Home Assistant server including support for MQTT with websockets, Z-Wave, and the OpenZWave Control Panel.</p>
|
||||
<p class="note">
|
||||
Please remember to ensure you’re using an <a href="https://www.raspberrypi.org/help/faqs/#powerReqs">appropriate power supply</a> with your Pi. Mobile chargers may not be suitable, since some are designed to only provide the full power with that manufacturer’s handsets.
|
||||
<p class="note warning">
|
||||
The All-In-One Installer is deprecated, you will have problems updating Home Assistant in 2018. Please move to another <a href="https://home-assistant.io/getting-started/">installation method</a>.
|
||||
</p>
|
||||
<p>The only requirement is that you have a Raspberry Pi with a fresh installation of <a href="https://www.raspberrypi.org/downloads/raspbian/">Raspbian</a> Jessie (Stretch is not supported at this time) connected to your network.</p>
|
||||
<p class="note">
|
||||
Note that as of 2016-11-30 SSH is disabled by default in the official Raspbian images. Adding an empty file called <code class="highlighter-rouge">ssh</code> to <code class="highlighter-rouge">/boot/</code> on the FAT32 partition will enable it. More information is on the Raspberry Pi Foundation <a href="https://www.raspberrypi.org/blog/page/2/?fish#a-security-update-for-raspbian-pixel">Blog</a>.
|
||||
</p>
|
||||
<p>Irrespective of whether you use SSH to connect to the Pi from another computer or not, you need SSH to install Home Assistant. So go ahead and enable SSH.</p>
|
||||
<ul>
|
||||
<li>Login to Raspberry Pi. For example with <code class="highlighter-rouge">ssh pi@your_raspberry_pi_ip</code></li>
|
||||
<li>Run the following command:</li>
|
||||
</ul>
|
||||
<p class="note warning">
|
||||
This command is a one-liner and not run as sudo.
|
||||
</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>curl -O https://raw.githubusercontent.com/home-assistant/fabric-home-assistant/master/hass_rpi_installer.sh <span class="o">&&</span> sudo chown pi:pi hass_rpi_installer.sh <span class="o">&&</span> bash hass_rpi_installer.sh
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>Installation will take approx. 1-2 hours depending on the Raspberry Pi model the installer is being run against. The installer will identitfy what Raspberry Pi hardware revision you are using and adjust commands accordingly. A complete log of the install is located at: <code class="highlighter-rouge">/home/pi/fabric-home-assistant/installation_report.txt</code> The installer has been updated to simply log any errors encountered, but resume installing. Please consult the “installation report” if your install encountered issues.</p>
|
||||
<p><a href="http://www.bruhautomation.com">BRUH automation</a> has created <a href="https://www.youtube.com/watch?v=VGl3KTrYo6s">a tutorial video</a> explaining how to install Raspbian on your Raspberry Pi and install Home Assistant using the All-In-One Installer.</p>
|
||||
<p>Once rebooted, your Raspberry Pi will be up and running with Home Assistant. You can access it at <a href="http://your_raspberry_pi_ip:8123">http://your_raspberry_pi_ip:8123</a>.</p>
|
||||
<p>The Home Assistant configuration is located at <code class="highlighter-rouge">/home/homeassistant/.homeassistant</code> (or <code class="highlighter-rouge">/home/hass/.homeassistant</code> if installed prior to December 2016). The <a href="https://virtualenv.pypa.io/en/latest/">virtualenv</a> with the Home Assistant installation is located at <code class="highlighter-rouge">/srv/homeassistant/homeassistant_venv</code>. As part of the secure installation, a new user (<strong>homeassistant</strong>) is added to your Raspberry Pi to run Home Assistant. This is a system account and does not have login or other abilities by design. When editing your <code class="highlighter-rouge">configuration.yaml</code> files, you will need to run the commands with <code class="highlighter-rouge">sudo</code> or by switching user.</p>
|
||||
<p class="note note">
|
||||
<em>Windows users</em>: Setting up WinSCP to allow this seemlessly is at the end of this page.
|
||||
</p>
|
||||
<p>By default, installation makes use of a Python Virtualenv. If you wish to not follow this recommendation, you may add the flag <code class="highlighter-rouge">-n</code> to the end of the install command specified above.</p>
|
||||
<p>The All-In-One Installer script will do the following automatically:</p>
|
||||
<ul>
|
||||
<li>Create all needed directories</li>
|
||||
<li>Create needed service accounts</li>
|
||||
<li>Install OS and Python dependencies</li>
|
||||
<li>Setup a python virtualenv to run Home Assistant and components inside.</li>
|
||||
<li>Run as <code class="highlighter-rouge">homeassistant</code> service account</li>
|
||||
<li>Install Home Assistant in a virtualenv</li>
|
||||
<li>Install Mosquitto with websocket support running on ports 1883 and 9001</li>
|
||||
<li>Build and Install Python-openzwave in the Home Assistant virtualenv</li>
|
||||
<li>Build OpenZWave Control Panel in <code class="highlighter-rouge">/srv/homeassistant/src/open-zwave-control-panel</code></li>
|
||||
<li>Add Home Assistant to systemd services to start at boot</li>
|
||||
</ul>
|
||||
<h3><a class="title-link" name="upgrading" href="#upgrading"></a> Upgrading</h3>
|
||||
<p>To upgrade the All-In-One setup manually:</p>
|
||||
<ul>
|
||||
<li>Login to Raspberry Pi <code class="highlighter-rouge">ssh pi@your_raspberry_pi_ip</code></li>
|
||||
<li>Change to homeassistant user <code class="highlighter-rouge">sudo su -s /bin/bash homeassistant</code></li>
|
||||
<li>Change to virtual environment <code class="highlighter-rouge">source /srv/homeassistant/homeassistant_venv/bin/activate</code></li>
|
||||
<li>Update Home Assistant <code class="highlighter-rouge">pip3 install --upgrade homeassistant</code></li>
|
||||
<li>Type <code class="highlighter-rouge">exit</code> to logout the hass user and return to the <code class="highlighter-rouge">pi</code> user.</li>
|
||||
</ul>
|
||||
<div class="note note">
|
||||
<p><strong>If you deployed Home Assistant via the AiO installer prior to December 2016</strong></p>
|
||||
<ul>
|
||||
<li>Login to Raspberry Pi <code class="highlighter-rouge">ssh pi@your_raspberry_pi_ip</code></li>
|
||||
<li>Change to homeassistant user <code class="highlighter-rouge">sudo su -s /bin/bash hass</code></li>
|
||||
<li>Change to virtual environment <code class="highlighter-rouge">source /srv/hass/hass_venv/bin/activate</code></li>
|
||||
<li>Update Home Assistant <code class="highlighter-rouge">pip3 install --upgrade homeassistant</code></li>
|
||||
<li>Type <code class="highlighter-rouge">exit</code> to logout the hass user and return to the <code class="highlighter-rouge">pi</code> user.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>After upgrading, you can restart Home Assistant a few different ways:</p>
|
||||
<ul>
|
||||
<li>Restarting the Raspberry Pi <code class="highlighter-rouge">sudo reboot</code></li>
|
||||
<li>Restarting the Home-Assistant Service <code class="highlighter-rouge">sudo systemctl restart home-assistant.service</code></li>
|
||||
</ul>
|
||||
<h3><a class="title-link" name="to-change-the-mqtt-default-password" href="#to-change-the-mqtt-default-password"></a> To change the MQTT default password</h3>
|
||||
<ul>
|
||||
<li>Login to Raspberry Pi <code class="highlighter-rouge">ssh pi@your_raspberry_pi_ip</code></li>
|
||||
<li>Change password <code class="highlighter-rouge">sudo mosquitto_passwd /etc/mosquitto/pwfile pi</code></li>
|
||||
<li>Restart mosquitto <code class="highlighter-rouge">sudo systemctl restart mosquitto.service</code></li>
|
||||
<li>Be sure to update your <code class="highlighter-rouge">configuration.yaml</code> to reflect the new password.</li>
|
||||
</ul>
|
||||
<h3><a class="title-link" name="using-the-ozwcp-web-application" href="#using-the-ozwcp-web-application"></a> Using the OZWCP web application</h3>
|
||||
<p>To launch the OpenZWave Control Panel (OZWCP) web application:</p>
|
||||
<ul>
|
||||
<li>Make sure Home Assistant is not running! So stop that first</li>
|
||||
<li>Login to Raspberry Pi <code class="highlighter-rouge">ssh pi@your_raspberry_pi_ip</code></li>
|
||||
<li>Change to the OZWCP directory <code class="highlighter-rouge">cd /srv/homeassistant/src/open-zwave-control-panel/</code></li>
|
||||
<li>Launch the control panel <code class="highlighter-rouge">sudo ./ozwcp -p 8888</code></li>
|
||||
<li>Open a web browser to <code class="highlighter-rouge">http://your_pi_ip:8888</code></li>
|
||||
<li>Specify your Z-Wave controller, for example <code class="highlighter-rouge">/dev/ttyACM0</code> and hit initialize</li>
|
||||
</ul>
|
||||
<p class="note warning">
|
||||
If OZWCP is running really slow verify that your not running Home Assistant or have another page running OZWCP open or strange errors might occur.
|
||||
</p>
|
||||
<div class="note note">
|
||||
<p><strong>If you deployed Home Assistant via the AiO installer prior to December 2016</strong></p>
|
||||
<ul>
|
||||
<li>Make sure Home Assistant is not running! So stop that first</li>
|
||||
<li>Login to Raspberry Pi <code class="highlighter-rouge">ssh pi@your_raspberry_pi_ip</code></li>
|
||||
<li>Change to the OZWCP directory <code class="highlighter-rouge">cd /srv/hass/src/open-zwave-control-panel/</code></li>
|
||||
<li>Launch the control panel <code class="highlighter-rouge">sudo ./ozwcp -p 8888</code></li>
|
||||
<li>Open a web browser to <code class="highlighter-rouge">http://your_pi_ip:8888</code></li>
|
||||
<li>Specify your Z-Wave controller, for example <code class="highlighter-rouge">/dev/ttyACM0</code> and hit initialize</li>
|
||||
</ul>
|
||||
</div>
|
||||
<p class="note warning">
|
||||
Don’t check the USB box regardless of using a USB based device.
|
||||
</p>
|
||||
<h3><a class="title-link" name="using-the-gpios" href="#using-the-gpios"></a> Using the GPIOs</h3>
|
||||
<p>The (<strong>homeassistant</strong>) user is added to the GPIO group as part of the install now.</p>
|
||||
<h3><a class="title-link" name="winscp" href="#winscp"></a> WinSCP</h3>
|
||||
<p>If you are Windows users who is using <a href="https://winscp.net/">WinSCP</a>, please note that after running the installer, you will need to modify settings allowing you to “switch users” to edit your configuration files.</p>
|
||||
<p>First create a new session on WinSCP using Protocol <strong>SCP</strong> pointing to your Pi IP address and port 22 and then modify the needed setting by click on <strong>Advanced…</strong> -> <strong>Environment</strong> -> <strong>SCP/Shell</strong> -> <strong>Shell</strong> and selecting <code class="highlighter-rouge">sudo su -</code>.</p>
|
||||
</article>
|
||||
</div>
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
</header>
|
||||
<hr class="divider">
|
||||
<p class="note warning">
|
||||
The upgrade process differs depending on the installation you have, so please review the documentation that is specific to your install <a href="/hassio/">Hass.io</a>, <a href="/docs/hassbian/common-tasks/#update-home-assistant">HASSbian</a>, <a href="/docs/installation/raspberry-pi-all-in-one/#upgrading">Raspberry Pi All-In-One Installer</a>, <a href="/docs/installation/vagrant/">Vagrant</a>, or <a href="/docs/installation/virtualenv/#upgrading-home-assistant">Virtualenv</a>.
|
||||
The upgrade process differs depending on the installation you have, so please review the documentation that is specific to your install <a href="/hassio/">Hass.io</a>, <a href="/docs/hassbian/common-tasks/#update-home-assistant">HASSbian</a>, <a href="/docs/installation/vagrant/">Vagrant</a>, or <a href="/docs/installation/virtualenv/#upgrading-home-assistant">Virtualenv</a>.
|
||||
</p>
|
||||
<p>View what’s new in the latest version and potential impacts on your system <a href="https://github.com/home-assistant/home-assistant/releases">here</a>.</p>
|
||||
<p>The default way to update Home Assistant to the latest release, when available, is:</p>
|
||||
|
@ -85,7 +85,7 @@ The upgrade process differs depending on the installation you have, so please re
|
|||
</div>
|
||||
<p>After updating, you must restart Home Assistant for the changes to take effect. This means that you will have to restart <code class="highlighter-rouge">hass</code> itself or the <a href="/docs/autostart/">autostarting</a> daemon (if applicable). Startup can take considerable amount of time (i.e. minutes) depending on your device. This is because all requirements are updated as well.</p>
|
||||
<p class="note">
|
||||
To avoid permission errors, the upgrade must be run as the same user as the installation was completed, again review the documentation specific to your install <a href="/hassio/">Hass.io</a>, <a href="/docs/hassbian/installation/">HASSbian</a>, <a href="/docs/installation/raspberry-pi-all-in-one/">Raspberry Pi All-In-One Installer</a>, <a href="/docs/installation/vagrant/">Vagrant</a>, or <a href="/docs/installation/virtualenv">Virtualenv</a>.
|
||||
To avoid permission errors, the upgrade must be run as the same user as the installation was completed, again review the documentation specific to your install <a href="/hassio/">Hass.io</a>, <a href="/docs/hassbian/installation/">HASSbian</a>, <a href="/docs/installation/vagrant/">Vagrant</a>, or <a href="/docs/installation/virtualenv">Virtualenv</a>.
|
||||
</p>
|
||||
<p><a href="http://www.bruhautomation.com">BRUH automation</a> has created <a href="https://www.youtube.com/watch?v=tuG2rs1Cl2Y">a tutorial video</a> explaining how to upgrade Home Assistant.</p>
|
||||
<h4><a class="title-link" name="run-a-specific-version" href="#run-a-specific-version"></a> Run a specific version</h4>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue