I have 3 Emporia Vue2 devices with Solar, a main panel, a Generac generator sub-panel and a 2nd subpanel feeding an addition.
Each subpanel is connected to my meter BEFORE the “main panel”.
I’ve got the “mains” clamps from the three Emporia Vues connected to the “feed” points on the mains and subpanels.
My solar feed is through a 60A breaker pair in my MAIN panel.
I’d like to measure what I put back on the grid, but the “mains to grid” from the emporia shows what’s going “toward the meter” from the MAIN panel, which doesn’t pick up what the two subpanels are consuming and so over-reports.
I put the following in a template; but I know it’s not quite there, since I need to somehow get it to increase over time and reset every day.
If I could get at what the Energy Dashboard reports as “Total Returned” on the hourly graph and report that as “Return to Grid” in the Energy Grid Setup, that would do the trick.
Any suggestions appreciated!
- sensor:
- name: “Energy to Grid”
unit_of_measurement: “kWh”
unique_id: return_to_grid
device_class: energy
state_class: total_increasing
state: >
{% set mp = states(‘sensor.main_panel_energy_today’) | float %}
{% set gp = states(‘sensor.generator_subpanel_energy_today’) | float %}
{% set dp = states(‘sensor.downstairs_subpanel_energy_today’) | float %}
{% set solarp = states(‘sensor.solar_energy_today’) | float %}
{% set solarnet = ((solarp - (mp + gp + dp)), 0) | max %}
{{ solarnet }}
- name: “Energy to Grid”