Update Energy Package

This commit is contained in:
2022-08-03 11:31:43 -07:00
parent bed51650a0
commit 57af7235dc
2 changed files with 76 additions and 3 deletions

View File

@@ -1,14 +1,32 @@
# Energy Package
# -----------------------------------------------------------------------------
# Energy Integration Sensor
# Energy Integration Sensors
sensor:
- name: envoy_total_energy
- name: Envoy Total Energy
platform: integration
source: sensor.envoy_202221032900_current_power_production
unit_prefix: k
unit_time: h
- name: Total Energy From Grid
platform: integration
source: sensor.emporia_vue_net_power_from_grid
unit_prefix: k
unit_time: h
- name: Total Energy To Grid
platform: integration
source: sensor.emporia_vue_net_power_to_grid
unit_prefix: k
unit_time: h
- name: Home Total Energy
platform: integration
source: sensor.home_power_consumption
unit_prefix: k
unit_time: h
# -----------------------------------------------------------------------------
# Average Panel Power Sensor
- name: Envoy Inverter Average Power
@@ -45,3 +63,27 @@ template:
}}
{% endif %}
[% endfor %]
# -----------------------------------------------------------------------------
# Emporia Vue To/From Grid Sensors
- name: Emporia Vue Net Power From Grid
unit_of_measurement: W
state: >
{% set net_power = states('sensor.emporia_d937d0_1min')|float %}{{
iif(net_power > 0, net_power, 0)
}}
- name: Emporia Vue Net Power To Grid
unit_of_measurement: W
state: >
{% set net_power = states('sensor.emporia_d937d0_1min')|float %}{{
iif(net_power < 0, -net_power, 0)
}}
# -----------------------------------------------------------------------------
# Home Total Power Consumption Sensor
- name: Home Power Consumption
unit_of_measurement: W
state: "{{
state('sensor.envoy_202221032900_current_power_production)|float
+ state('sensor.emporia_d937d0_1min')|float
}}"