Site updated at 2017-09-09 08:11:28 UTC
This commit is contained in:
parent
884f293365
commit
f9e31a30cd
827 changed files with 13304 additions and 2121 deletions
|
@ -101,7 +101,7 @@ You can change this, however, using the following procedure. This is a more adva
|
|||
<ol>
|
||||
<li>Log in into your alarm system’s control panel. You will need to access http://[ip of your control panel]. You know this already since you need it in the basic configuration from above. Log in to the control panel with your Egardia/Woonveilig username and password.</li>
|
||||
<li>Once logged in, go to <em>System Settings</em>, <em>Report</em> and change the Server Address for your primary server to the IP or hostname of your Home Assistant machine. Also, update the port number 85 or to anything you like. The provided software that you will set up in the next steps runs on port 85 by default. <strong>Make sure to change the settings of the primary server otherwise the messages will not come through. Note that this will limit (or fully stop) the number of alarm messages you will get through Egardia’s / Woonveilig services.</strong> Maybe, that is just what you want. Make sure to save your settings by selecting ‘OK’.</li>
|
||||
<li>On your Home Assistant machine run <code class="highlighter-rouge">$ sudo python3 egardiaserver.py</code>. This will receive status codes from your alarm control panel and display them. You will need the codes to include in your configuration.yaml. Make sure to change the status of your alarm to all states (disarm, arm, armhome) as well as trigger the alarm in all ways possible to get 100% coverage. <strong>Before triggering the alarm it might be good to disable the siren temporarily (can be done in Panel Settings).</strong></li>
|
||||
<li>On your Home Assistant machine run <code class="highlighter-rouge">$ sudo python3 egardiaserver.py</code>. Refer to the <a href="https://github.com/jeroenterheerdt/python-egardia">python-egardia repository</a> for detailed documentation on parameters. This will receive status codes from your alarm control panel and display them. You will need the codes to include in your configuration.yaml. Make sure to change the status of your alarm to all states (disarm, arm, armhome) as well as trigger the alarm in all ways possible to get 100% coverage. <strong>Before triggering the alarm it might be good to disable the siren temporarily (can be done in Panel Settings).</strong></li>
|
||||
<li>Once you have the codes, update your <code class="highlighter-rouge">configuration.yaml</code>:
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||||
<span class="s">alarm_control_panel</span><span class="pi">:</span>
|
||||
|
@ -121,12 +121,28 @@ You can change this, however, using the following procedure. This is a more adva
|
|||
</div>
|
||||
<p>Note that you can have more than one code for triggered since every sensor generates its own code. arm, disarm, armhome and standby will all be one code.</p>
|
||||
</li>
|
||||
<li>Start the <code class="highlighter-rouge">egardiaserver.py</code> script on boot of your Home Assistant machine, for example by adding the following to your <code class="highlighter-rouge">/etc/rc.local</code>:
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code> python3 <span class="o">[</span>path/to/]egardiaserver.py &
|
||||
<li>Start the <code class="highlighter-rouge">egardiaserver.py</code> script on boot of your Home Assistant machine, for example by using systemd. To use this method, create a shell script named <code class="highlighter-rouge">egardiaserver.sh</code> that contains the following:
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="nb">source</span> /srv/homeassistant/homeassistant_venv/bin/activate
|
||||
python3 /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pythonegardia/egardiaserver.py -host <span class="o">[</span>YOURHOST] -password <span class="s1">'[YOURPASSWORD]'</span> -ssl True > /tmp/egardiaserver.log 2>&1
|
||||
</code></pre>
|
||||
</div>
|
||||
<p><strong>Do not forget the trailing & here; otherwise you will be having a hard time logging back into the machine.</strong></p>
|
||||
</li>
|
||||
</ol>
|
||||
<p>Mark it as executable (<code class="highlighter-rouge">$ chmod +x</code>) and run <code class="highlighter-rouge">sudo nano /lib/systemd/system/egardiaserver.service</code>. Enter the following into the <code class="highlighter-rouge">egardiaserver.service</code> file:</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="o">[</span>Unit]
|
||||
<span class="nv">Description</span><span class="o">=</span>Egardia Server Service
|
||||
|
||||
<span class="o">[</span>Service]
|
||||
<span class="nv">ExecStart</span><span class="o">=</span>/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pythonegardia/egardiaserver.sh
|
||||
<span class="nv">StandardOutput</span><span class="o">=</span>journal+console
|
||||
|
||||
<span class="o">[</span>Install]
|
||||
<span class="nv">WantedBy</span><span class="o">=</span>multi-user.target
|
||||
<span class="nv">Alias</span><span class="o">=</span>egardiaserver.service
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>Save and then run <code class="highlighter-rouge">sudo systemctl enable egardiaserver.service</code> and <code class="highlighter-rouge">sudo systemctl start egardiaserver.service</code>.</p>
|
||||
<ol>
|
||||
<li>Test your setup and enjoy. The component will update if the alarm status changes, including triggers. You can use this to build your own automations and send notifications as you wish.</li>
|
||||
</ol>
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue