Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update utility_meter.markdown #13136

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 10 additions & 10 deletions source/_integrations/utility_meter.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,19 @@ So, tracking daily and monthly consumption for each sensor, will require setting

```yaml
utility_meter:
daily_power_offpeak:
daily_energy_offpeak:
source: sensor.energy_consumption_tarif_1
cycle: daily
daily_power_peak:
daily_energy_peak:
source: sensor.energy_consumption_tarif_2
cycle: daily
daily_gas:
source: sensor.gas_consumption
cycle: daily
monthly_power_offpeak:
monthly_energy_offpeak:
source: sensor.energy_consumption_tarif_1
cycle: monthly
monthly_power_peak:
monthly_energy_peak:
source: sensor.energy_consumption_tarif_2
cycle: monthly
monthly_gas:
Expand All @@ -197,13 +197,13 @@ Additionally, you can add template sensors to compute daily and monthly total us
sensor:
- platform: template
sensors:
daily_power:
friendly_name: Daily Power
daily_energy:
friendly_name: Daily Energy
unit_of_measurement: kWh
value_template: "{{ states('sensor.daily_power_offpeak')|float + states('sensor.daily_power_peak')|float }}"
monthly_power:
friendly_name: Monthly Power
value_template: "{{ states('sensor.daily_energy_offpeak')|float + states('sensor.daily_energy_peak')|float }}"
monthly_energy:
friendly_name: Monthly Energy
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 %}