Update Zoneminder component configuration variable (#6718)

* Update Zoneminder component configuration variable

* Fix description
This commit is contained in:
Klaas Schoute 2018-10-12 21:24:30 +02:00 committed by Fabian Affolter
parent af1ba2aa7e
commit a68794ae0e
3 changed files with 66 additions and 25 deletions

View File

@ -13,7 +13,6 @@ ha_release: 0.31
ha_iot_class: "Local Polling" ha_iot_class: "Local Polling"
--- ---
The `zoneminder` sensor platform lets you monitor the current state of your [ZoneMinder](https://www.zoneminder.com) install including the number of events and the current state of the cameras. The `zoneminder` sensor platform lets you monitor the current state of your [ZoneMinder](https://www.zoneminder.com) install including the number of events and the current state of the cameras.
<p class='note'> <p class='note'>
@ -29,13 +28,25 @@ sensor:
include_archived: false include_archived: false
``` ```
Configuration variables: {% configuration %}
include_archived:
- **include_archived** (*Optional*): Whether to include archived ZoneMinder events in event counts. Default is `false`. description: Whether to include archived ZoneMinder events in event counts.
- **monitored_conditions** array (*Optional*): Event count sensors to display in the frontend. Default is 'all'. required: false
- **all**: All events. default: false
- **month**: Events in the last month. type: boolean
- **week**: Events in the last week. monitored_conditions:
- **day**: Events in the last day. description: Event count sensors to display in the frontend.
- **hour**: Events in the last hour. required: false
type: list
keys:
all:
description: All events.
month:
description: Events in the last month.
week:
description: Events in the last week.
day:
description: Events in the last day.
hour:
description: Events in the last hour.
{% endconfiguration %}

View File

@ -13,7 +13,6 @@ ha_release: 0.31
ha_iot_class: "Local Polling" ha_iot_class: "Local Polling"
--- ---
The `zoneminder` switch platform allows you to toggle the current function of all cameras attached to your [ZoneMinder](https://www.zoneminder.com) instance. The `zoneminder` switch platform allows you to toggle the current function of all cameras attached to your [ZoneMinder](https://www.zoneminder.com) instance.
<p class='note'> <p class='note'>
@ -30,11 +29,16 @@ switch:
command_off: Monitor command_off: Monitor
``` ```
Configuration variables: {% configuration %}
command_on:
- **command_on** (*Required*): The function you want the camera to run when turned on. description: The function you want the camera to run when turned on.
- **command_off** (*Required*): The function you want the camera to run when turned off. required: true
type: string
command_off:
description: The function you want the camera to run when turned off.
required: true
type: string
{% endconfiguration %}
<p class='note'> <p class='note'>
The default functions installed by ZoneMinder are: None, Monitor, Modect, Record, Mocord, Nodect. The default functions installed by ZoneMinder are: None, Monitor, Modect, Record, Mocord, Nodect.

View File

@ -22,14 +22,40 @@ zoneminder:
host: ZM_HOST host: ZM_HOST
``` ```
Configuration variables: {% configuration %}
- **host** (*Required*): Your ZoneMinder server's host (and optional port), not including the scheme. host:
- **path** (*Optional*): Path to your ZoneMinder install. Defaults to `/zm/`. description: Your ZoneMinder server's host (and optional port), not including the scheme.
- **path_zms** (*Optional*): Path to the CGI script for streaming. This should match `PATH_ZMS` in ZM's "Paths" settings. Defaults to `/zm/cgi-bin/nph-zms`. required: true
- **ssl** (*Optional*): Set to `true` if your ZoneMinder installation is using SSL. Default to `false`. type: string
- **verify_ssl** (*Optional*): Verify the certification of the endpoint. Default to `true`. path:
- **username** (*Optional*): Your ZoneMinder username. description: Path to your ZoneMinder install.
- **password** (*Optional*): Your ZoneMinder password. Required if `OPT_USE_AUTH` is enabled in ZM. required: false
default: "`/zm/`"
type: string
path_zms:
description: Path to the CGI script for streaming. This should match `PATH_ZMS` in ZM's "Paths" settings.
required: false
default: "`/zm/cgi-bin/nph-zms`"
type: string
ssl:
description: Set to `true` if your ZoneMinder installation is using SSL.
required: false
default: false
type: boolean
verify_ssl:
description: Verify the certification of the endpoint.
required: false
default: true
type: boolean
username:
description: Your ZoneMinder username.
required: false
type: string
password:
description: Your ZoneMinder password. Required if `OPT_USE_AUTH` is enabled in ZM.
required: false
type: string
{% endconfiguration %}
### {% linkable_title Full configuration %} ### {% linkable_title Full configuration %}