-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] warning in logs after update #162
Comments
Has that sensor value been negatieve for a long time or did it suddenly change? |
It is negative after installing the CT's on sept. 13. On sept 18 I switched from HA integration Enphase Envoy (dev) to Enphase Envoy (installer) Is I wrote the 3 phase metered gateway is mounted in a sub distributer. The L3 phase is not connected to anny device and only supplies to the main distributor. The other phases are used: L1: water pomp, L2: heat recovery unit. The L3 descending metering is correct. I only supply back to the main distributor via phase L3. Using a sub-divider is not unusual. Unfortunately, the consumption measurement is not the consumption of the grid but the consumption of the sub-distributor. I have no other option here. This is not a problem for monitoring grid consumption, I get this from the P1 meter. That why I think the state_class "total" is better for these lifetime_energy_consumption sensors |
I see. I also checked some Enphase documentation and this indeed seems the way to do it. For my understanding, could you maybe paste your output of |
Hi Vincent, My production.json attached. Regards, |
Describe the bug
After update to 0.4.8. my log gives:
Logger: homeassistant.components.sensor.recorder
Bron: components/sensor/recorder.py:327
integratie: Sensor (documentatie, problemen)
Eerst voorgekomen: 11:25:11 (1 gebeurtenissen)
Laatst gelogd: 11:25:11
Entity sensor.envoy_122025007960_lifetime_energy_consumption_l3 from integration enphase_envoy has state class total_increasing, but its state is negative. Triggered by state -1259.672 with last_updated set to 2024-09-29T09:21:30.187820+00:00. Please create a bug report at https://github.com/vincentwolsink/home_assistant_enphase_envoy_installer/issues
Possibly caused by my gateway being in a sub-distributor. The CTs on the sub-distributer main switch also measure the feedback to the main distributor? And state_class is total_increase.
Possible solution: change state_class to total
Account type
Envoy
[x ] Metered with CTs installed
Metered without CTs
Standard
FW version: D7.xxx
Amount of micro inverters connected: 14
Home Assistant
Additional context
The text was updated successfully, but these errors were encountered: