Add cron option (#19078)

This commit is contained in:
Diogo Gomes 2021-08-25 20:55:59 +01:00 committed by GitHub
parent 8aace6e2e0
commit a2a64065f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,10 @@ offset:
default: 0
type: time
type: integer
cron:
description: This option is *mutually exclusive* of `cycle` and `offset`. It provides an advanced method of defining when should the counter be reset. It follows common [crontab syntax](https://crontab.guru).
required: true
type: string
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.
required: false