From 139d9724afe9c0c8308fab0585a0b912665192f6 Mon Sep 17 00:00:00 2001 From: Diogo Gomes Date: Sun, 10 Feb 2019 01:15:25 +0000 Subject: [PATCH 1/2] change offset type --- source/_components/utility_meter.markdown | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/source/_components/utility_meter.markdown b/source/_components/utility_meter.markdown index 3e4b5a3b2a39..906f18760a20 100644 --- a/source/_components/utility_meter.markdown +++ b/source/_components/utility_meter.markdown @@ -42,10 +42,10 @@ cycle: required: true type: string offset: - description: Cycle reset occur at the beginning of the period (0 minutes, 0h00 hours, Monday, day 1, January). This option enables the offsetting of these beginnings. + description: Cycle reset occur at the beginning of the period (0 minutes, 0h00 hours, Monday, day 1, January). This option enables the offsetting of these beginnings. Supported formats: `offset: 'HH:MM:SS'`, `offset: 'HH:MM'` and Time period dictionary (see example below)." required: false default: 0 - type: integer + type: time tariffs: description: List of tariffs supported by the utility meter. required: false @@ -53,6 +53,16 @@ tariffs: type: list {% endconfiguration %} +#### {% linkable_title Time period dictionary example %} + +```yaml +offset: + # At least one of these must be specified: + days: 1 + hours: 0 + minutes: 0 +``` + # {% linkable_title Services %} ### {% linkable_title Service `utility_meter.reset` %} From 3cf9978708f4fda443c6e132b67fbe46ca206074 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Sun, 10 Feb 2019 14:10:07 +0000 Subject: [PATCH 2/2] missing " Co-Authored-By: dgomes --- source/_components/utility_meter.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/utility_meter.markdown b/source/_components/utility_meter.markdown index 906f18760a20..95b068955368 100644 --- a/source/_components/utility_meter.markdown +++ b/source/_components/utility_meter.markdown @@ -42,7 +42,7 @@ cycle: required: true type: string offset: - description: Cycle reset occur at the beginning of the period (0 minutes, 0h00 hours, Monday, day 1, January). This option enables the offsetting of these beginnings. Supported formats: `offset: 'HH:MM:SS'`, `offset: 'HH:MM'` and Time period dictionary (see example below)." + description: "Cycle reset occur at the beginning of the period (0 minutes, 0h00 hours, Monday, day 1, January). This option enables the offsetting of these beginnings. Supported formats: `offset: 'HH:MM:SS'`, `offset: 'HH:MM'` and Time period dictionary (see example below)." required: false default: 0 type: time