Skip to content

Commit 22e7578

Browse files
jeroenterheerdtMartinHjelmare
authored andcommitted
Update alarm_control_panel.egardia.markdown (home-assistant#4282)
* Update alarm_control_panel.egardia.markdown * Update alarm_control_panel.egardia.markdown
1 parent bb938dd commit 22e7578

File tree

1 file changed

+8
-30
lines changed

1 file changed

+8
-30
lines changed

source/_components/alarm_control_panel.egardia.markdown

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ ha_release: 0.51
1212
ha_category: Alarm
1313
---
1414

15-
The `egardia` platform enables the ability to control an [Egardia](http://egardia.com/)/Woonveilig control panel. These alarm panels are known under different brand names across the world, including Woonveilig in the Netherlands. This was tested on a Gate01 version of the Egardia/Woonveilig platform.
15+
The `egardia` platform enables the ability to control an [Egardia](http://egardia.com/)/[Woonveilig](http://woonveilig.nl) control panel. These alarm panels are known under different brand names across the world, including Woonveilig in the Netherlands. This was tested on a GATE-01 and GATE-02 version of the Egardia/Woonveilig platform.
1616

1717
You will need to know the IP of your alarm panel on your local network. Test if you can login to the panel by browsing to the IP address and log in using your Egardia/Woonveilig account.
1818

19-
To enable this, add the following lines to your `configuration.yaml` file:
19+
To enable the integration with your alarm panel, add the following lines to your `configuration.yaml` file:
2020

2121
```yaml
2222
# Example configuration.yaml entry
@@ -32,17 +32,18 @@ Configuration variables:
3232
- **host** (*Required*): The local IP address of the Egardia/Woonveilig alarm panel.
3333
- **username** (*Required*): Username for the Egardia/Woonveilig account.
3434
- **password** (*Required*): Password for Egardia/Woonveilig account.
35+
- **version** (*Optional*): The version of the Egardia system. `GATE-01` and `GATE-02` are currently supported. Defaults to `GATE-01`.
3536
- **port** (*Optional*): The port of the alarm panel. Defaults to 80.
3637
- **name** (*Optional*): Name to use for the alarm panel. Defaults to `Egardia`.
3738
- **report_server_enabled** (*Optional*): Enable reporting by server. Defaults to `False`.
38-
- **report_server_port** (*Optional*): Port of the Egardia server. Defaults to 85.
39+
- **report_server_port** (*Optional*): Port of the Egardia server. Defaults to 52010.
3940
- **report_server_codes** list (*Optional*): List of codes for the different states.
4041

4142
Note that this basic configuration will only enable you to read the armed/armed away/disarmed status of your alarm and will **not** update the status if the alarm is triggered. This is because of how Egardia built their system. The alarm triggers normally go through their servers.
4243
You can change this, however, using the following procedure. This is a more advanced configuration.
4344

4445
1. 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.
45-
2. Once logged in, go to *System Settings*, *Report* 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. **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.** Maybe, that is just what you want. Make sure to save your settings by selecting 'OK'.
46+
2. Once logged in, go to *System Settings*, *Report* and change the Server Address for your primary server to the IP or hostname of your Home Assistant machine. You can leave the port number set to 52010 or change it to anything you like. **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.** Maybe, that is just what you want. Make sure to save your settings by selecting 'OK'.
4647
3. On your Home Assistant machine run `$ sudo python3 egardiaserver.py`. Refer to the [python-egardia repository](https://github.com/jeroenterheerdt/python-egardia) 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, home) by all means possible (all users, remotes, web login, app) as well as trigger the alarm in all ways possible to get 100% coverage. **Before triggering the alarm it might be good to disable the siren temporarily (can be done in Panel Settings).**
4748
4. Once you have the codes, update your `configuration.yaml`:
4849
```yaml
@@ -53,7 +54,7 @@ alarm_control_panel:
5354
  username: YOUR_USERNAME
5455
  password: YOUR_PASSWORD
5556
report_server_enabled: True
56-
report_server_port: PORT_OF_EGARDIASERVER (85 as per the instructions above)
57+
report_server_port: PORT_OF_EGARDIASERVER (optional, defaults to 52010)
5758
report_server_codes:
5859
arm: XXXXXXXXXXXXXXXX, XXXXXXXXXXXXXXXX
5960
disarm: XXXXXXXXXXXXXXXX, XXXXXXXXXXXXXXXX
@@ -62,29 +63,6 @@ alarm_control_panel:
6263
ignore: XXXXXXXXXXXXXXXX
6364
```
6465

65-
Note that for triggered, arm and disarm multiple codes can be entered since each sensor triggers with a different code and each user of the system has its own arm and disarm codes. Also note that your system will do regular system checks which will be reported as well. Since Home Assistant provides no way of handling them properly, you can enter those codes as ignore (again, multiple codes can be used here). The egardia component will ignore these codes and continue returning the old status if it receives any of the codes that are listed as ignore. This is useful for example when you have armed your alarm at night: normally a system check will occur at least once during the night and if that code is not specified anywhere Home Assistant will set the status of the alarm to its default, which is unarmed. This is in fact wrong. Listing the code as ignore changes this behavior and Home Assistant will continue to show the status the alarm is in (disarm, arm, home, triggered) even when system checks occur.
66+
Note that for *triggered*, *arm* and *disarm* multiple codes can be entered since each sensor triggers with a different code and each user of the system has its own arm and disarm codes. Also note that your system will do regular system checks which will be reported as well. Since Home Assistant provides no way of handling them properly, you can enter those codes as *ignore* (again, multiple codes can be used here). The egardia component will ignore these codes and continue returning the old status if it receives any of the codes that are listed as ignore. This is useful for example when you have armed your alarm at night: normally a system check will occur at least once during the night and if that code is not specified anywhere Home Assistant will set the status of the alarm to its default, which is unarmed. This is in fact wrong. Listing the code as ignore changes this behavior and Home Assistant will continue to show the status the alarm is in (disarm, arm, home, triggered) even when system checks occur.
6667

67-
5. Start the `egardiaserver.py` script on boot of your Home Assistant machine, for example by using `systemctl` by `systemd`. To use this method, create a shell script named `egardiaserver.sh` that contains something like the following:
68-
69-
```bash
70-
$ source /srv/homeassistant/bin/activate
71-
$ python3 /srv/homeassistant/lib/python3.5/site-packages/pythonegardia/egardiaserver.py -host [YOURHOST] -password '[YOURPASSWORD]' -ssl True > /tmp/egardiaserver.log 2>&1
72-
```
73-
74-
Mark it as executable (`$ chmod +x`) and run `sudo nano /lib/systemd/system/egardiaserver.service`. Enter the following into the `egardiaserver.service` file:
75-
76-
```bash
77-
[Unit]
78-
Description=Egardia Server Service
79-
80-
[Service]
81-
ExecStart=/bin/bash /srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pythonegardia/egardiaserver.sh
82-
StandardOutput=journal+console
83-
84-
[Install]
85-
WantedBy=multi-user.target
86-
Alias=egardiaserver.service
87-
```
88-
89-
Save and then run `sudo systemctl enable egardiaserver.service` and `sudo systemctl start egardiaserver.service`.
90-
6. 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.
68+
5. 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. *Note*: previous versions required a separate egardiaserver to be set up. This is no longer necessary and corresponding system services can be removed (using systemctl).

0 commit comments

Comments
 (0)