Change type of offset in utility_meter (#8459)

* change offset type

* missing "

Co-Authored-By: dgomes <diogogomes@gmail.com>
This commit is contained in:
Diogo Gomes 2019-03-06 12:54:52 +00:00 committed by Charles Garwood
parent ae3f96f66c
commit 4b62a85f8d

View File

@ -46,9 +46,10 @@ cycle:
required: true required: true
type: string type: string
offset: 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 required: false
default: 0 default: 0
type: time
type: integer type: integer
net_consumption: net_consumption:
description: Set this to True if you would like to treat the source as a net meter. This will allow your counter to go both positive and negative. description: Set this to True if you would like to treat the source as a net meter. This will allow your counter to go both positive and negative.
@ -62,6 +63,16 @@ tariffs:
type: list type: list
{% endconfiguration %} {% 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 Services %}
### {% linkable_title Service `utility_meter.reset` %} ### {% linkable_title Service `utility_meter.reset` %}