magico13 / ha-emporia-vue

Home Assistant Integration for Emporia Vue Energy Monitor
MIT License
475 stars 64 forks source link

Multiple Sensors and Energy Dashboard #291

Closed mbhforum closed 1 month ago

mbhforum commented 1 month ago

Not sure if this is an issue or by design, but I am seeing 3 sensors for each breaker. What does each sensor represent? If I want to integrate these sensors into HA's energy dashboard, which sensors should I pick and which radio option should? image

image

magico13 commented 1 month ago

They reset at different times, same as selecting the Minute, Day, and Month scales in the app. Minute is average power over a minute, the other two are energy used today or this month.

For the energy dashboard, pick the Day sensor since it has its value updated most frequently. The 1 minute sensor is power, not energy, so it won't be an option to choose from.

magico13 commented 1 month ago

For the radio options for cost, that's asking about your electricity price. If it's a fixed number (eg 15 cents per kwh) then just use that number. Otherwise if you're on a time of use plan or it changes daily or something then you'll want to do some work to setup a sensor that gives the current price.

Or if you don't care about cost tracking just select that option.

Also if it's not clear, for the overall usage from the grid you'll want to pick your main 1,2,3 device (and if you have solar then there's a TotalFromGrid and TotalToGrid to use instead, for the appropriate options). The other channels should be brought in as individual devices afterward.

mbhforum commented 1 month ago

Thanks! Since Emporia is configured with my local utility we with the costss, I picked the same D sensor for costs, will that tell HA how much I am spending?

magico13 commented 1 month ago

No, it will not. That information is not currently exposed to Home Assistant through the API.

mbhforum commented 1 month ago

I setup a HA helper group called "Elecrtical Panels" containing the two seperate panel readings and using the sum to calculate the kWh. It measured the kWh fine yesterday but today I woke up and saw a negative kWh number on my energy dashboard.

Any idea why this is happening?

image

image

magico13 commented 1 month ago

Make sure your timezone on your Home Assistant server matches the timezone you have set in the Emporia app for the devices. If they don't then the reset at midnight won't align correctly and it will see the drop back to 0 as negative usage.

mbhforum commented 1 month ago

Both are set to EST. I read in the HA Reddit sub, someone else had the issue and they added all of these individual devices instead of the Panel as a whole. I will see if that works and doesn't cause a negative value tomorrow.

Esprit1st commented 1 month ago

Do you not have the "MainsFromGrid" Sensor? That's what I used as a single sensor for the energy dashboard and it's been working perfect for about 2 years.On Jul 22, 2024 08:30, mbhforum @.***> wrote: Both are set to EST. I read in the HA Reddit sub, someone else had the issue and they added all of these individual devices instead of the Panel as a whole. I will see if that works and doesn't cause a negative value tomorrow.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

mbhforum commented 1 month ago

Do you not have the "MainsFromGrid" Sensor? That's what I used as a single sensor for the energy dashboard and it's been working perfect for about 2 years.On Jul 22, 2024 08:30, mbhforum @.> wrote: Both are set to EST. I read in the HA Reddit sub, someone else had the issue and they added all of these individual devices instead of the Panel as a whole. I will see if that works and doesn't cause a negative value tomorrow. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

I do not. I only see 1D, 1MIN and 1MON sensors for each breaker and for each panel. I also have a Balance sensor for each panel as well. Lastly, I have a GEN2 version, not GEN3, not sure if that matters.

Esprit1st commented 1 month ago

I'm pretty sure you should see two MainsFromGrid sensors. I have two, a 1D and a 1MON. Sensor. I also have the gen 2 Vue.Just checking: you have the two big clamps around the main lines coming into your breaker box set up correctly.On Jul 22, 2024 11:49, mbhforum @.***> wrote:

Do you not have the "MainsFromGrid" Sensor? That's what I used as a single sensor for the energy dashboard and it's been working perfect for about 2 years.On Jul 22, 2024 08:30, mbhforum @.> wrote: Both are set to EST. I read in the HA Reddit sub, someone else had the issue and they added all of these individual devices instead of the Panel as a whole. I will see if that works and doesn't cause a negative value tomorrow. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

I do not. I only see 1D, 1MIN and 1MON sensors for each breaker and for each panel. I also have a Balance sensor for each panel as well. Lastly, I have a GEN2 version, not GEN3, not sure if that matters.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

mbhforum commented 1 month ago

This is all I see. Can you post a screenshot?

IMG_0459

magico13 commented 1 month ago

The original poster appears to have two separate panels that both are connected to the grid, rather than the more typical single panel. They also do not appear to have solar, so no MainsFromGrid sensor. The 1,2,3 sensor is the correct one to use in that case.

Having to add them both together is definitely an unusual situation and could be related to the energy dashboard dropping, since the dashboard will look at the last reset time and that won't probably be propagated from the base sensors. You might be able to change the helper from a Total to a TotalIncreasing type, so it resets automatically when it drops down, but that can have the occasional issue when the API is unstable.

mbhforum commented 1 month ago

I will see how the Helper group of all of the individual 1D sensors work on the energy dashboard tomorrow. One thing also interesting I noticed is, the sum of the two electrical panels (Electrical Usage) so far today is 5kWh higher than the individual sensors (Total Electricity Helper Group). Why the discrepancy?

IMG_0461 IMG_0460

DabblerIOT commented 1 month ago

I have same setup, and am working fine sending just the mains 1d data from both mains like you had setup above. I can't remember if it took a day before logs started looking correct. Set it up a while ago.

Screenshot 2024-07-22 at 7 40 05 PM

mbhforum commented 1 month ago

I have same setup, and am working fine sending just the mains 1d data from both mains like you had setup above. I can't remember if it took a day before logs started looking correct. Set it up a while ago.

Screenshot 2024-07-22 at 7 40 05 PM

Thanks. This works for me too. The difference is, you put the panels in separately, where as I was trying to combine the panels to a Home Assistant helper group to try and make it a single entity. It's not a big deal as HA does the sum with Grid Total.

DabblerIOT commented 1 month ago

I did the same type of thing to combine circuits for my power view.. (how much I'm using NOW). So I could like at 8 things rather than 32. One thing I have noticed is how the updates happen in HA is one sensor updates first and I get a new total, and then the other updates shortly after and I get a second total. If both are changing. Maybe something with this is throwing the energy stuff off. The startup of the energy stuff from memory was kind of squirrely for me, but after first day seems to be working fine.

Screenshot 2024-07-24 at 7 58 35 AM

DabblerIOT commented 1 month ago

@magico13

Most new houses over 5000 sf in my area have split 400 amp service, meaning 2 200 amp panels connect out to the meter.

I know it sounds crazy to rest of the world. That amount of space, and that amount of power for one family. (Around Washington, DC).

mbhforum commented 1 month ago

@magico13

Most new houses over 5000 sf in my area have split 400 amp service, meaning 2 200 amp panels connect out to the meter.

I know it sounds crazy to rest of the world. That amount of space, and that amount of power for one family. (Around Washington, DC).

Correct. My house is over 5,000 square feet and was built two years ago with two 200 amp split panels. In addition, my AC compressors and pool equipment is on a seperate panel where I now need to buy a third Emporia unit to measure that consumption.

DabblerIOT commented 1 month ago

I just monitored pool panel with 2 cts for sub-panel (mainly just pump and lights), and pool house (not much) with 2 cts for sub-panel (mainly lights at night). Only real use for me is to notice if I left pump on higher speed from chemical treatment or having people over. The current OmniLogic outage is killing me. (they still aren't back up all the way).

Anyway if you are sorted out appreciate it if you would close issue. (Or I can later). :)