Skip to content

Commit 4b62a85

Browse files
dgomescgarwood
authored andcommitted
Change type of offset in utility_meter (home-assistant#8459)
* change offset type * missing " Co-Authored-By: dgomes <diogogomes@gmail.com>
1 parent ae3f96f commit 4b62a85

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

source/_components/utility_meter.markdown

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ cycle:
4646
required: true
4747
type: string
4848
offset:
49-
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.
49+
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)."
5050
required: false
5151
default: 0
52+
type: time
5253
type: integer
5354
net_consumption:
5455
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:
6263
type: list
6364
{% endconfiguration %}
6465

66+
### {% linkable_title Time period dictionary example %}
67+
68+
```yaml
69+
offset:
70+
# At least one of these must be specified:
71+
days: 1
72+
hours: 0
73+
minutes: 0
74+
```
75+
6576
## {% linkable_title Services %}
6677

6778
### {% linkable_title Service `utility_meter.reset` %}

0 commit comments

Comments
 (0)