Update Energy Package

This commit is contained in:
2022-08-10 12:56:32 -07:00
parent a993e0110f
commit b2446aa9ac

View File

@@ -107,7 +107,7 @@ template:
- name: TOU Period - name: TOU Period
icon: mdi:calendar-clock icon: mdi:calendar-clock
state: > state: >
{% set is_weekend = now().strftime("%w") == 0 or now().strftime("%w") == 6 %} {% set is_weekend = now().strftime("%w") == "0" or now().strftime("%w") == "6" %}
{% if states('sensor.tou_season') == "Summer" %} {% if states('sensor.tou_season') == "Summer" %}
{% if now().hour >= 16 and now().hour < 21 %} {% if now().hour >= 16 and now().hour < 21 %}
{% if is_weekend %} {% if is_weekend %}
@@ -144,7 +144,7 @@ utility_meter:
monthly_consumed: monthly_consumed:
source: sensor.total_energy_from_grid source: sensor.total_energy_from_grid
name: Monthly Energy Consumption name: Monthly Energy Consumption
cron: 0 0 10 * * cron: 0 0 8 * *
tariffs: tariffs:
- Super Off-Peak - Super Off-Peak
- Off-Peak - Off-Peak
@@ -154,12 +154,12 @@ utility_meter:
monthly_generated: monthly_generated:
source: sensor.total_energy_to_grid source: sensor.total_energy_to_grid
name: Monthly Energy Generation name: Monthly Energy Generation
cron: 0 0 10 * * cron: 0 0 8 * *
yearly_consumed: yearly_consumed:
source: sensor.total_energy_from_grid source: sensor.total_energy_from_grid
name: Yearly Energy Consumption name: Yearly Energy Consumption
cron: 0 0 10 7 * cron: 0 0 15 7 *
tariffs: tariffs:
- Super Off-Peak - Super Off-Peak
- Off-Peak - Off-Peak
@@ -169,7 +169,7 @@ utility_meter:
yearly_generated: yearly_generated:
source: sensor.total_energy_to_grid source: sensor.total_energy_to_grid
name: Yearly Energy Generation name: Yearly Energy Generation
cron: 0 0 10 7 * cron: 0 0 15 7 *
automation: automation: