Egardia: Adding configuration tag according to new docs (#4910)

* Updating egardia.markdown with configuration tag

* Updating egardia.markdown with linkable titles.

* Fixing typo.
This commit is contained in:
Jeroen ter Heerdt 2018-03-13 18:54:52 +01:00 committed by Martin Hjelmare
parent ebac258f4f
commit a537bde049

View File

@ -2,7 +2,7 @@
layout: page layout: page
title: "Egardia" title: "Egardia"
description: "Instructions how to setup Egardia / Woonveilig within Home Assistant." description: "Instructions how to setup Egardia / Woonveilig within Home Assistant."
date: 2018-03-02 09:00 date: 2018-03-13 09:00
sidebar: true sidebar: true
comments: false comments: false
sharing: true sharing: true
@ -16,29 +16,81 @@ The `egardia` platform enables the ability to control an [Egardia](http://egardi
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. 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.
To enable the integration with your alarm panel, add the following lines to your `configuration.yaml` file: ## {% linkable_title Basic configuration %}
```yaml To enable the integration with your alarm panel, add the following lines to your `configuration.yaml` file:
# Example configuration.yaml entry ```yaml
egardia: # Example configuration.yaml entry
host: YOUR_HOST egardia:
username: YOUR_USERNAME host: YOUR_HOST
password: YOUR_PASSWORD username: YOUR_USERNAME
password: YOUR_PASSWORD
``` ```
Configuration variables: {% configuration %}
host:
- **host** (*Required*): The local IP address of the Egardia/Woonveilig alarm panel. description: The local IP address of the Egardia/Woonveilig alarm panel.
- **username** (*Required*): Username for the Egardia/Woonveilig account. required: true
- **password** (*Required*): Password for Egardia/Woonveilig account. type: string
- **version** (*Optional*): The version of the Egardia system. `GATE-01`, `GATE-02` and `GATE-03` are currently supported. Defaults to `GATE-01`. username:
- **port** (*Optional*): The port of the alarm panel. Defaults to 80. description: Username for the Egardia/Woonveilig account.
- **report_server_enabled** (*Optional*): Enable reporting by server. Defaults to `False`. required: true
- **report_server_port** (*Optional*): Port of the Egardia server. Defaults to 52010. type: string
- **report_server_codes** list (*Optional*): List of codes for the different states. password:
description: Password for Egardia/Woonveilig account.
required: true
type: string
version:
description: The version of the Egardia system. `GATE-01`, `GATE-02` and `GATE-03` are currently supported.
required: false
type: string
default: 'GATE-01'
port:
description: The port of the alarm panel.
required: false
type: int
default: 80
report_server_enabled:
description: Enable reporting by server.
required: false
type: string
default: false
report_server_port:
description: Port of the Egardia server.
required: false
type: int
default: 52010
report_server_codes:
description: Map of list of codes for the different states.
required: false
type: map
keys:
arm:
description: List of codes for the 'arm' state.
required: false
type: list
disarm:
description: List of codes for the 'disarm' state.
required: false
type: list
armhome:
description: List of codes for the 'armhome' state.
required: false
type: list
triggered:
description: List of codes for the 'triggered' state.
required: false
type: list
ignore:
description: List of codes that will be ignored.
required: false
type: list
{% endconfiguration %}
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. 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.
You can change this, however, using the following procedure. This is a more advanced configuration. You can change this, however, using the following procedure. This is a more advanced (and more useful) configuration.
## {% linkable_title Advanced configuration %}
1. Log in to 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. 1. Log in to 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.
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'. 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'.
@ -47,9 +99,9 @@ You can change this, however, using the following procedure. This is a more adva
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
egardia: egardia:
  host: YOUR_HOST host: YOUR_HOST
  username: YOUR_USERNAME username: YOUR_USERNAME
  password: YOUR_PASSWORD password: YOUR_PASSWORD
report_server_enabled: True report_server_enabled: True
report_server_port: PORT_OF_EGARDIASERVER (optional, defaults to 52010) report_server_port: PORT_OF_EGARDIASERVER (optional, defaults to 52010)
report_server_codes: report_server_codes:
@ -63,5 +115,3 @@ You can change this, however, using the following procedure. This is a more adva
Note that for all code groups (*arm*,*disarm*, etc) 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. Note that for all code groups (*arm*,*disarm*, etc) 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.
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). 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).