Closed wallb35 closed 1 year ago
I have the same problem, so I use "sensor.ecu_lifetime_energy". But I don't see less precision.
I am experiencing the same thing with the integration:
It gives the negative number of the amount of kW of the previous day.
I have the same problem, so I use "sensor.ecu_lifetime_energy". But I don't see less precision.
lifetime energy is one digit precision vs today 2 digit precision.
Just my 2 cents on the code change 3 days ago.
The 'sensor' that stores the value is using another value as its input:
It is changed to: "stateclass=SensorStateClass.TOTAL" from "stateclass=SensorStateClass.TOTAL_INCREASING".
Before the change both sensors use the TOTAL_INCREASING. Maybe this got mixed up, so that today_energy should use TOTAL_INCREASING and lifetime only TOTAL? Or both had to be TOTAL_INCREASING?
Does it make sense when I thing that it caused the 'total' going negative when being reset to zero at the new start of the day-measurement?
PS: I have changed the sensor.py file for my deployment to see if it makes are difference tonight/tomorrow. So I changed today_energy to TOTAL_INCREASING and lifetime_energye to TOTAL. (swapped it).
Experienced exactly the same.
Same issue here, started from 5april
Swapping the variables fixed the issue on my side.
When you connect via Terminal to the HASS node, you can edit the PY file to make it work for now.
Swapping the variables fixed the issue on my side.
When you connect via Terminal to the HASS node, you can edit the PY file to make it work for now.
Thank you, modification done. Waiting for result tomorrow morning ;)
Well done for this quick merge!
@wallb35, did the code change result in 'normal operation for you too?
I forgot to restart home assistant :/ so no change yet. Hope this will be good tomorrow.
Latest version solved the problem. Fixed
Same problem here with ECU-R, so just need to edit that sensor.py? Or will there be a automatic update?
Edit: just replaced sensor.py, I'll see tomorrow if it worked.
I guess this is fixed so I'll close the issue. Feel free to open a new issue if needed.
Hello, last two days 5 and 6 April 2023, I've got past day energy produced as a negative value in Energy Dashboard using ECU today Energy as Solar Production sensor (see two screenshots). Was working for month before. Between 2 and 3 am in Dashboard energy, probably when the sensor reset in my ECU-B, all previous production from passed day come as negative value. no problem with ECU total energy but with less precision. looks like the sensor have the good value (see attached file). I reboot my ECU-B today. Need to wait for tomorrow to see if it solved my issue. ECU-B 1.2.26 ECU Integration 1.2.28 Home assistant container 2023.3.0 Regards. Yannig