Add support for multiple ZoneMinder installations (#8129)

This commit is contained in:
Rohan Kapoor 2019-01-16 01:17:12 -08:00 committed by Martin Hjelmare
parent d42a3d92ff
commit bff9974b62

View File

@ -21,7 +21,7 @@ The ZoneMinder component sets up the integration with your [ZoneMinder](https://
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
zoneminder: zoneminder:
host: ZM_HOST - host: ZM_HOST
``` ```
{% configuration %} {% configuration %}
@ -64,7 +64,7 @@ password:
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
zoneminder: zoneminder:
host: ZM_HOST - host: ZM_HOST
path: ZM_PATH path: ZM_PATH
path_zms: ZM_PATH_ZMS path_zms: ZM_PATH_ZMS
ssl: true ssl: true
@ -79,6 +79,7 @@ Once loaded, the `zoneminder` platform will expose a service (`set_run_state`) t
| Service data attribute | Optional | Description | | Service data attribute | Optional | Description |
|:-----------------------|:---------|:----------------------------------| |:-----------------------|:---------|:----------------------------------|
| `id` | no | Host of the ZoneMinder instance. |
| `name` | no | Name of the new run state to set. | | `name` | no | Name of the new run state to set. |
For example, if your ZoneMinder instance was configured with a run state called "Home", you could write an [automation](/getting-started/automation/) that changes ZoneMinder to the "Home" run state by including the following [action](/getting-started/automation-action/): For example, if your ZoneMinder instance was configured with a run state called "Home", you could write an [automation](/getting-started/automation/) that changes ZoneMinder to the "Home" run state by including the following [action](/getting-started/automation-action/):
@ -86,5 +87,6 @@ For example, if your ZoneMinder instance was configured with a run state called
action: action:
service: zoneminder.set_run_state service: zoneminder.set_run_state
data: data:
id: ZM_HOST
name: Home name: Home
``` ```