-
Notifications
You must be signed in to change notification settings - Fork 76
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
Firmware 8 not showing daily or 7 day consumption #138
Comments
Consumption data comes from the production.json endpoint, at least in fw d7 and if consumption CT are configured and connected. The consumption endpoint you are sharing is which one exactly? |
api/v1/consumption you mean? |
Ok, I see. You say the firmware is 8, any more details on that number? I'm on D7.6.175. Your running a metered Gateway / Envoy with CT for 2 phases on each production and consumption side looking at you screenshot? Can you enable Debug on the Envoy, let it run for couples of minutes and disable debug again. The log file will download to your PC when disabling debug again. I'm most interested in the line where it fetched from /production and the resulting data. Feel free to post the file here as file, but best clean the tokens from it. (if you run v0.0.14-beta1 then tokens are cleaned) |
When 7 came out it was a bumpy ride, let's hope this is smoother. Thanks for the log, I'll have a look at it. |
The envoy is indeed reporting 0 for consumption for whtoday and whlastsevendays (see below). When you open /ivp/meters/readings on the envoy in your browser (may need to provide your token during that process) are you seeing consumption and production data? The production.json report from the log:
|
|
That one looks same as before. When looking at the consumption numbers in production.json
and the picture of api/v1/consumption I see there ~200KWh difference for whLifetime for total consumption. Which one might be correct? The api/v1/consumption is only overall and does not include data for l1 and l2, so these will miss for sure. Any input from your installer to these missing numbers? All configured as it should? |
I collected that info from the /ivp/meters/readings some time ago, and just copied it from my notepad, so it has old data in there. |
Are the numbers reported by /api/v1/consumption correct i.e. the same as what enphase site shows? The v1 pages reportedly have different numbers when CT are used, but maybe not always. @Steve2017 and @madbrain76 you both have metered envoy on D7 firmware. Do you see data in 'Today's Energy consumption', 'last Seven Days Energy consumption', 'Today's Energy consumption L1/L2/L3' and/or last 'Last Seven Days Energy consumption L1/L2/L3' ? |
Yes - although only L1 for me - on single phase. This is off the integration page:
Plus the L1 that I have disabled - and all the micro-inverters. EDIT: Sorry I did that late at night and for some reason deleted all the data readings. They all had readings, although current power production was of course reading 0.0kW. |
@catsmanac , I'm running the 0.14 beta integration now, FYI. Both my IQ gateways return the following for the /api/v1/consumption URI : { The Envoy-S returns JSON and 503 error code. As far as the sensors shown for my 3 Gateways , here they are :
Obviously, a bunch of sensors are wrong there. There shouldn't be anything under consumption sensors, as there is no consumption CT on this gateway. Yet there are some non-zero values, some even quite high.
(Yes, I know microinverter ending 8618 has a problem as it's showing 0W) |
Thanks @Steve2017 and @madbrain76, comparing with @specter9mm D8 firmware data there seem to have changed something (again). As for @madbrain76 's 10/9/2022 IQ Envoy (Northwest panels) returning data on non existing CT's, that has been reported in various chats as well where not used segments may contain any kind of data not making sense. @specter9mm that is also the reason for me asking if the data in api/vi/consumption is valid data. In the past when using ct's those api/v1 pages could contain anything. Maybe that's fixed in this version and we can use it to report todays and last seven days consumption. Would be great if you can confirm the data is correct. But it seems to imply that with update to D8 firmware todays and last seven days consumption for the phases is lost. For this custom integration it will require some change to become firmware version is aware. When @briancmpbll started this it was sufficient to look at what the pages reported to know how to handle it. That seems no longer the case looking at @specter9mm's data set. I see that the new HA Core Envoy integration which will become available in September just added support for the D8 firmware as well, but not sure if they are aware of this issue. |
I did get a hold of the HA devs on their discord and sent them a bunch of info as well. |
Ah ok, that's why the model data they had for D8 looked so familiar 😃 . In the long term that one should probably be the path forward. The 0.0.14 here was created to fix some issues around old legacy devices that HA Core will not support. For these devices and mixed environments with legacy (LCD fw< R3.9) and new this one may be around for a bit. Still need to look into how big a change it will be to become fw aware or if there's an other way to determine from the data if api/v1/consumption should be used. |
That being the case I will probably hold off reinstalling until the September release then. The whole reason I set it up was to track how much power I was generating back to the grid from my solar install. |
Well you can use the lifetime energy production and energy lifetime consumption and specify those in the energy dashboard. It will recognize it's an ever increasing number and show hourly and daily results from it. I have my envoy lifetime production in the energy dashboard, It's not required to use a daily value. |
@catsmanac the problem I had there is it is a negative value right now, which the energy dashboard doesn't like, and I am not knowledgeable enough to figure out how to make that work. Here is the custom sensor I made to try to do that.
|
I assume the issue is with the grid consumption and return to grid values. What you would have to do is each time a new value comes in the change in value is assigned to consumption or returned to grid. Below example is based of one I use and some googling:
For battery you can use sensor.envoy_xxxxxxxxxxxx_battery_energy_charged and sensor.envoy_xxxxxxxxxxxx_battery_energy_discharged. And sensor.envoy_xxxxxxxxxxxx_lifetime_energy_production for the solarproduction parameter. @cddu33 is working on adding import and export numbers and these may be in test phase in a couple of days as well. That uses the /ivp/meters/readings you tested before and has data on your firmware as well. |
V0.0.17 now privides grid import and export numbers. |
@catsmanac > In the long term that one should probably be the path forward. The 0.0.14 here was created to fix some issues around old legacy devices that HA Core will not support. I'm a relatively new user just monitoring one Envoy Firmware: D7.3.130, and it seems to be tracking the data in the Envoy Enlighten Android app fairly well. I'm grateful I found this custom integration b/c I was unable to connect with D7 on the previous HA cores, however it sounds like Home Assistant 2023.9.0 now supports tokens. Would I be of any assistance continuing on this custom integration to add additional coverage for the releases, or would you suggest moving over to HA core now? |
Thanks for asking @wittelw, any tester is appreciated but switching over the HA Core if it meets your needs makes sense in my mind. It's new so it might not offer yet all features or even some different ones, that should be the driver. As in your case, this one helped me out when hitting the token fence earlier this year and joining this community has been and still is worthwhile. An updated version with some new entities is coming here, but these are not in HA Core, so might mean a break in the future when wanting to switch. I hope to be able to propose those new features also to HA Core so compatibility between this and HA Core remains, but it remains to be seen how well that will work out. |
Thanks @catsmanac! Since this repo will be staying around for awhile, and sounds like an incubator for ideas that may eventually end up in HA Core, I'm content to stay here test new builds as they are released. I'm personally not too worried about breaking changes if I eventually want / have to move to HA Core. I likely will have a second Envoy in the next six to twelve months, so that may have newer firmware / hardware than what I'm running now so this may be the ideal spot to try it out. |
The sensors for L1, L2, Today Total, and Last 7 days are all showing 0. This is on firmware 8. I have attached a screenshot of the consumption api path, so I know the data is there, but I do not see the consumption endpoint defined in envoy_reader.py. I am unfortunately not versed well enough to modify it myself.
The text was updated successfully, but these errors were encountered: