Update utility_meter.markdown (#13136)

Pedantic: Energy (kWh or Joule) is not power (W or J/s), correct naming of variables
This commit is contained in:
Jo Verbeeck 2020-04-24 00:55:11 +02:00 committed by GitHub
parent 147af7770d
commit 6822785b6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,19 +170,19 @@ So, tracking daily and monthly consumption for each sensor, will require setting
```yaml ```yaml
utility_meter: utility_meter:
daily_power_offpeak: daily_energy_offpeak:
source: sensor.energy_consumption_tarif_1 source: sensor.energy_consumption_tarif_1
cycle: daily cycle: daily
daily_power_peak: daily_energy_peak:
source: sensor.energy_consumption_tarif_2 source: sensor.energy_consumption_tarif_2
cycle: daily cycle: daily
daily_gas: daily_gas:
source: sensor.gas_consumption source: sensor.gas_consumption
cycle: daily cycle: daily
monthly_power_offpeak: monthly_energy_offpeak:
source: sensor.energy_consumption_tarif_1 source: sensor.energy_consumption_tarif_1
cycle: monthly cycle: monthly
monthly_power_peak: monthly_energy_peak:
source: sensor.energy_consumption_tarif_2 source: sensor.energy_consumption_tarif_2
cycle: monthly cycle: monthly
monthly_gas: monthly_gas:
@ -197,13 +197,13 @@ Additionally, you can add template sensors to compute daily and monthly total us
sensor: sensor:
- platform: template - platform: template
sensors: sensors:
daily_power: daily_energy:
friendly_name: Daily Power friendly_name: Daily Energy
unit_of_measurement: kWh unit_of_measurement: kWh
value_template: "{{ states('sensor.daily_power_offpeak')|float + states('sensor.daily_power_peak')|float }}" value_template: "{{ states('sensor.daily_energy_offpeak')|float + states('sensor.daily_energy_peak')|float }}"
monthly_power: monthly_energy:
friendly_name: Monthly Power friendly_name: Monthly Energy
unit_of_measurement: kWh unit_of_measurement: kWh
value_template: "{{ states('sensor.monthly_power_offpeak')|float + states('sensor.monthly_power_peak')|float }}" value_template: "{{ states('sensor.monthly_energy_offpeak')|float + states('sensor.monthly_energy_peak')|float }}"
``` ```
{% endraw %} {% endraw %}