Emporia Vue Solar integration problem with HA

Hey guys, I’m relatively new to HA and I have a question

We just had solar installed earlier this month and I’m trying to wrap my head around an issue I’m having getting the solar production displayed properly.

I’m using an Emporia Vue 2 energy monitor to track energy use and solar production. It’s working well and I have 2 CTs installed on the 2 solar hots coming into our panel and those circuits are merged into 1 for a proper combined total readout.

In HA it shows those sensors as a negative value so I created a helper template to flip those into positive values otherwise it complains:

{{ states('sensor.solar_energy_today')|float*(-1) }}

The new output is working correctly and HA doesn’t complain.

So here’s the issue: as you can see in the screenshots it’s reporting the daily production with a reset negative value each day which throws off the calculation (March 19th shown) Emporia reports 47.98 kWh but HA deducts 10.82kWh each day. It’s driving me mad

Any idea how I can fix this?

I’m new here so I can’t attach more than 1 screenshot in a post so I have to break it up. Here’s the Emporia report

Reverting to 0.10.0 of the HACS integration for the Emporia Vue seems a bit better for now

I had this issue and finally resolved it by changing the Solar CT settings to be “unidirectional” rather than “bidirectional”.

It took a full day before it started reporting again as positive in HA (in the Emporia app it stills shows as negative).