From 1f19d39173043400b86275f6bf566705201aaf5e Mon Sep 17 00:00:00 2001 From: Nick Whyte Date: Mon, 25 Feb 2019 08:37:00 +1100 Subject: [PATCH 1/2] ness_alarm: Allow configuration of update_interval --- source/_components/ness_alarm.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_components/ness_alarm.markdown b/source/_components/ness_alarm.markdown index 7b57eb1ffcce..e9581548c5f1 100644 --- a/source/_components/ness_alarm.markdown +++ b/source/_components/ness_alarm.markdown @@ -59,6 +59,11 @@ port: description: The port on which the IP232 module listens for clients. required: true type: integer +update_interval: + description: The frequency a full polling update should occur. Use a small value if your alarm does not support `P199E 6E` (older versions) + required: false + type: time period + default: 1 minute zones: description: List of zones to add required: false From 4b35f1d9d612bd8adfd1ddf7134c74427e0bb598 Mon Sep 17 00:00:00 2001 From: Nick Whyte Date: Tue, 26 Feb 2019 08:46:17 +1100 Subject: [PATCH 2/2] update_interval -> scan_interval --- source/_components/ness_alarm.markdown | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/source/_components/ness_alarm.markdown b/source/_components/ness_alarm.markdown index e9581548c5f1..bbce3c5112a3 100644 --- a/source/_components/ness_alarm.markdown +++ b/source/_components/ness_alarm.markdown @@ -59,11 +59,11 @@ port: description: The port on which the IP232 module listens for clients. required: true type: integer -update_interval: - description: The frequency a full polling update should occur. Use a small value if your alarm does not support `P199E 6E` (older versions) +scan_interval: + description: "Time interval between updates. Supported formats: `scan_interval: 'HH:MM:SS'`, `scan_interval: 'HH:MM'` and Time period dictionary (see example below)." required: false - type: time period - default: 1 minute + default: '00:01:00' + type: time zones: description: List of zones to add required: false @@ -83,3 +83,15 @@ zones: default: motion type: string {% endconfiguration %} + +#### {% linkable_title Time period dictionary example %} + +```yaml +scan_interval: + # At least one of these must be specified: + days: 0 + hours: 0 + minutes: 0 + seconds: 10 + milliseconds: 0 +```