Update Energy Sensor

This commit is contained in:
2023-03-04 12:06:49 -08:00
parent f659406986
commit 39fb3ccd1d

View File

@@ -443,6 +443,14 @@ template:
iif(net_power > 0, net_power, 0) iif(net_power > 0, net_power, 0)
}} }}
- name: Emporia Vue Clean Power From Grid
device_class: power
unit_of_measurement: W
state: >
{% set net_power = states('sensor.emporia_d937d0_1min')|float %}{{
iif(net_power > 0, net_power, 0) * states('sensor.grid_fossil_fuel_percentage', 0)|float
}}
- name: Emporia Vue Net Power To Grid - name: Emporia Vue Net Power To Grid
device_class: power device_class: power
unit_of_measurement: W unit_of_measurement: W
@@ -505,6 +513,16 @@ utility_meter:
- Mid-Peak - Mid-Peak
- On-Peak - On-Peak
daily_low_carbon:
source: sensor.clean_energy_from_grid
name: Daily Low Carbon Consumption
cycle: daily
daily_generated:
source: sensor.total_energy_to_grid
name: Daily Energy Generation
cycle: daily
monthly_consumed: monthly_consumed:
source: sensor.total_energy_from_grid source: sensor.total_energy_from_grid
name: Monthly Energy Consumption name: Monthly Energy Consumption