Closed arnovannijnatten closed 7 months ago
In the data there is no sign of 5.7 kWh but indeed 0 kWh. This is as you mention the difference of approximately 5 kWh per day. I have no idea where this could come from, it is not a bug with this HA integration, it just reads the value from the ECU. Do you also have a graph for today's energy in kWh? I'm thinking of a configuration error in the (time) zone or an incorrect reference time from another host. The value should increase immediately after sunrise (if there is sunshine). It might be a firmware bug as well. What value does the setup app show? The value is probably left out for use on the EMA site.
Thanks for the quick reply.
The graph looks like this:
Also the time zone setting is configured correctly I believe.
Sorry, I mean the HA graph
That shows 0 for the whole day.
While current power did actually record readings.
I think the today energy is calculated on the EMA server based on the uploaded data because the ECU itself does not keep track of this properly for all firmware versions (which it does for my ECU of course). I will have to find a solution for this by having the value calculated by the integration itself but there are some challenges. Hopefully new firmware will solve this issue.
The pre-release v1.2.31b contains an extra ECU query that introduces (part of) the use of energy history data. This is a query I previously described but was never needed (we thought). To compensate load time for the integration, I shortened the sleep-time between opening and closing the port. I also introduced the keepalive, a careful introduction to removing this sleep-time and keeping the port open. Success will depend greatly on compatibility with different ECU models and firmware. If you own an older model starting with 2160xxxxxxx ECU-R, you can even leave out the open/close functions, but does this work for other ECU models? I could make it optional in the UI settings. Anyway it should solve this issue. Please let me know if it does so that I can close the issue.
Thanks for the update! I've upgraded to this beta version and will keep you posted.
You might have an issue with the Today Energy. I have forgotten to specify END in the suffix.
Line 38 of APSsystemsSocket.py should be changed from self.ecu_energy_history_suffix = "END00\n"
to self.ecu_energy_history_suffix = "END00END\n"
. Then restart HA and see if that made a change to Today's Energy.
I didn't notice it because my ECU-R did respond well although the command was wrong ;)
I'm pretty sure Today Energy's issue has been resolved for the ECU-R, ECU-B and ECU-C. I'm closing this issue, if anything pops up, feel free to create a new issue.
I noticed you reopened #185
Same here: no noticable change after upgrade to the latest version of the integration. All inverters are online, but daily energy is 0.
@arnovannijnatten Tell me about your ECU type and firmware please.
I have an ECU R with 6 QT2 inverters. ... ECU firmware 1.3.6A, connected via WLAN
By now firmware has been upgraded to 1.3.6C
I updated https://github.com/ksheumaker/homeassistant-apsystems_ecur/issues/185 Bad news about this new firmware... I'll close this issue so we can continue there.
I have an ECU R with 6 QT2 inverters. When I started a couple of weeks ago with the integration, all seemed fine. Although HA consistently reported less kWh produced than the APS EMA app and energy returned to the grid by my smart meter (Dutch). It was off by around 5kWh on a day 45 kWh energy was reported by the smart meter.
Now however, I am not getting any readings on most days of the week. Out of the past 7 days, 4 consistently returned todays energy 0.0.
I have today's debug log attached below. The app says I produced 5.7 kWh, the integration shows 0.0.
I'm using: Home Assistant 2023.10.5 Frontend 20231005.0 - latest Integration 1.2.29 ECU firmware 1.3.6A, connected via WLAN