Skip to content

Commit 6822785

Browse files
authored
Update utility_meter.markdown (#13136)
Pedantic: Energy (kWh or Joule) is not power (W or J/s), correct naming of variables
1 parent 147af77 commit 6822785

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/_integrations/utility_meter.markdown

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,19 +170,19 @@ So, tracking daily and monthly consumption for each sensor, will require setting
170170

171171
```yaml
172172
utility_meter:
173-
daily_power_offpeak:
173+
daily_energy_offpeak:
174174
source: sensor.energy_consumption_tarif_1
175175
cycle: daily
176-
daily_power_peak:
176+
daily_energy_peak:
177177
source: sensor.energy_consumption_tarif_2
178178
cycle: daily
179179
daily_gas:
180180
source: sensor.gas_consumption
181181
cycle: daily
182-
monthly_power_offpeak:
182+
monthly_energy_offpeak:
183183
source: sensor.energy_consumption_tarif_1
184184
cycle: monthly
185-
monthly_power_peak:
185+
monthly_energy_peak:
186186
source: sensor.energy_consumption_tarif_2
187187
cycle: monthly
188188
monthly_gas:
@@ -197,13 +197,13 @@ Additionally, you can add template sensors to compute daily and monthly total us
197197
sensor:
198198
- platform: template
199199
sensors:
200-
daily_power:
201-
friendly_name: Daily Power
200+
daily_energy:
201+
friendly_name: Daily Energy
202202
unit_of_measurement: kWh
203-
value_template: "{{ states('sensor.daily_power_offpeak')|float + states('sensor.daily_power_peak')|float }}"
204-
monthly_power:
205-
friendly_name: Monthly Power
203+
value_template: "{{ states('sensor.daily_energy_offpeak')|float + states('sensor.daily_energy_peak')|float }}"
204+
monthly_energy:
205+
friendly_name: Monthly Energy
206206
unit_of_measurement: kWh
207-
value_template: "{{ states('sensor.monthly_power_offpeak')|float + states('sensor.monthly_power_peak')|float }}"
207+
value_template: "{{ states('sensor.monthly_energy_offpeak')|float + states('sensor.monthly_energy_peak')|float }}"
208208
```
209209
{% endraw %}

0 commit comments

Comments
 (0)