Add name to Utility Meter configuration options (#18525)

This commit is contained in:
René Klomp 2021-07-16 09:18:59 +02:00 committed by GitHub
parent 20de179fb4
commit aa3af8e232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,10 @@ source:
description: The entity ID of the sensor providing utility readings (energy, water, gas, heating).
required: true
type: string
name:
description: The friendly name to use in the GUI.
required: false
type: string
cycle:
description: How often to reset the counter. Valid values are `quarter-hourly`, `hourly`, `daily`, `weekly`, `monthly`, `bimonthly`, `quarterly` and `yearly`. Cycle value `bimonthly` will reset the counter once in two months.
required: true
@ -127,12 +131,14 @@ Sensor `sensor.daily_energy_peak`, `sensor.daily_energy_offpeak`, `sensor.monthl
utility_meter:
daily_energy:
source: sensor.energy
name: Daily Energy
cycle: daily
tariffs:
- peak
- offpeak
monthly_energy:
source: sensor.energy
name: Monthly Energy
cycle: monthly
tariffs:
- peak
@ -178,21 +184,27 @@ So, tracking daily and monthly consumption for each sensor, will require setting
utility_meter:
daily_energy_offpeak:
source: sensor.energy_consumption_tarif_1
name: Daily Energy (Offpeak)
cycle: daily
daily_energy_peak:
source: sensor.energy_consumption_tarif_2
name: Daily Energy (Peak)
cycle: daily
daily_gas:
source: sensor.gas_consumption
name: Daily Gas
cycle: daily
monthly_energy_offpeak:
source: sensor.energy_consumption_tarif_1
name: Monthly Energy (Offpeak)
cycle: monthly
monthly_energy_peak:
source: sensor.energy_consumption_tarif_2
name: Monthly Energy (Peak)
cycle: monthly
monthly_gas:
source: sensor.gas_consumption
name: Monthly Gas
cycle: monthly
```