Site updated at 2018-02-27 07:29:46 UTC

This commit is contained in:
Travis CI 2018-02-27 07:29:46 +00:00
parent 68c2cf5620
commit 2231916f77
28 changed files with 97 additions and 80 deletions

View file

@ -185,6 +185,14 @@ There is an issue with the Mosquitto package included in Ubuntu 14.04 LTS. Speci
If you get this error <code class="highlighter-rouge">AttributeError: module 'ssl' has no attribute 'PROTOCOL_TLS'</code> then you need to set <code class="highlighter-rouge">tls_version: '1.2'</code>.
</p>
<p class="note">
If you are running a Mosquitto instance on the same server as Home Assistant then you must ensure that the Mosquitto service starts before Home Assistant. For a Linux instance running Systemd (Raspberry Pi, Debian, Ubuntu and others) then you should edit the file /etc/systemd/system/home-assistant@homeassistant.service as root (e.g. sudo nano /etc/systemd/system/home-assistant@homeassistant.service) and add the mosquitto service:
<code class="highlighter-rouge">
[Unit]
Description=Home Assistant
After=network.target mosquitto.service
</code>
</p>
<p class="note">
If you are running a Mosquitto instance on a different server with proper SSL encryption using a service like Lets Encrypt you may have to set the certificate to the operating systems own <code class="highlighter-rouge">.crt</code> certificates file. In the instance of Ubuntu this would be <code class="highlighter-rouge">certificate: /etc/ssl/certs/ca-certificates.crt</code>
</p>
<h3><a class="title-link" name="public-broker" href="#public-broker"></a> Public broker</h3>