Update Energy Package

This commit is contained in:
2022-08-03 17:02:18 -07:00
parent 829a6f2cf4
commit 2cfe5288de
2 changed files with 90 additions and 4 deletions

View File

@@ -132,8 +132,8 @@ template:
# Utility Meters
utility_meter:
daily_energy:
source: sensor.emporia_net_energy
name: Daily Energy
source: sensor.total_energy_from_grid
name: Daily Energy Consumption
cycle: daily
tariffs:
- Super Off-Peak
@@ -141,6 +141,36 @@ utility_meter:
- Mid-Peak
- On-Peak
monthly_consumed:
source: sensor.total_energy_from_grid
name: Monthly Energy Consumption
cron: 0 0 10 * *
tariffs:
- Super Off-Peak
- Off-Peak
- Mid-Peak
- On-Peak
monthly_generated:
source: sensor.total_energy_to_grid
name: Monthly Energy Generation
cron: 0 0 10 * *
yearly_consumed:
source: sensor.total_energy_from_grid
name: Yearly Energy Consumption
cron: 0 0 10 7 *
tariffs:
- Super Off-Peak
- Off-Peak
- Mid-Peak
- On-Peak
yearly_generated:
source: sensor.total_energy_to_grid
name: Yearly Energy Generation
cron: 0 0 10 7 *
automation:
# -----------------------------------------------------------------------------
@@ -158,3 +188,16 @@ automation:
data:
option: "{{ sensor.tou_period }}"
- service: select.select_option
target:
entity_id: select.monthly_consumed
data:
option: "{{ sensor.tou_period }}"
- service: select.select_option
target:
entity_id: select.yearly_consumed
data:
option: "{{ sensor.tou_period }}"