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

@@ -3,12 +3,18 @@
# -----------------------------------------------------------------------------
# Energy Integration Sensor
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: 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
@@ -393,3 +399,28 @@ template:
) | round(1)
}}
{% endif %}
# -----------------------------------------------------------------------------
# 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
}}"